Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.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.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 100.6 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.001386/0.001386, allocations: 175.8 kB / 16.61 MB, free: 6.422 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.563/1.563, allocations: 205.4 MB / 222.8 MB, free: 5.902 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.07847/0.07847, allocations: 12.6 MB / 283.6 MB, free: 8.934 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.0007323/0.0007326, allocations: 20 kB / 344.5 MB, free: 21.32 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.108, allocations: 50.38 MB / 394.9 MB, free: 2.836 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002839/0.1109, allocations: 1.951 MB / 396.8 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001614/0.1125, allocations: 0.8431 MB / 397.7 MB, free: 16 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001914/0.1127, allocations: 7.938 kB / 397.7 MB, free: 8 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003186/0.1131, allocations: 43.64 kB / 397.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002208/0.1133, allocations: 59.81 kB / 397.8 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005163/0.1138, allocations: 175.5 kB / 398 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003044/0.1141, allocations: 240 kB / 398.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001901/0.1143, allocations: 82.12 kB / 398.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001734/0.1145, allocations: 127.5 kB / 398.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002027/0.1147, allocations: 155.3 kB / 398.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.853e-05/0.1148, allocations: 19.98 kB / 398.6 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.675e-05/0.1148, allocations: 16 kB / 398.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.492e-05/0.1149, allocations: 83.72 kB / 398.7 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.826e-05/0.115, allocations: 73.52 kB / 398.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002296/0.1152, allocations: 247.6 kB / 399 MB, free: 14.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.1152, allocations: 11.94 kB / 399 MB, free: 14.69 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1152, allocations: 0 / 399 MB, free: 14.69 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1153, allocations: 0 / 399 MB, free: 14.69 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001173/0.1164, allocations: 0.6275 MB / 399.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.1165, allocations: 12.03 kB / 399.6 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.037e-05/0.1166, allocations: 43.53 kB / 399.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004141/0.117, allocations: 294 kB / 400 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002107/0.1172, allocations: 145.7 kB / 400.1 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.864e-05/0.1173, allocations: 28 kB / 400.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/0.1185, allocations: 0.5899 MB / 400.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.1185, allocations: 0 / 400.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.729e-05/0.1185, allocations: 12 kB / 400.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.747e-06/0.1186, allocations: 4 kB / 400.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001336/0.1199, allocations: 0.5424 MB / 401.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001476/0.1214, allocations: 1.033 MB / 402.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.1229, allocations: 0.5147 MB / 402.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.868e-05/0.1229, allocations: 4.188 kB / 402.8 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.528e-05/0.1229, allocations: 42.83 kB / 402.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.745e-06/0.123, allocations: 4 kB / 402.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03886/0.1618, allocations: 6.784 MB / 409.7 MB, free: 3.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.162, allocations: 145 kB / 409.8 MB, free: 3.578 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000427/0.1624, allocations: 258.5 kB / 410.1 MB, free: 3.312 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.788e-05/0.1625, allocations: 45.64 kB / 410.1 MB, free: 3.262 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.1626, allocations: 153.4 kB / 410.3 MB, free: 3.109 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000276/0.1629, allocations: 193.3 kB / 410.4 MB, free: 2.918 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.383e-05/0.163, allocations: 12 kB / 410.5 MB, free: 2.906 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002701/0.1632, allocations: 342.8 kB / 410.8 MB, free: 2.562 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001646/0.1649, allocations: 0.6539 MB / 411.4 MB, free: 1.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001785/0.1667, allocations: 0.8277 MB / 412.3 MB, free: 1.004 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001578/0.1683, allocations: 0.6059 MB / 412.9 MB, free: 408 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.1683, allocations: 0 / 412.9 MB, free: 408 kB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003505/0.1718, allocations: 1.468 MB / 414.3 MB, free: 14.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/0.1718, allocations: 8 kB / 414.3 MB, free: 14.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.1719, allocations: 7.953 kB / 414.4 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.478e-05/0.1719, allocations: 12 kB / 414.4 MB, free: 14.9 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001312/0.1732, allocations: 227.7 kB / 414.6 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.75e-05/0.1732, allocations: 15.98 kB / 414.6 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009441/0.1742, allocations: 119.7 kB / 414.7 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.032e-05/0.1743, allocations: 31.98 kB / 414.8 MB, free: 14.51 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.0004005/0.1747, allocations: 193.4 kB / 414.9 MB, free: 14.31 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003101/0.175, allocations: 153.1 kB / 415.1 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001948/0.1752, allocations: 71.61 kB / 415.2 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.1752, allocations: 11.95 kB / 415.2 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.385e-05/0.1753, allocations: 8 kB / 415.2 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.1753, allocations: 3.984 kB / 415.2 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004859/0.1801, allocations: 2.3 MB / 417.5 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-05/0.1802, allocations: 8 kB / 417.5 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007447/0.1809, allocations: 208.1 kB / 417.7 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.792e-05/0.1809, allocations: 12 kB / 417.7 MB, free: 11.35 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.899e-05/0.181, allocations: 31.94 kB / 417.7 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.942e-05/0.181, allocations: 27.88 kB / 417.8 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.098e-05/0.181, allocations: 16.12 kB / 417.8 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003636/0.1847, allocations: 2.189 MB / 420 MB, free: 8.668 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002214/0.1849, allocations: 176.5 kB / 420.1 MB, free: 8.477 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.106e-05/0.185, allocations: 27.98 kB / 420.2 MB, free: 8.449 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005904/0.1856, allocations: 99.98 kB / 420.3 MB, free: 8.352 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/0.1858, allocations: 95.66 kB / 420.4 MB, free: 8.258 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.512e-05/0.1858, allocations: 39.98 kB / 420.4 MB, free: 8.219 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001705/0.186, allocations: 182 kB / 420.6 MB, free: 8.047 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.186, allocations: 0 / 420.6 MB, free: 8.047 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006483/0.1867, allocations: 120 kB / 420.7 MB, free: 7.93 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.0001608/0.1868, allocations: 135 kB / 420.8 MB, free: 7.789 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002755/0.1896, allocations: 1.186 MB / 422 MB, free: 6.598 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.1896, allocations: 0 / 422 MB, free: 6.598 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009752/0.1906, allocations: 378.8 kB / 422.4 MB, free: 6.23 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006335/0.1912, allocations: 148.5 kB / 422.5 MB, free: 6.086 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002286/0.1935, allocations: 1.41 MB / 423.9 MB, free: 4.508 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003933/0.1939, allocations: 0.8366 MB / 424.8 MB, free: 3.648 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000554/0.1945, allocations: 100.2 kB / 424.9 MB, free: 3.551 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002621/0.1948, allocations: 35.44 kB / 424.9 MB, free: 3.516 MB / 318.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1948, allocations: 0 / 424.9 MB, free: 3.516 MB / 318.1 MB Notification: Performance of Templates: time 0.1814/0.3761, allocations: 7.452 MB / 432.4 MB, free: 39.71 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.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,fastClock.factor,fastClock.resolution,fastClock.resolutionFactor,fastClock.useSolver,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,slowClock.factor,slowClock.resolution,slowClock.resolutionFactor,slowClock.useSolver,speed.flange.phi,speed.w,super.factor,super.inferFactor,time