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.007447/0.007447, allocations: 92.47 kB / 15.91 MB, free: 6.281 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.001654/0.001654, allocations: 202.3 kB / 16.84 MB, free: 6.195 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.533/1.533, allocations: 205.1 MB / 222.7 MB, free: 4.758 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.08512/0.08512, allocations: 12.6 MB / 282.6 MB, free: 8.883 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.001637/0.001637, allocations: 80.83 kB / 342.8 MB, free: 21.2 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.125, allocations: 49.4 MB / 392.2 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003852/0.1289, allocations: 2.428 MB / 394.6 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001462/0.1304, allocations: 0.8582 MB / 395.5 MB, free: 416 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001703/0.1306, allocations: 7.938 kB / 395.5 MB, free: 408 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002925/0.1309, allocations: 39.77 kB / 395.5 MB, free: 368 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001872/0.1311, allocations: 55.67 kB / 395.6 MB, free: 312 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005522/0.1317, allocations: 179.7 kB / 395.7 MB, free: 132 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003862/0.1321, allocations: 371.6 kB / 396.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001943/0.1323, allocations: 91.05 kB / 396.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002028/0.1325, allocations: 151.4 kB / 396.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002446/0.1328, allocations: 179.2 kB / 396.5 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.921e-05/0.1328, allocations: 24 kB / 396.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.226e-05/0.1329, allocations: 24 kB / 396.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001219/0.133, allocations: 91.66 kB / 396.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001555/0.1332, allocations: 159.1 kB / 396.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003502/0.1335, allocations: 339 kB / 397.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.1335, allocations: 0 / 397.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.1335, allocations: 0 / 397.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.1336, allocations: 4 kB / 397.1 MB, free: 14.72 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.001297/0.1349, allocations: 0.6665 MB / 397.8 MB, free: 14.01 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.1349, allocations: 12.02 kB / 397.8 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.997e-05/0.135, allocations: 44.47 kB / 397.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004174/0.1354, allocations: 303.1 kB / 398.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002168/0.1357, allocations: 138.3 kB / 398.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.843e-05/0.1357, allocations: 24.38 kB / 398.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001158/0.1369, allocations: 0.59 MB / 398.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.1369, allocations: 3.984 kB / 398.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.67e-05/0.137, allocations: 12 kB / 398.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.137, allocations: 8 kB / 398.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.1383, allocations: 0.5112 MB / 399.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001474/0.1397, allocations: 1.025 MB / 400.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.1412, allocations: 0.5024 MB / 401 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005817/0.1418, allocations: 263.4 kB / 401.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.888e-05/0.1419, allocations: 4 kB / 401.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.1419, allocations: 46.5 kB / 401.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.814e-06/0.1419, allocations: 0 / 401.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03726/0.1792, allocations: 5.734 MB / 407 MB, free: 4.566 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.1794, allocations: 152.9 kB / 407.2 MB, free: 4.387 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003139/0.1797, allocations: 258.5 kB / 407.4 MB, free: 4.117 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.449e-05/0.1798, allocations: 33.7 kB / 407.4 MB, free: 4.078 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.506e-05/0.1799, allocations: 165.3 kB / 407.6 MB, free: 3.914 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001885/0.1801, allocations: 185.4 kB / 407.8 MB, free: 3.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002794/0.1804, allocations: 114.6 kB / 407.9 MB, free: 3.613 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1805, allocations: 342.8 kB / 408.2 MB, free: 3.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00138/0.1819, allocations: 0.6149 MB / 408.8 MB, free: 2.656 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001514/0.1834, allocations: 0.8002 MB / 409.6 MB, free: 1.781 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002628/0.186, allocations: 1.247 MB / 410.9 MB, free: 468 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.1861, allocations: 4 kB / 410.9 MB, free: 464 kB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003095/0.1892, allocations: 1.406 MB / 412.3 MB, free: 15.03 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.545e-05/0.1892, allocations: 8 kB / 412.3 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.1892, allocations: 7.984 kB / 412.3 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.458e-05/0.1892, allocations: 8 kB / 412.3 MB, free: 15.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.1905, allocations: 207.7 kB / 412.5 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.638e-05/0.1906, allocations: 11.94 kB / 412.5 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009034/0.1915, allocations: 107.8 kB / 412.6 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.29e-05/0.1916, allocations: 24 kB / 412.7 MB, free: 14.66 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.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.0003367/0.1919, allocations: 186 kB / 412.9 MB, free: 14.47 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003016/0.1922, allocations: 173.3 kB / 413 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001588/0.1924, allocations: 67.61 kB / 413.1 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.1924, allocations: 8 kB / 413.1 MB, free: 14.22 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.1924, allocations: 8 kB / 413.1 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.1924, allocations: 3.984 kB / 413.1 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004488/0.1969, allocations: 2.183 MB / 415.3 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.1969, allocations: 12 kB / 415.3 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007125/0.1977, allocations: 180.3 kB / 415.5 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.598e-05/0.1977, allocations: 12 kB / 415.5 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.898e-05/0.1977, allocations: 28 kB / 415.5 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.679e-05/0.1978, allocations: 23.88 kB / 415.5 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.117e-06/0.1978, allocations: 11.94 kB / 415.6 MB, free: 11.58 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002815/0.2006, allocations: 1.564 MB / 417.1 MB, free: 9.867 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001873/0.2008, allocations: 180.5 kB / 417.3 MB, free: 9.672 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.905e-05/0.2009, allocations: 24 kB / 417.3 MB, free: 9.648 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005503/0.2014, allocations: 79.91 kB / 417.4 MB, free: 9.57 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001866/0.2016, allocations: 95.72 kB / 417.5 MB, free: 9.477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.625e-05/0.2017, allocations: 32 kB / 417.5 MB, free: 9.445 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001628/0.2019, allocations: 190 kB / 417.7 MB, free: 9.262 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2019, allocations: 7.875 kB / 417.7 MB, free: 9.254 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006333/0.2025, allocations: 124 kB / 417.8 MB, free: 9.133 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 (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.0001334/0.2026, allocations: 130.9 kB / 418 MB, free: 8.996 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002458/0.2051, allocations: 1.119 MB / 419.1 MB, free: 7.875 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.2051, allocations: 0 / 419.1 MB, free: 7.875 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008831/0.206, allocations: 343.2 kB / 419.4 MB, free: 7.543 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009124/0.2069, allocations: 165.2 kB / 419.6 MB, free: 7.383 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002293/0.2092, allocations: 1.399 MB / 421 MB, free: 5.816 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.2096, allocations: 0.8327 MB / 421.8 MB, free: 4.961 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005834/0.2102, allocations: 92.16 kB / 421.9 MB, free: 4.871 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002864/0.2105, allocations: 39.44 kB / 421.9 MB, free: 4.832 MB / 318.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2105, allocations: 0 / 421.9 MB, free: 4.832 MB / 318.1 MB Notification: Performance of Templates: time 0.2124/0.4229, allocations: 7.795 MB / 429.7 MB, free: 39.94 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (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) 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