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.0007059/0.0007059, allocations: 97.72 kB / 16.06 MB, free: 40 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.0007756/0.0007756, allocations: 181.1 kB / 16.96 MB, free: 6.895 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.207/1.207, allocations: 205.4 MB / 223.1 MB, free: 5.512 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.0617/0.0617, allocations: 12.61 MB / 284 MB, free: 8.586 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.0006497/0.0006498, allocations: 16.75 kB / 345.2 MB, free: 20.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07022/0.07088, allocations: 50.38 MB / 395.5 MB, free: 2.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002235/0.07315, allocations: 2.051 MB / 397.6 MB, free: 380 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.07437, allocations: 0.8544 MB / 398.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001321/0.07451, allocations: 7.938 kB / 398.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002058/0.07473, allocations: 39.7 kB / 398.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001762/0.07492, allocations: 55.67 kB / 398.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004815/0.07541, allocations: 171.8 kB / 398.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003453/0.07576, allocations: 375.5 kB / 399.1 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001665/0.07594, allocations: 95.12 kB / 399.2 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001717/0.07612, allocations: 147.3 kB / 399.3 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001916/0.07632, allocations: 159.3 kB / 399.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.843e-05/0.07637, allocations: 16 kB / 399.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.465e-05/0.07641, allocations: 16 kB / 399.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.848e-05/0.07651, allocations: 91.69 kB / 399.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001307/0.07665, allocations: 172.8 kB / 399.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002721/0.07693, allocations: 331 kB / 400.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.07694, allocations: 0 / 400.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.07695, allocations: 0 / 400.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.07696, allocations: 0 / 400.1 MB, free: 13.86 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.001025/0.07799, allocations: 0.6315 MB / 400.7 MB, free: 13.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.882e-05/0.07803, allocations: 8.031 kB / 400.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.113e-05/0.0781, allocations: 44.47 kB / 400.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003189/0.07843, allocations: 307.1 kB / 401.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001807/0.07862, allocations: 142.3 kB / 401.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.614e-05/0.07868, allocations: 28.38 kB / 401.2 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.07977, allocations: 0.6017 MB / 401.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.0798, allocations: 0 / 401.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.464e-05/0.07984, allocations: 12 kB / 401.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.07985, allocations: 8 kB / 401.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001317/0.08117, allocations: 0.5347 MB / 402.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.08252, allocations: 1.037 MB / 403.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/0.08401, allocations: 0.5141 MB / 403.9 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006166/0.08463, allocations: 275.3 kB / 404.2 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.906e-05/0.08469, allocations: 16.12 kB / 404.2 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.08471, allocations: 38.56 kB / 404.3 MB, free: 9.406 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.643e-06/0.08472, allocations: 0 / 404.3 MB, free: 9.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03847/0.1232, allocations: 6.78 MB / 411 MB, free: 2.609 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.952e-05/0.1233, allocations: 149.3 kB / 411.2 MB, free: 2.434 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002672/0.1236, allocations: 258.5 kB / 411.4 MB, free: 2.164 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.206e-05/0.1237, allocations: 41.7 kB / 411.5 MB, free: 2.117 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.897e-05/0.1238, allocations: 149.4 kB / 411.6 MB, free: 1.969 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001826/0.124, allocations: 193.3 kB / 411.8 MB, free: 1.777 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.1241, allocations: 57.69 kB / 411.9 MB, free: 1.715 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1242, allocations: 350.7 kB / 412.2 MB, free: 1.363 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001585/0.1258, allocations: 0.6539 MB / 412.9 MB, free: 0.707 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001675/0.1275, allocations: 0.8316 MB / 413.7 MB, free: 15.8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003009/0.1305, allocations: 1.333 MB / 415 MB, free: 14.39 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.1306, allocations: 0 / 415 MB, free: 14.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003462/0.134, allocations: 1.468 MB / 416.5 MB, free: 12.91 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.1341, allocations: 8 kB / 416.5 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.1341, allocations: 7.938 kB / 416.5 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/0.1341, allocations: 8 kB / 416.5 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001281/0.1354, allocations: 239.7 kB / 416.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.677e-05/0.1354, allocations: 8 kB / 416.8 MB, free: 12.65 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009597/0.1364, allocations: 123.7 kB / 416.9 MB, free: 12.53 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.772e-05/0.1365, allocations: 35.98 kB / 416.9 MB, free: 12.49 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.0003089/0.1368, allocations: 189.6 kB / 417.1 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002946/0.1371, allocations: 161.1 kB / 417.3 MB, free: 12.13 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001887/0.1373, allocations: 67.61 kB / 417.3 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.1373, allocations: 8 kB / 417.3 MB, free: 12.06 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.321e-06/0.1373, allocations: 0 / 417.3 MB, free: 12.06 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.749e-06/0.1373, allocations: 7.984 kB / 417.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004641/0.142, allocations: 2.309 MB / 419.7 MB, free: 9.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.505e-05/0.142, allocations: 12.19 kB / 419.7 MB, free: 9.547 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007274/0.1427, allocations: 207.7 kB / 419.9 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.546e-05/0.1428, allocations: 23.98 kB / 419.9 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.853e-05/0.1428, allocations: 24 kB / 419.9 MB, free: 9.297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.274e-05/0.1428, allocations: 15.94 kB / 419.9 MB, free: 9.281 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.986e-06/0.1429, allocations: 15.94 kB / 420 MB, free: 9.266 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003082/0.1459, allocations: 1.682 MB / 421.6 MB, free: 7.434 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001947/0.1461, allocations: 184.5 kB / 421.8 MB, free: 7.234 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.398e-05/0.1462, allocations: 24 kB / 421.8 MB, free: 7.211 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005846/0.1468, allocations: 95.97 kB / 421.9 MB, free: 7.117 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001653/0.147, allocations: 95.66 kB / 422 MB, free: 7.023 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.401e-05/0.147, allocations: 32 kB / 422.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001609/0.1472, allocations: 186 kB / 422.2 MB, free: 6.812 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1472, allocations: 0 / 422.2 MB, free: 6.812 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006007/0.1478, allocations: 124 kB / 422.4 MB, free: 6.691 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.0001428/0.148, allocations: 138.9 kB / 422.5 MB, free: 6.547 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002721/0.1507, allocations: 1.19 MB / 423.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.1507, allocations: 1.375 kB / 423.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009533/0.1517, allocations: 381.8 kB / 424.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00107/0.1527, allocations: 160.6 kB / 424.2 MB, free: 4.828 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002278/0.155, allocations: 1.453 MB / 425.7 MB, free: 3.207 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003872/0.1554, allocations: 0.8288 MB / 426.5 MB, free: 2.355 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005789/0.156, allocations: 92.16 kB / 426.6 MB, free: 2.266 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002928/0.1563, allocations: 43.42 kB / 426.6 MB, free: 2.223 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1563, allocations: 0 / 426.6 MB, free: 2.223 MB / 318.1 MB Notification: Performance of Templates: time 0.14/0.2964, allocations: 7.691 MB / 434.3 MB, free: 38.8 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