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.001278/0.001278, allocations: 100.3 kB / 15.73 MB, free: 436 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0024/0.0024, allocations: 178.2 kB / 16.61 MB, free: 6.418 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.655/1.655, allocations: 205.4 MB / 222.8 MB, free: 5.645 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.07835/0.07835, allocations: 12.59 MB / 283.6 MB, free: 8.707 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.000713/0.0007132, allocations: 24 kB / 344.5 MB, free: 21.29 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0988/0.09952, allocations: 50.39 MB / 394.9 MB, free: 2.809 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled): time 0.003091/0.1026, allocations: 1.904 MB / 396.8 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001857/0.1046, allocations: 0.7847 MB / 397.6 MB, free: 96 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001884/0.1048, allocations: 3.938 kB / 397.6 MB, free: 92 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002563/0.105, allocations: 35.77 kB / 397.6 MB, free: 56 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002002/0.1053, allocations: 51.83 kB / 397.7 MB, free: 4 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005692/0.1058, allocations: 139.6 kB / 397.8 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003252/0.1062, allocations: 224 kB / 398 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/0.1064, allocations: 74 kB / 398.1 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000229/0.1066, allocations: 135.5 kB / 398.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002157/0.1068, allocations: 139.4 kB / 398.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.066e-05/0.1069, allocations: 16 kB / 398.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.071e-05/0.1069, allocations: 16 kB / 398.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.215e-05/0.107, allocations: 71.78 kB / 398.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.053e-05/0.1071, allocations: 69.58 kB / 398.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002533/0.1074, allocations: 219.7 kB / 398.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.1074, allocations: 4 kB / 398.8 MB, free: 14.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.81e-07/0.1074, allocations: 4 kB / 398.8 MB, free: 14.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.1074, allocations: 0 / 398.8 MB, free: 14.91 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.001099/0.1085, allocations: 0.5771 MB / 399.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.875e-05/0.1086, allocations: 11.97 kB / 399.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.137e-05/0.1086, allocations: 43.61 kB / 399.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002776/0.1089, allocations: 263.1 kB / 399.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001813/0.1091, allocations: 137.6 kB / 399.8 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.981e-05/0.1092, allocations: 32 kB / 399.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001172/0.1104, allocations: 0.5609 MB / 400.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.1104, allocations: 4 kB / 400.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.29e-05/0.1104, allocations: 12 kB / 400.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.1105, allocations: 8 kB / 400.4 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001434/0.1119, allocations: 0.5385 MB / 400.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001512/0.1134, allocations: 1.018 MB / 401.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001546/0.115, allocations: 0.5147 MB / 402.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.291e-05/0.115, allocations: 16.12 kB / 402.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.1151, allocations: 38.83 kB / 402.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.613e-06/0.1151, allocations: 0 / 402.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03809/0.1532, allocations: 6.748 MB / 409.3 MB, free: 4.125 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.806e-05/0.1533, allocations: 148.9 kB / 409.4 MB, free: 3.945 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001907/0.1535, allocations: 190.7 kB / 409.6 MB, free: 3.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.669e-05/0.1536, allocations: 33.7 kB / 409.6 MB, free: 3.711 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.082e-05/0.1537, allocations: 149.5 kB / 409.8 MB, free: 3.562 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/0.1539, allocations: 193.3 kB / 410 MB, free: 3.371 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.479e-05/0.1539, allocations: 12 kB / 410 MB, free: 3.359 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.154, allocations: 342.8 kB / 410.3 MB, free: 3.016 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001544/0.1556, allocations: 0.6539 MB / 411 MB, free: 2.359 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001659/0.1573, allocations: 0.8276 MB / 411.8 MB, free: 1.457 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/0.1588, allocations: 0.6059 MB / 412.4 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1588, allocations: 0 / 412.4 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003569/0.1624, allocations: 1.468 MB / 413.9 MB, free: 15.38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.628e-05/0.1624, allocations: 12.03 kB / 413.9 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.883e-05/0.1624, allocations: 12.33 kB / 413.9 MB, free: 15.35 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.536e-05/0.1625, allocations: 8 kB / 413.9 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/0.1638, allocations: 231.7 kB / 414.1 MB, free: 15.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.592e-05/0.1638, allocations: 11.94 kB / 414.1 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009698/0.1648, allocations: 123.7 kB / 414.3 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.358e-05/0.1649, allocations: 27.98 kB / 414.3 MB, free: 14.96 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.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 initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003977/0.1653, allocations: 189.4 kB / 414.5 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003527/0.1657, allocations: 145.2 kB / 414.6 MB, free: 14.61 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001625/0.1658, allocations: 59.31 kB / 414.7 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.305e-05/0.1659, allocations: 11.95 kB / 414.7 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.1659, allocations: 4 kB / 414.7 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/0.1659, allocations: 3.984 kB / 414.7 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004828/0.1707, allocations: 2.289 MB / 417 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-05/0.1708, allocations: 12 kB / 417 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007774/0.1716, allocations: 204 kB / 417.2 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.02e-05/0.1716, allocations: 16 kB / 417.2 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.94e-05/0.1716, allocations: 24 kB / 417.2 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.731e-05/0.1717, allocations: 19.89 kB / 417.2 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-05/0.1717, allocations: 15.94 kB / 417.3 MB, free: 11.78 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003946/0.1756, allocations: 2.173 MB / 419.4 MB, free: 9.188 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002014/0.1759, allocations: 164.6 kB / 419.6 MB, free: 9.008 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.027e-05/0.1759, allocations: 28.06 kB / 419.6 MB, free: 8.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005894/0.1765, allocations: 103.9 kB / 419.7 MB, free: 8.879 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001813/0.1767, allocations: 107.6 kB / 419.8 MB, free: 8.773 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.756e-05/0.1768, allocations: 28 kB / 419.9 MB, free: 8.746 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001289/0.1769, allocations: 144.3 kB / 420 MB, free: 8.605 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1769, allocations: 0 / 420 MB, free: 8.605 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006561/0.1776, allocations: 124 kB / 420.1 MB, free: 8.484 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000154/0.1777, allocations: 131.3 kB / 420.2 MB, free: 8.348 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002861/0.1806, allocations: 1.191 MB / 421.4 MB, free: 7.156 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.1806, allocations: 7.938 kB / 421.4 MB, free: 7.148 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001049/0.1817, allocations: 374.2 kB / 421.8 MB, free: 6.785 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006072/0.1823, allocations: 128.4 kB / 421.9 MB, free: 6.66 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00226/0.1846, allocations: 1.331 MB / 423.3 MB, free: 5.164 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003597/0.185, allocations: 0.821 MB / 424.1 MB, free: 4.32 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005434/0.1855, allocations: 91.36 kB / 424.2 MB, free: 4.227 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002607/0.1858, allocations: 35.44 kB / 424.2 MB, free: 4.195 MB / 318.1 MB Notification: Performance of SimCode: time 1.924e-06/0.1858, allocations: 0 / 424.2 MB, free: 4.195 MB / 318.1 MB Notification: Performance of Templates: time 0.1881/0.3739, allocations: 7.214 MB / 431.4 MB, free: 39.13 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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