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.001181/0.001181, allocations: 104.5 kB / 16.45 MB, free: 6.457 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.001171/0.001171, allocations: 192.1 kB / 17.39 MB, free: 5.668 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.554/1.554, 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.07701/0.07702, allocations: 12.59 MB / 283.2 MB, free: 15.4 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.00189/0.00189, allocations: 88.3 kB / 394.1 MB, free: 45.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09985/0.1018, allocations: 49.4 MB / 443.5 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked): time 0.003403/0.1052, allocations: 2.347 MB / 445.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001626/0.1069, allocations: 0.8387 MB / 446.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001703/0.1071, allocations: 7.938 kB / 446.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003238/0.1074, allocations: 55.55 kB / 446.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001911/0.1076, allocations: 59.56 kB / 446.8 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004787/0.1081, allocations: 183.5 kB / 447 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003778/0.1085, allocations: 387.2 kB / 447.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002239/0.1087, allocations: 107.8 kB / 447.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002501/0.109, allocations: 167.5 kB / 447.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002397/0.1092, allocations: 183.2 kB / 447.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.273e-05/0.1093, allocations: 32 kB / 447.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.057e-05/0.1093, allocations: 36 kB / 447.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.1095, allocations: 91.78 kB / 448 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001669/0.1097, allocations: 147.2 kB / 448.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004531/0.1101, allocations: 330.8 kB / 448.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.937e-06/0.1101, allocations: 4 kB / 448.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1101, allocations: 0 / 448.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.802e-06/0.1102, allocations: 0 / 448.5 MB, free: 11.54 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.001149/0.1113, allocations: 0.62 MB / 449.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.1114, allocations: 8.031 kB / 449.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.447e-05/0.1114, allocations: 44.56 kB / 449.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004229/0.1119, allocations: 280.3 kB / 449.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001835/0.1121, allocations: 134.3 kB / 449.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.368e-05/0.1121, allocations: 28.38 kB / 449.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.1132, allocations: 0.5675 MB / 450.2 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.1133, allocations: 11.98 kB / 450.2 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.026e-05/0.1133, allocations: 8 kB / 450.2 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.1133, allocations: 11.94 kB / 450.2 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001189/0.1145, allocations: 0.5073 MB / 450.7 MB, free: 9.195 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001494/0.116, allocations: 0.9982 MB / 451.7 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001431/0.1175, allocations: 0.5141 MB / 452.2 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005393/0.118, allocations: 259.3 kB / 452.5 MB, free: 7.305 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.195e-05/0.1181, allocations: 11.98 kB / 452.5 MB, free: 7.293 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.1181, allocations: 34.56 kB / 452.5 MB, free: 7.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.134e-06/0.1181, allocations: 4 kB / 452.5 MB, free: 7.246 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03493/0.153, allocations: 5.707 MB / 458.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001363/0.1532, allocations: 152.9 kB / 458.4 MB, free: 1.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000268/0.1535, allocations: 195.4 kB / 458.6 MB, free: 1.141 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.975e-05/0.1536, allocations: 41.69 kB / 458.6 MB, free: 1.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.1537, allocations: 141.5 kB / 458.7 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002034/0.1539, allocations: 197.3 kB / 458.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002974/0.1542, allocations: 106.7 kB / 459 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.1544, allocations: 346.8 kB / 459.4 MB, free: 304 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001416/0.1558, allocations: 0.6149 MB / 460 MB, free: 15.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001574/0.1574, allocations: 0.7964 MB / 460.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002699/0.1601, allocations: 1.243 MB / 462 MB, free: 13.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.1601, allocations: 8 kB / 462 MB, free: 13.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00322/0.1633, allocations: 1.406 MB / 463.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.401e-05/0.1634, allocations: 8 kB / 463.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/0.1634, allocations: 8 kB / 463.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.962e-05/0.1634, allocations: 8 kB / 463.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/0.1647, allocations: 207.6 kB / 463.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.459e-05/0.1648, allocations: 8 kB / 463.7 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009528/0.1657, allocations: 115.7 kB / 463.8 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001046/0.1658, allocations: 24 kB / 463.8 MB, free: 11.7 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.0003826/0.1662, allocations: 177.6 kB / 464 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003682/0.1666, allocations: 161.8 kB / 464.1 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001738/0.1668, allocations: 63.3 kB / 464.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.247e-05/0.1668, allocations: 8 kB / 464.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/0.1668, allocations: 96 / 464.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.1669, allocations: 15.92 kB / 464.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004713/0.1716, allocations: 2.16 MB / 466.4 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-05/0.1716, allocations: 8 kB / 466.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007139/0.1723, allocations: 183.7 kB / 466.6 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.408e-05/0.1724, allocations: 16 kB / 466.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.649e-05/0.1724, allocations: 28.41 kB / 466.6 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.619e-05/0.1724, allocations: 23.92 kB / 466.6 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-05/0.1725, allocations: 15.94 kB / 466.7 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00289/0.1754, allocations: 1.553 MB / 468.2 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002352/0.1756, allocations: 160.7 kB / 468.4 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.007e-05/0.1757, allocations: 27.98 kB / 468.4 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005589/0.1762, allocations: 71.92 kB / 468.5 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002052/0.1765, allocations: 95.67 kB / 468.6 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.371e-05/0.1765, allocations: 35.98 kB / 468.6 MB, free: 6.543 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001343/0.1767, allocations: 137.2 kB / 468.7 MB, free: 6.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1767, allocations: 0 / 468.7 MB, free: 6.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007178/0.1774, allocations: 128 kB / 468.8 MB, free: 6.285 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.0002075/0.1776, allocations: 134.9 kB / 469 MB, free: 6.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002688/0.1803, allocations: 1.143 MB / 470.1 MB, free: 5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.1803, allocations: 0 / 470.1 MB, free: 5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009707/0.1813, allocations: 338.5 kB / 470.5 MB, free: 4.672 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009278/0.1822, allocations: 141.7 kB / 470.6 MB, free: 4.535 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002502/0.1848, allocations: 1.174 MB / 471.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004604/0.1852, allocations: 0.8129 MB / 472.6 MB, free: 2.359 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004712/0.1857, allocations: 95.31 kB / 472.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002792/0.186, allocations: 39.42 kB / 472.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.186, allocations: 0 / 472.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of Templates: time 0.01503/0.2011, allocations: 8.315 MB / 481 MB, free: 9.895 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