Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 106.8 kB / 16.45 MB, free: 6.43 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.001226/0.001227, allocations: 189.4 kB / 17.38 MB, free: 5.688 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.52/1.52, allocations: 205.1 MB / 223.3 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07394/0.07394, allocations: 12.59 MB / 283.2 MB, free: 15.41 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.001811/0.001812, allocations: 85.55 kB / 394.1 MB, free: 45.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09908/0.1009, allocations: 49.4 MB / 443.5 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked): time 0.003478/0.1044, allocations: 2.351 MB / 445.9 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001388/0.1058, allocations: 0.8309 MB / 446.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001603/0.106, allocations: 7.938 kB / 446.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002877/0.1063, allocations: 59.55 kB / 446.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001881/0.1065, allocations: 59.5 kB / 446.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004803/0.107, allocations: 179.7 kB / 447 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003845/0.1074, allocations: 387.2 kB / 447.4 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002034/0.1076, allocations: 103.8 kB / 447.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002017/0.1078, allocations: 163.5 kB / 447.7 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002277/0.1081, allocations: 179.2 kB / 447.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.868e-05/0.1081, allocations: 36 kB / 447.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.163e-05/0.1082, allocations: 36 kB / 447.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.1083, allocations: 91.78 kB / 448 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.1084, allocations: 151.2 kB / 448.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000353/0.1088, allocations: 326.6 kB / 448.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1088, allocations: 0 / 448.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1088, allocations: 0 / 448.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.1088, allocations: 0 / 448.5 MB, free: 11.56 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001135/0.11, allocations: 0.6313 MB / 449.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.11, allocations: 12.03 kB / 449.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.134e-05/0.1101, allocations: 40.73 kB / 449.1 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003912/0.1105, allocations: 276.4 kB / 449.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001902/0.1107, allocations: 142.3 kB / 449.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.488e-05/0.1108, allocations: 32.33 kB / 449.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001161/0.1119, allocations: 0.5598 MB / 450.1 MB, free: 9.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.408e-05/0.112, allocations: 7.938 kB / 450.2 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.602e-05/0.112, allocations: 12 kB / 450.2 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.112, allocations: 12 kB / 450.2 MB, free: 9.719 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.1134, allocations: 0.5073 MB / 450.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001493/0.1149, allocations: 1.01 MB / 451.7 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001547/0.1165, allocations: 0.5063 MB / 452.2 MB, free: 7.582 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006057/0.1171, allocations: 267.4 kB / 452.5 MB, free: 7.309 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.864e-05/0.1171, allocations: 4 kB / 452.5 MB, free: 7.305 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.1172, allocations: 42.5 kB / 452.5 MB, free: 7.254 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.873e-06/0.1172, allocations: 0 / 452.5 MB, free: 7.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03725/0.1544, allocations: 5.723 MB / 458.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001389/0.1546, allocations: 152.9 kB / 458.4 MB, free: 1.332 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002452/0.1549, allocations: 195.5 kB / 458.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.372e-05/0.155, allocations: 37.7 kB / 458.6 MB, free: 1.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.1551, allocations: 145.7 kB / 458.8 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002057/0.1553, allocations: 206.3 kB / 459 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000297/0.1556, allocations: 106.7 kB / 459.1 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1557, allocations: 342.8 kB / 459.4 MB, free: 292 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001632/0.1574, allocations: 0.6227 MB / 460 MB, free: 15.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001686/0.1591, allocations: 0.7963 MB / 460.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00303/0.1621, allocations: 1.247 MB / 462.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1621, allocations: 0 / 462.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003556/0.1657, allocations: 1.397 MB / 463.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.1657, allocations: 12.34 kB / 463.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.1658, allocations: 8 kB / 463.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/0.1658, allocations: 8 kB / 463.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/0.1671, allocations: 211.6 kB / 463.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.102e-05/0.1672, allocations: 15.94 kB / 463.7 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009206/0.1681, allocations: 103.8 kB / 463.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.272e-05/0.1682, allocations: 24.31 kB / 463.8 MB, free: 11.68 MB / 350.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.0003082/0.1685, allocations: 181.6 kB / 464 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002952/0.1688, allocations: 161.3 kB / 464.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001773/0.169, allocations: 59.31 kB / 464.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.169, allocations: 12.45 kB / 464.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.169, allocations: 4 kB / 464.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.169, allocations: 0 / 464.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004599/0.1736, allocations: 2.176 MB / 466.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.435e-05/0.1737, allocations: 12 kB / 466.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007469/0.1744, allocations: 183.7 kB / 466.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.328e-05/0.1744, allocations: 12 kB / 466.6 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.062e-05/0.1745, allocations: 24 kB / 466.6 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.384e-05/0.1745, allocations: 19.94 kB / 466.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.194e-05/0.1745, allocations: 19.92 kB / 466.7 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003125/0.1777, allocations: 1.557 MB / 468.2 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001804/0.1779, allocations: 164.8 kB / 468.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.373e-05/0.1779, allocations: 28 kB / 468.4 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005844/0.1785, allocations: 83.95 kB / 468.5 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001934/0.1787, allocations: 95.67 kB / 468.6 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.204e-05/0.1788, allocations: 32 kB / 468.6 MB, free: 6.512 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001288/0.1789, allocations: 141.2 kB / 468.8 MB, free: 6.375 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1789, allocations: 0 / 468.8 MB, free: 6.375 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006651/0.1796, allocations: 120 kB / 468.9 MB, free: 6.258 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.000171/0.1798, allocations: 146.9 kB / 469 MB, free: 6.102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002903/0.1827, allocations: 1.136 MB / 470.2 MB, free: 4.969 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.1827, allocations: 0 / 470.2 MB, free: 4.969 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.1837, allocations: 342.1 kB / 470.5 MB, free: 4.637 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009017/0.1847, allocations: 137 kB / 470.6 MB, free: 4.504 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002578/0.1872, allocations: 1.181 MB / 471.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004209/0.1877, allocations: 0.809 MB / 472.6 MB, free: 2.324 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004639/0.1882, allocations: 99.25 kB / 472.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003046/0.1885, allocations: 43.44 kB / 472.8 MB, free: 2.184 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1885, allocations: 0 / 472.8 MB, free: 2.184 MB / 350.1 MB Notification: Performance of Templates: time 0.01336/0.2018, allocations: 8.308 MB / 481.1 MB, free: 9.855 MB / 366.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.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,subSample1.factor,super.factor,super.inferFactor,time