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.001846/0.001846, allocations: 106 kB / 16.31 MB, free: 5.879 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.001832/0.001832, allocations: 191.2 kB / 17.24 MB, free: 5.539 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.74/1.74, allocations: 205.1 MB / 223.1 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08344/0.08344, allocations: 12.59 MB / 283.1 MB, free: 15.46 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.001809/0.001809, allocations: 87.88 kB / 343.5 MB, free: 2.945 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3758/0.3777, allocations: 49.38 MB / 392.9 MB, free: 49.19 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004325/0.382, allocations: 2.381 MB / 395.2 MB, free: 47.54 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001754/0.3838, allocations: 0.8682 MB / 396.1 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001985/0.3841, allocations: 9.156 kB / 396.1 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003669/0.3844, allocations: 55.44 kB / 396.2 MB, free: 46.9 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002751/0.3847, allocations: 74.2 kB / 396.3 MB, free: 46.85 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006305/0.3854, allocations: 191.7 kB / 396.4 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004369/0.3858, allocations: 393.2 kB / 396.8 MB, free: 46.54 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002506/0.3861, allocations: 108 kB / 396.9 MB, free: 46.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000212/0.3863, allocations: 162.6 kB / 397.1 MB, free: 46.38 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002329/0.3865, allocations: 180.8 kB / 397.3 MB, free: 46.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.939e-05/0.3866, allocations: 34.03 kB / 397.3 MB, free: 46.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.453e-05/0.3867, allocations: 34.69 kB / 397.3 MB, free: 46.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001176/0.3868, allocations: 108.5 kB / 397.4 MB, free: 46.17 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000156/0.387, allocations: 163.5 kB / 397.6 MB, free: 46.04 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003649/0.3873, allocations: 353.4 kB / 397.9 MB, free: 45.78 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3873, allocations: 4 kB / 397.9 MB, free: 45.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.3873, allocations: 0 / 397.9 MB, free: 45.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.3874, allocations: 1.156 kB / 397.9 MB, free: 45.77 MB / 318.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.001338/0.3887, allocations: 0.6747 MB / 398.6 MB, free: 45.19 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.3888, allocations: 9.281 kB / 398.6 MB, free: 45.19 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.3889, allocations: 44.78 kB / 398.7 MB, free: 45.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003797/0.3893, allocations: 295 kB / 399 MB, free: 44.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000225/0.3895, allocations: 140.8 kB / 399.1 MB, free: 44.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.433e-05/0.3896, allocations: 28.22 kB / 399.1 MB, free: 44.76 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/0.3908, allocations: 0.578 MB / 399.7 MB, free: 44.38 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.3908, allocations: 7.906 kB / 399.7 MB, free: 44.38 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.973e-05/0.3909, allocations: 11.28 kB / 399.7 MB, free: 44.37 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.736e-05/0.3909, allocations: 6.75 kB / 399.7 MB, free: 44.37 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001534/0.3925, allocations: 0.5118 MB / 400.2 MB, free: 44.14 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001468/0.3939, allocations: 1.037 MB / 401.3 MB, free: 43.21 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001539/0.3955, allocations: 0.5013 MB / 401.8 MB, free: 42.92 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000617/0.3961, allocations: 259 kB / 402 MB, free: 42.78 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.86e-05/0.3962, allocations: 5.688 kB / 402 MB, free: 42.78 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.18e-05/0.3962, allocations: 48.8 kB / 402.1 MB, free: 42.72 MB / 318.1 MB Notification: Performance of pre-optimization done (n=44): time 2.034e-06/0.3962, allocations: 0 / 402.1 MB, free: 42.72 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.03719/0.4334, allocations: 5.739 MB / 407.8 MB, free: 38.61 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001333/0.4336, allocations: 156.9 kB / 408 MB, free: 38.42 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002964/0.4339, allocations: 250.6 kB / 408.2 MB, free: 38.16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.011e-05/0.434, allocations: 41.7 kB / 408.3 MB, free: 38.12 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.895e-05/0.4341, allocations: 153.5 kB / 408.4 MB, free: 37.96 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/0.4342, allocations: 193.3 kB / 408.6 MB, free: 37.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002618/0.4345, allocations: 118.6 kB / 408.7 MB, free: 37.65 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.536e-05/0.4346, allocations: 342.8 kB / 409.1 MB, free: 37.31 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001367/0.436, allocations: 0.6188 MB / 409.7 MB, free: 36.69 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001422/0.4374, allocations: 0.7924 MB / 410.5 MB, free: 35.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00261/0.44, allocations: 1.252 MB / 411.7 MB, free: 34.49 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.44, allocations: 0 / 411.7 MB, free: 34.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003041/0.4431, allocations: 1.402 MB / 413.1 MB, free: 33.08 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/0.4431, allocations: 11.94 kB / 413.1 MB, free: 33.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.4432, allocations: 11.94 kB / 413.1 MB, free: 33.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.113e-05/0.4432, allocations: 12 kB / 413.2 MB, free: 33.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001225/0.4444, allocations: 207.7 kB / 413.4 MB, free: 32.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.611e-05/0.4444, allocations: 15.92 kB / 413.4 MB, free: 32.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008731/0.4453, allocations: 99.73 kB / 413.5 MB, free: 32.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.293e-05/0.4454, allocations: 31.98 kB / 413.5 MB, free: 32.7 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.0003673/0.4458, allocations: 185.6 kB / 413.7 MB, free: 32.51 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002804/0.4461, allocations: 161.4 kB / 413.8 MB, free: 32.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001486/0.4462, allocations: 71.61 kB / 413.9 MB, free: 32.27 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.802e-06/0.4462, allocations: 8 kB / 413.9 MB, free: 32.26 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/0.4463, allocations: 4 kB / 413.9 MB, free: 32.26 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.4463, allocations: 4.078 kB / 413.9 MB, free: 32.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003899/0.4502, allocations: 2.186 MB / 416.1 MB, free: 29.88 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.718e-06/0.4502, allocations: 8.938 kB / 416.1 MB, free: 29.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006363/0.4509, allocations: 183.7 kB / 416.3 MB, free: 29.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.06e-05/0.4509, allocations: 16 kB / 416.3 MB, free: 29.68 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.212e-05/0.4509, allocations: 24 kB / 416.3 MB, free: 29.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.169e-05/0.4509, allocations: 23.92 kB / 416.4 MB, free: 29.63 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/0.4509, allocations: 19.88 kB / 416.4 MB, free: 29.61 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0026/0.4536, allocations: 1.553 MB / 417.9 MB, free: 27.91 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001712/0.4537, allocations: 172.6 kB / 418.1 MB, free: 27.72 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.66e-05/0.4538, allocations: 31.98 kB / 418.1 MB, free: 27.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00053/0.4544, allocations: 71.92 kB / 418.2 MB, free: 27.62 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001887/0.4546, allocations: 99.72 kB / 418.3 MB, free: 27.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.059e-05/0.4546, allocations: 28 kB / 418.3 MB, free: 27.49 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001781/0.4548, allocations: 186 kB / 418.5 MB, free: 27.31 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.343e-06/0.4548, allocations: 0 / 418.5 MB, free: 27.31 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00069/0.4555, allocations: 127.9 kB / 418.6 MB, free: 27.18 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.0001708/0.4557, allocations: 134.9 kB / 418.8 MB, free: 27.04 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002573/0.4583, allocations: 1.154 MB / 419.9 MB, free: 25.89 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.904e-06/0.4583, allocations: 1.375 kB / 419.9 MB, free: 25.89 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008622/0.4591, allocations: 341.9 kB / 420.3 MB, free: 25.56 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009765/0.4601, allocations: 155.8 kB / 420.4 MB, free: 25.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002225/0.4624, allocations: 1.248 MB / 421.7 MB, free: 24 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.4627, allocations: 0.8324 MB / 422.5 MB, free: 23.14 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005343/0.4632, allocations: 92.16 kB / 422.6 MB, free: 23.05 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002543/0.4635, allocations: 43.38 kB / 422.6 MB, free: 23.01 MB / 318.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4635, allocations: 0 / 422.6 MB, free: 23.01 MB / 318.1 MB Notification: Performance of Templates: time 0.01232/0.4758, allocations: 8.405 MB / 431 MB, free: 14.63 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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