Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 110.8 kB / 17.74 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 192.4 kB / 18.67 MB, free: 4.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009807/0.0009807, allocations: 47.94 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.2667, allocations: 49.43 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003406/0.2701, allocations: 2.332 MB / 403.7 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.2715, allocations: 0.7716 MB / 404.5 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001758/0.2717, allocations: 4 kB / 404.5 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003142/0.2721, allocations: 51.56 kB / 404.5 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001919/0.2723, allocations: 51.56 kB / 404.6 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004558/0.2727, allocations: 171.6 kB / 404.8 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003688/0.2731, allocations: 379.6 kB / 405.1 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001941/0.2733, allocations: 91.33 kB / 405.2 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000245/0.2736, allocations: 159.5 kB / 405.4 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002489/0.2738, allocations: 171.3 kB / 405.5 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.848e-05/0.2739, allocations: 36 kB / 405.6 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.606e-05/0.274, allocations: 32 kB / 405.6 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001107/0.2741, allocations: 95.77 kB / 405.7 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001321/0.2742, allocations: 139.2 kB / 405.8 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003446/0.2746, allocations: 328 kB / 406.2 MB, free: 4.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.2746, allocations: 0 / 406.2 MB, free: 4.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2746, allocations: 4 kB / 406.2 MB, free: 4.086 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.2746, allocations: 0 / 406.2 MB, free: 4.086 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001111/0.2757, allocations: 0.6124 MB / 406.8 MB, free: 3.426 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.2758, allocations: 15.83 kB / 406.8 MB, free: 3.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.03e-05/0.2758, allocations: 36.56 kB / 406.8 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003616/0.2762, allocations: 268.4 kB / 407.1 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001862/0.2764, allocations: 138.2 kB / 407.2 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.122e-05/0.2765, allocations: 36.28 kB / 407.3 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.2775, allocations: 0.5454 MB / 407.8 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.2776, allocations: 3.984 kB / 407.8 MB, free: 2.312 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.758e-05/0.2776, allocations: 12 kB / 407.8 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.2776, allocations: 8 kB / 407.8 MB, free: 2.293 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/0.2789, allocations: 0.5113 MB / 408.3 MB, free: 1.781 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001459/0.2803, allocations: 1.002 MB / 409.3 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.2818, allocations: 0.5024 MB / 409.8 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006316/0.2825, allocations: 255.6 kB / 410.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.502e-05/0.2825, allocations: 15.89 kB / 410.1 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.2826, allocations: 42.56 kB / 410.1 MB, free: 15.83 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 4.849e-06/0.2826, allocations: 3.984 kB / 410.2 MB, free: 15.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.04888/0.3315, allocations: 5.713 MB / 415.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001515/0.3317, allocations: 148.9 kB / 416 MB, free: 9.926 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002449/0.3319, allocations: 191.2 kB / 416.2 MB, free: 9.727 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.33e-05/0.332, allocations: 37.7 kB / 416.2 MB, free: 9.684 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.3322, allocations: 149.4 kB / 416.4 MB, free: 9.531 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002219/0.3324, allocations: 193.3 kB / 416.6 MB, free: 9.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003021/0.3327, allocations: 110.7 kB / 416.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.3329, allocations: 338.8 kB / 417 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001494/0.3344, allocations: 0.6187 MB / 417.6 MB, free: 8.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001615/0.336, allocations: 0.7925 MB / 418.4 MB, free: 7.398 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002834/0.3388, allocations: 1.263 MB / 419.7 MB, free: 6.059 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-06/0.3389, allocations: 0 / 419.7 MB, free: 6.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003338/0.3422, allocations: 1.394 MB / 421.1 MB, free: 4.656 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.473e-05/0.3423, allocations: 8 kB / 421.1 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.3423, allocations: 4 kB / 421.1 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.094e-05/0.3423, allocations: 16 kB / 421.1 MB, free: 4.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001352/0.3437, allocations: 211.6 kB / 421.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.194e-05/0.3437, allocations: 12.03 kB / 421.3 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009798/0.3447, allocations: 103.7 kB / 421.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-05/0.3448, allocations: 28 kB / 421.5 MB, free: 4.281 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003362/0.3452, allocations: 185.5 kB / 421.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003711/0.3455, allocations: 149.5 kB / 421.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001633/0.3457, allocations: 67.3 kB / 421.8 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.3457, allocations: 8 kB / 421.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.3457, allocations: 0 / 421.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/0.3458, allocations: 3.984 kB / 421.9 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005063/0.3508, allocations: 2.175 MB / 424 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.717e-05/0.3509, allocations: 8 kB / 424 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007836/0.3517, allocations: 188.5 kB / 424.2 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.091e-05/0.3517, allocations: 16 kB / 424.2 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.886e-05/0.3518, allocations: 24 kB / 424.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.755e-05/0.3518, allocations: 15.94 kB / 424.3 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.259e-05/0.3518, allocations: 19.92 kB / 424.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003109/0.355, allocations: 1.557 MB / 425.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002783/0.3553, allocations: 160.6 kB / 426 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.382e-05/0.3554, allocations: 24 kB / 426 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006113/0.356, allocations: 79.91 kB / 426.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002052/0.3562, allocations: 91.73 kB / 426.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.067e-05/0.3563, allocations: 28 kB / 426.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001439/0.3564, allocations: 152.2 kB / 426.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3564, allocations: 0 / 426.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007281/0.3572, allocations: 116 kB / 426.5 MB, free: 14.87 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002073/0.3574, allocations: 143.1 kB / 426.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002774/0.3601, allocations: 1.139 MB / 427.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.3602, allocations: 0 / 427.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009579/0.3611, allocations: 343.3 kB / 428.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009739/0.3621, allocations: 140.2 kB / 428.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002524/0.3647, allocations: 1.207 MB / 429.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004416/0.3651, allocations: 0.809 MB / 430.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003467/0.3655, allocations: 47.42 kB / 430.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3655, allocations: 0 / 430.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of Templates: time 0.01321/0.3787, allocations: 7.21 MB / 437.5 MB, free: 3.656 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches