Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Synchronous.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006318/0.006318, allocations: 89 kB / 15.91 MB, free: 6.309 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.001168/0.001168, allocations: 198.2 kB / 16.83 MB, free: 6.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.492/1.492, allocations: 205.1 MB / 222.7 MB, free: 4.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07985/0.07985, allocations: 12.59 MB / 282.6 MB, free: 8.762 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001571/0.001571, allocations: 76.45 kB / 342.8 MB, free: 21.21 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1162, allocations: 49.39 MB / 392.2 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled): time 0.004018/0.1202, allocations: 2.37 MB / 394.5 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001388/0.1217, allocations: 0.8038 MB / 395.3 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001433/0.1218, allocations: 7.938 kB / 395.4 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003256/0.1222, allocations: 35.77 kB / 395.4 MB, free: 496 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001823/0.1224, allocations: 43.75 kB / 395.4 MB, free: 452 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004668/0.1228, allocations: 151.8 kB / 395.6 MB, free: 300 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004098/0.1233, allocations: 355.6 kB / 395.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002187/0.1235, allocations: 87.45 kB / 396 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002392/0.1237, allocations: 147.5 kB / 396.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002479/0.124, allocations: 159.3 kB / 396.3 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.377e-05/0.1241, allocations: 20 kB / 396.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.96e-05/0.1241, allocations: 20 kB / 396.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.1242, allocations: 83.78 kB / 396.4 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001513/0.1244, allocations: 143.2 kB / 396.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002991/0.1247, allocations: 302.9 kB / 396.9 MB, free: 15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1247, allocations: 0 / 396.9 MB, free: 15 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.001e-06/0.1247, allocations: 0 / 396.9 MB, free: 15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.1247, allocations: 4 kB / 396.9 MB, free: 15 MB / 302.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.001283/0.126, allocations: 0.6122 MB / 397.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.1261, allocations: 8.031 kB / 397.5 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.818e-05/0.1262, allocations: 36.56 kB / 397.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003946/0.1266, allocations: 268.4 kB / 397.8 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002049/0.1268, allocations: 138.2 kB / 397.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.942e-05/0.1268, allocations: 28.38 kB / 398 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.128, allocations: 0.5568 MB / 398.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.128, allocations: 0 / 398.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.579e-05/0.128, allocations: 12 kB / 398.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.1281, allocations: 4 kB / 398.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001263/0.1293, allocations: 0.5113 MB / 399 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001423/0.1308, allocations: 1.014 MB / 400 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001426/0.1322, allocations: 0.5139 MB / 400.6 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005548/0.1328, allocations: 263.4 kB / 400.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.136e-05/0.1328, allocations: 4 kB / 400.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.1329, allocations: 42.5 kB / 400.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.783e-06/0.1329, allocations: 0 / 400.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03803/0.1709, allocations: 5.69 MB / 406.6 MB, free: 5.027 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/0.1711, allocations: 160.8 kB / 406.7 MB, free: 4.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002333/0.1713, allocations: 182.7 kB / 406.9 MB, free: 4.652 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.648e-05/0.1714, allocations: 37.7 kB / 406.9 MB, free: 4.609 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.423e-05/0.1715, allocations: 145.5 kB / 407.1 MB, free: 4.465 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001962/0.1717, allocations: 189.3 kB / 407.3 MB, free: 4.277 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000286/0.172, allocations: 118.5 kB / 407.4 MB, free: 4.152 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1722, allocations: 346.8 kB / 407.7 MB, free: 3.805 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001461/0.1736, allocations: 0.6188 MB / 408.3 MB, free: 3.188 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001761/0.1754, allocations: 0.7924 MB / 409.1 MB, free: 2.316 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002845/0.1783, allocations: 1.251 MB / 410.4 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.1783, allocations: 384 / 410.4 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003211/0.1815, allocations: 1.401 MB / 411.8 MB, free: 15.57 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.1816, allocations: 9.25 kB / 411.8 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.1816, allocations: 8.344 kB / 411.8 MB, free: 15.56 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.924e-05/0.1816, allocations: 11.94 kB / 411.8 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/0.183, allocations: 211.7 kB / 412 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.787e-05/0.183, allocations: 15.94 kB / 412 MB, free: 15.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009203/0.1839, allocations: 95.73 kB / 412.1 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.15e-05/0.184, allocations: 35.98 kB / 412.2 MB, free: 15.2 MB / 318.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.0003312/0.1844, allocations: 174.3 kB / 412.3 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003111/0.1847, allocations: 153.2 kB / 412.5 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000161/0.1849, allocations: 63.3 kB / 412.5 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.1849, allocations: 8 kB / 412.5 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.1849, allocations: 4 kB / 412.5 MB, free: 14.78 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.649e-06/0.1849, allocations: 3.984 kB / 412.6 MB, free: 14.78 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004541/0.1895, allocations: 2.168 MB / 414.7 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/0.1895, allocations: 12 kB / 414.7 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007195/0.1902, allocations: 175.8 kB / 414.9 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.297e-05/0.1902, allocations: 12 kB / 414.9 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.536e-05/0.1903, allocations: 27.98 kB / 414.9 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.519e-05/0.1903, allocations: 23.88 kB / 415 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.734e-06/0.1903, allocations: 12.16 kB / 415 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002959/0.1933, allocations: 1.553 MB / 416.5 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001902/0.1935, allocations: 164.5 kB / 416.7 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.821e-05/0.1936, allocations: 31.98 kB / 416.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000571/0.1942, allocations: 75.98 kB / 416.8 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001971/0.1944, allocations: 95.89 kB / 416.9 MB, free: 10.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-05/0.1944, allocations: 28 kB / 416.9 MB, free: 10.06 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001315/0.1946, allocations: 152.1 kB / 417.1 MB, free: 9.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1946, allocations: 0 / 417.1 MB, free: 9.91 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007071/0.1953, allocations: 124.2 kB / 417.2 MB, free: 9.789 MB / 318.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.0001578/0.1955, allocations: 142.9 kB / 417.3 MB, free: 9.641 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002523/0.198, allocations: 1.124 MB / 418.4 MB, free: 8.512 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.198, allocations: 0 / 418.4 MB, free: 8.512 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008681/0.1989, allocations: 342.3 kB / 418.8 MB, free: 8.18 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008556/0.1997, allocations: 142 kB / 418.9 MB, free: 8.043 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002241/0.202, allocations: 1.313 MB / 420.2 MB, free: 6.57 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003621/0.2024, allocations: 0.8093 MB / 421 MB, free: 5.738 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005731/0.203, allocations: 91.36 kB / 421.1 MB, free: 5.648 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000287/0.2032, allocations: 35.44 kB / 421.2 MB, free: 5.613 MB / 318.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2033, allocations: 4 kB / 421.2 MB, free: 5.609 MB / 318.1 MB Notification: Performance of Templates: time 0.2134/0.4167, allocations: 7.552 MB / 428.7 MB, free: 39.41 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:PI.y,Time,angle.phi,gain.y,speed.w Variables in the result:PI.T,PI.k,PI.y,angle.phi,gain.k,gain.y,hold1.y_start,kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_q_begin[1],kinematicPTP.p_q_end[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.w,periodicRealClock.period,periodicRealClock.useSolver,speed.flange.phi,speed.w,super.factor,super.inferFactor,time