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.001393/0.001392, allocations: 84.19 kB / 15.75 MB, free: 416 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.002543/0.002543, allocations: 174.3 kB / 16.63 MB, free: 6.891 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.909/1.909, allocations: 205.4 MB / 222.8 MB, free: 5.648 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.08944/0.08944, allocations: 12.6 MB / 283.7 MB, free: 8.691 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.0007288/0.0007291, allocations: 24 kB / 344.5 MB, free: 21.26 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1024, allocations: 50.37 MB / 394.9 MB, free: 2.801 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003012/0.1054, allocations: 1.989 MB / 396.9 MB, free: 0.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001901/0.1074, allocations: 0.8547 MB / 397.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003245/0.1077, allocations: 11.94 kB / 397.8 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003272/0.1081, allocations: 35.7 kB / 397.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002914/0.1084, allocations: 51.67 kB / 397.8 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007549/0.1091, allocations: 167.7 kB / 398 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004937/0.1096, allocations: 347.5 kB / 398.3 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002576/0.1099, allocations: 78.12 kB / 398.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002775/0.1102, allocations: 143.5 kB / 398.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002574/0.1105, allocations: 155.3 kB / 398.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.506e-05/0.1105, allocations: 16 kB / 398.7 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.017e-05/0.1106, allocations: 19.94 kB / 398.8 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.1107, allocations: 83.72 kB / 398.8 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.1108, allocations: 73.58 kB / 398.9 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002897/0.1111, allocations: 251.6 kB / 399.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1111, allocations: 0 / 399.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1111, allocations: 0 / 399.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.1112, allocations: 0 / 399.2 MB, free: 14.52 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.001275/0.1124, allocations: 0.6236 MB / 399.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.1125, allocations: 12.03 kB / 399.8 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.1126, allocations: 43.53 kB / 399.8 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004407/0.113, allocations: 301.9 kB / 400.1 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000222/0.1133, allocations: 145.7 kB / 400.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.28e-05/0.1134, allocations: 32 kB / 400.3 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.1146, allocations: 0.5821 MB / 400.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.605e-05/0.1147, allocations: 0 / 400.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.69e-05/0.1147, allocations: 12 kB / 400.9 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.388e-05/0.1147, allocations: 8 kB / 400.9 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001308/0.116, allocations: 0.5346 MB / 401.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001999/0.1181, allocations: 1.045 MB / 402.5 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.1196, allocations: 0.5146 MB / 403 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005663/0.1202, allocations: 267.7 kB / 403.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.808e-05/0.1202, allocations: 16.17 kB / 403.3 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.1203, allocations: 38.75 kB / 403.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 3.446e-06/0.1203, allocations: 3.984 kB / 403.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.0346/0.1549, allocations: 6.783 MB / 410.1 MB, free: 3.285 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/0.1551, allocations: 145.3 kB / 410.2 MB, free: 3.113 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002958/0.1554, allocations: 266.5 kB / 410.5 MB, free: 2.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.429e-05/0.1554, allocations: 33.7 kB / 410.5 MB, free: 2.801 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.947e-05/0.1556, allocations: 157.4 kB / 410.7 MB, free: 2.645 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001781/0.1557, allocations: 189.3 kB / 410.9 MB, free: 2.457 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.6e-05/0.1558, allocations: 16 kB / 410.9 MB, free: 2.441 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1559, allocations: 342.8 kB / 411.2 MB, free: 2.098 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001395/0.1573, allocations: 0.65 MB / 411.9 MB, free: 1.449 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001525/0.1589, allocations: 0.8316 MB / 412.7 MB, free: 0.543 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001358/0.1602, allocations: 0.6099 MB / 413.3 MB, free: 15.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.1603, allocations: 4 kB / 413.3 MB, free: 15.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003156/0.1634, allocations: 1.456 MB / 414.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.1635, allocations: 13.2 kB / 414.8 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.1635, allocations: 8 kB / 414.8 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.1635, allocations: 8 kB / 414.8 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/0.1647, allocations: 235.7 kB / 415 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.763e-05/0.1647, allocations: 15.97 kB / 415 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008079/0.1655, allocations: 123.7 kB / 415.2 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.398e-05/0.1656, allocations: 39.92 kB / 415.2 MB, free: 14.03 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.0003068/0.1659, allocations: 193.4 kB / 415.4 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002679/0.1662, allocations: 153.1 kB / 415.5 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001882/0.1664, allocations: 75.56 kB / 415.6 MB, free: 13.6 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.1664, allocations: 8 kB / 415.6 MB, free: 13.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.1664, allocations: 0 / 415.6 MB, free: 13.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1665, allocations: 3.984 kB / 415.6 MB, free: 13.59 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004331/0.1708, allocations: 2.301 MB / 417.9 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.315e-05/0.1708, allocations: 12 kB / 417.9 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007205/0.1716, allocations: 199.8 kB / 418.1 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.65e-05/0.1716, allocations: 16.09 kB / 418.2 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.37e-05/0.1716, allocations: 43.88 kB / 418.2 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.409e-05/0.1717, allocations: 15.94 kB / 418.2 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-05/0.1717, allocations: 15.94 kB / 418.2 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003062/0.1747, allocations: 1.666 MB / 419.9 MB, free: 8.992 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002839/0.1751, allocations: 180.5 kB / 420.1 MB, free: 8.797 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.562e-05/0.1751, allocations: 28 kB / 420.1 MB, free: 8.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005308/0.1757, allocations: 103.9 kB / 420.2 MB, free: 8.668 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000191/0.1759, allocations: 95.7 kB / 420.3 MB, free: 8.574 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-05/0.1759, allocations: 35.95 kB / 420.3 MB, free: 8.539 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001986/0.1761, allocations: 182 kB / 420.5 MB, free: 8.367 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1762, allocations: 4 kB / 420.5 MB, free: 8.363 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006837/0.1768, allocations: 124 kB / 420.6 MB, free: 8.242 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.000161/0.177, allocations: 131 kB / 420.8 MB, free: 8.105 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002661/0.1797, allocations: 1.19 MB / 421.9 MB, free: 6.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.1797, allocations: 1.375 kB / 421.9 MB, free: 6.91 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009335/0.1806, allocations: 382.2 kB / 422.3 MB, free: 6.539 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009147/0.1816, allocations: 156.6 kB / 422.5 MB, free: 6.387 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002609/0.1842, allocations: 1.413 MB / 423.9 MB, free: 4.805 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004719/0.1847, allocations: 0.8288 MB / 424.7 MB, free: 3.953 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006133/0.1853, allocations: 92.16 kB / 424.8 MB, free: 3.863 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002717/0.1856, allocations: 43.89 kB / 424.8 MB, free: 3.82 MB / 318.1 MB Notification: Performance of SimCode: time 1.944e-06/0.1856, allocations: 0 / 424.8 MB, free: 3.82 MB / 318.1 MB Notification: Performance of Templates: time 0.1777/0.3632, allocations: 7.465 MB / 432.3 MB, free: 39.52 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