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.001141/0.001141, allocations: 102.2 kB / 16.02 MB, free: 6.312 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.001047/0.001048, allocations: 193.8 kB / 16.95 MB, free: 6.148 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.586/1.586, allocations: 205.1 MB / 222.8 MB, free: 4.676 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.0871/0.0871, allocations: 12.58 MB / 282.7 MB, free: 8.805 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.001795/0.001795, allocations: 83.89 kB / 343 MB, free: 21.11 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.1497, allocations: 49.41 MB / 392.4 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004334/0.1541, allocations: 2.428 MB / 394.8 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0018/0.1559, allocations: 0.8504 MB / 395.6 MB, free: 316 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001924/0.1561, allocations: 11.94 kB / 395.7 MB, free: 304 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003619/0.1565, allocations: 43.7 kB / 395.7 MB, free: 260 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002537/0.1568, allocations: 55.67 kB / 395.8 MB, free: 204 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005946/0.1574, allocations: 167.8 kB / 395.9 MB, free: 36 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004808/0.1579, allocations: 403.5 kB / 396.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002708/0.1581, allocations: 111.2 kB / 396.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000252/0.1584, allocations: 163.4 kB / 396.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002741/0.1587, allocations: 183.2 kB / 396.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.013e-05/0.1587, allocations: 32 kB / 396.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.342e-05/0.1588, allocations: 36 kB / 396.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001398/0.159, allocations: 103.7 kB / 396.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001749/0.1591, allocations: 175 kB / 397.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003841/0.1595, allocations: 351 kB / 397.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.1595, allocations: 0 / 397.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.857e-06/0.1596, allocations: 4 kB / 397.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.657e-06/0.1596, allocations: 3.938 kB / 397.5 MB, free: 14.5 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.001316/0.1609, allocations: 0.6704 MB / 398.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.1609, allocations: 12.03 kB / 398.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.043e-05/0.161, allocations: 44.47 kB / 398.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004/0.1614, allocations: 299.1 kB / 398.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002167/0.1617, allocations: 138.3 kB / 398.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.866e-05/0.1617, allocations: 32.38 kB / 398.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/0.163, allocations: 0.59 MB / 399.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.163, allocations: 0 / 399.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.997e-05/0.1631, allocations: 12 kB / 399.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.1631, allocations: 4 kB / 399.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001382/0.1645, allocations: 0.5034 MB / 399.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.1661, allocations: 1.033 MB / 400.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001477/0.1675, allocations: 0.5024 MB / 401.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005479/0.1681, allocations: 259.3 kB / 401.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.034e-05/0.1682, allocations: 11.98 kB / 401.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.886e-05/0.1682, allocations: 38.56 kB / 401.6 MB, free: 10.1 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.443e-06/0.1682, allocations: 0 / 401.6 MB, free: 10.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03754/0.2058, allocations: 5.738 MB / 407.3 MB, free: 4.348 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/0.206, allocations: 145.3 kB / 407.5 MB, free: 4.172 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000321/0.2063, allocations: 262.5 kB / 407.7 MB, free: 3.898 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.081e-05/0.2064, allocations: 41.64 kB / 407.8 MB, free: 3.852 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.2065, allocations: 161.3 kB / 407.9 MB, free: 3.691 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000194/0.2067, allocations: 181.5 kB / 408.1 MB, free: 3.512 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000285/0.207, allocations: 118.6 kB / 408.2 MB, free: 3.391 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.2072, allocations: 342.8 kB / 408.5 MB, free: 3.047 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001424/0.2086, allocations: 0.6149 MB / 409.2 MB, free: 2.434 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001522/0.2101, allocations: 0.8002 MB / 410 MB, free: 1.559 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00272/0.2129, allocations: 1.251 MB / 411.2 MB, free: 236 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.2129, allocations: 4 kB / 411.2 MB, free: 232 kB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003435/0.2163, allocations: 1.398 MB / 412.6 MB, free: 14.81 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.927e-05/0.2164, allocations: 4 kB / 412.6 MB, free: 14.81 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.064e-05/0.2164, allocations: 8 kB / 412.6 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.107e-05/0.2164, allocations: 11.98 kB / 412.6 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/0.2178, allocations: 211.7 kB / 412.8 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.768e-05/0.2178, allocations: 12 kB / 412.9 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009169/0.2187, allocations: 99.73 kB / 413 MB, free: 14.47 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.923e-05/0.2188, allocations: 27.98 kB / 413 MB, free: 14.45 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.0003856/0.2192, allocations: 193.6 kB / 413.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003572/0.2196, allocations: 165.4 kB / 413.3 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001806/0.2198, allocations: 67.61 kB / 413.4 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.2198, allocations: 8 kB / 413.4 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.2198, allocations: 0 / 413.4 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.2198, allocations: 7.984 kB / 413.4 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004723/0.2246, allocations: 2.183 MB / 415.6 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.279e-05/0.2246, allocations: 8.219 kB / 415.6 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007248/0.2253, allocations: 187.9 kB / 415.8 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.493e-05/0.2254, allocations: 12 kB / 415.8 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.918e-05/0.2254, allocations: 31.98 kB / 415.8 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.649e-05/0.2254, allocations: 15.94 kB / 415.8 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.485e-05/0.2255, allocations: 15.94 kB / 415.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003225/0.2287, allocations: 1.576 MB / 417.4 MB, free: 9.637 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002643/0.229, allocations: 176.5 kB / 417.6 MB, free: 9.445 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.795e-05/0.2291, allocations: 27.98 kB / 417.6 MB, free: 9.418 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005694/0.2296, allocations: 79.98 kB / 417.7 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.2298, allocations: 91.66 kB / 417.8 MB, free: 9.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.14e-05/0.2299, allocations: 32 kB / 417.8 MB, free: 9.219 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002055/0.2301, allocations: 186 kB / 418 MB, free: 9.039 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2301, allocations: 0 / 418 MB, free: 9.039 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007184/0.2309, allocations: 124 kB / 418.1 MB, free: 8.918 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.0002191/0.2311, allocations: 138.9 kB / 418.3 MB, free: 8.773 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002832/0.2339, allocations: 1.151 MB / 419.4 MB, free: 7.621 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-05/0.2339, allocations: 4.438 kB / 419.4 MB, free: 7.617 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009994/0.235, allocations: 345.8 kB / 419.8 MB, free: 7.281 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001028/0.236, allocations: 152.7 kB / 419.9 MB, free: 7.133 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00297/0.239, allocations: 1.401 MB / 421.3 MB, free: 5.57 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005711/0.2396, allocations: 0.8285 MB / 422.1 MB, free: 4.715 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006318/0.2402, allocations: 96.14 kB / 422.2 MB, free: 4.621 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002801/0.2405, allocations: 39.91 kB / 422.3 MB, free: 4.582 MB / 318.1 MB Notification: Performance of SimCode: time 1.303e-06/0.2405, allocations: 0 / 422.3 MB, free: 4.582 MB / 318.1 MB Notification: Performance of Templates: time 0.2555/0.496, allocations: 8.204 MB / 430.5 MB, free: 40.21 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