Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009541/0.0009541, allocations: 94.33 kB / 16.04 MB, free: 5.301 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08131/0.08131, allocations: 12.63 MB / 29.41 MB, free: 5.941 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0001521/0.0001521, allocations: 4 kB / 40.26 MB, free: 0.5117 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.004685/0.004851, allocations: 2.839 MB / 43.1 MB, free: 5.949 MB / 33.03 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks): time 1.387/1.392, allocations: 278.3 MB / 321.4 MB, free: 9.934 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001321/1.394, allocations: 0.7756 MB / 322.2 MB, free: 9.156 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/1.394, allocations: 7.938 kB / 322.2 MB, free: 9.148 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000232/1.394, allocations: 44.55 kB / 322.2 MB, free: 9.105 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001808/1.394, allocations: 56.64 kB / 322.3 MB, free: 9.051 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004655/1.395, allocations: 178.4 kB / 322.4 MB, free: 8.879 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003239/1.395, allocations: 367.5 kB / 322.8 MB, free: 8.52 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002406/1.395, allocations: 196.2 kB / 323 MB, free: 8.332 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001639/1.395, allocations: 139.3 kB / 323.1 MB, free: 8.195 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001877/1.396, allocations: 167.2 kB / 323.3 MB, free: 8.031 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.218e-05/1.396, allocations: 16 kB / 323.3 MB, free: 8.016 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.827e-05/1.396, allocations: 16 kB / 323.3 MB, free: 8 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.674e-05/1.396, allocations: 83.72 kB / 323.4 MB, free: 7.918 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001348/1.396, allocations: 174.4 kB / 323.6 MB, free: 7.742 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000279/1.396, allocations: 334.7 kB / 323.9 MB, free: 7.414 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/1.396, allocations: 3.938 kB / 323.9 MB, free: 7.41 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.703e-06/1.396, allocations: 0 / 323.9 MB, free: 7.41 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.24e-06/1.396, allocations: 4.656 kB / 323.9 MB, free: 7.406 MB / 250.7 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.001034/1.397, allocations: 0.6148 MB / 324.5 MB, free: 6.75 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/1.397, allocations: 8.781 kB / 324.5 MB, free: 6.742 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.088e-05/1.397, allocations: 44.47 kB / 324.6 MB, free: 6.699 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003478/1.398, allocations: 316.5 kB / 324.9 MB, free: 6.348 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001978/1.398, allocations: 139.5 kB / 325 MB, free: 6.195 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.874e-05/1.398, allocations: 32.38 kB / 325.1 MB, free: 6.164 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/1.399, allocations: 0.5822 MB / 325.6 MB, free: 5.562 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/1.399, allocations: 1.75 kB / 325.6 MB, free: 5.562 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.806e-05/1.399, allocations: 12 kB / 325.7 MB, free: 5.551 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/1.399, allocations: 4 kB / 325.7 MB, free: 5.547 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0012/1.4, allocations: 0.5276 MB / 326.2 MB, free: 5.023 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001362/1.402, allocations: 1.046 MB / 327.2 MB, free: 3.91 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/1.403, allocations: 0.5161 MB / 327.7 MB, free: 3.359 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005401/1.404, allocations: 275.3 kB / 328 MB, free: 3.078 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.959e-05/1.404, allocations: 4 kB / 328 MB, free: 3.074 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/1.404, allocations: 42.5 kB / 328.1 MB, free: 3.023 MB / 250.7 MB Notification: Performance of pre-optimization done (n=44): time 1.933e-06/1.404, allocations: 4 kB / 328.1 MB, free: 3.02 MB / 250.7 MB Notification: Performance of matching and sorting (n=72): time 0.03504/1.439, allocations: 6.793 MB / 334.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/1.439, allocations: 148.9 kB / 335 MB, free: 12.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002736/1.439, allocations: 258.5 kB / 335.3 MB, free: 11.78 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.921e-05/1.439, allocations: 37.7 kB / 335.3 MB, free: 11.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.249e-05/1.439, allocations: 153.5 kB / 335.4 MB, free: 11.58 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001774/1.44, allocations: 193.3 kB / 335.6 MB, free: 11.39 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.058e-05/1.44, allocations: 16 kB / 335.6 MB, free: 11.37 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/1.44, allocations: 342.8 kB / 336 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001479/1.441, allocations: 0.6504 MB / 336.6 MB, free: 10.38 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001507/1.443, allocations: 0.8354 MB / 337.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002693/1.445, allocations: 1.318 MB / 338.8 MB, free: 8.074 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/1.445, allocations: 0 / 338.8 MB, free: 8.074 MB / 266.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003078/1.449, allocations: 1.476 MB / 340.3 MB, free: 6.59 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/1.449, allocations: 8 kB / 340.3 MB, free: 6.582 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/1.449, allocations: 7.938 kB / 340.3 MB, free: 6.574 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/1.449, allocations: 12 kB / 340.3 MB, free: 6.562 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/1.45, allocations: 227.7 kB / 340.5 MB, free: 6.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.665e-05/1.45, allocations: 11.94 kB / 340.5 MB, free: 6.328 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008491/1.451, allocations: 123.7 kB / 340.6 MB, free: 6.207 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.992e-05/1.451, allocations: 27.98 kB / 340.7 MB, free: 6.18 MB / 266.7 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002851/1.451, allocations: 189.9 kB / 340.9 MB, free: 5.984 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002809/1.451, allocations: 169 kB / 341 MB, free: 5.812 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001422/1.452, allocations: 71.61 kB / 341.1 MB, free: 5.738 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.365e-06/1.452, allocations: 8.234 kB / 341.1 MB, free: 5.73 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.876e-06/1.452, allocations: 0 / 341.1 MB, free: 5.73 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/1.452, allocations: 15.91 kB / 341.1 MB, free: 5.715 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004443/1.456, allocations: 2.304 MB / 343.4 MB, free: 3.227 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.138e-05/1.456, allocations: 11.94 kB / 343.4 MB, free: 3.215 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007024/1.457, allocations: 200.2 kB / 343.6 MB, free: 3.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.561e-05/1.457, allocations: 16 kB / 343.6 MB, free: 3.004 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.938e-05/1.457, allocations: 24 kB / 343.7 MB, free: 2.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.444e-05/1.457, allocations: 15.94 kB / 343.7 MB, free: 2.965 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.119e-05/1.457, allocations: 19.88 kB / 343.7 MB, free: 2.945 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002842/1.46, allocations: 1.677 MB / 345.4 MB, free: 1.113 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002016/1.46, allocations: 180.6 kB / 345.6 MB, free: 0.918 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.805e-05/1.46, allocations: 28 kB / 345.6 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005226/1.461, allocations: 99.91 kB / 345.7 MB, free: 0.793 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/1.461, allocations: 99.66 kB / 345.8 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.322e-05/1.461, allocations: 28.19 kB / 345.8 MB, free: 0.668 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001443/1.461, allocations: 182 kB / 346 MB, free: 500 kB / 266.7 MB Notification: Performance of sort global known variables: time 1.81e-07/1.461, allocations: 3.938 kB / 346 MB, free: 496 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005495/1.462, allocations: 124 kB / 346.1 MB, free: 372 kB / 266.7 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.0001427/1.462, allocations: 142.9 kB / 346.2 MB, free: 220 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002459/1.464, allocations: 1.194 MB / 347.4 MB, free: 15.02 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/1.464, allocations: 4 kB / 347.4 MB, free: 15.02 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008817/1.465, allocations: 374.4 kB / 347.8 MB, free: 14.66 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001066/1.466, allocations: 153.9 kB / 348 MB, free: 14.51 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/1.468, allocations: 1.453 MB / 349.4 MB, free: 12.9 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/1.469, allocations: 0.8288 MB / 350.2 MB, free: 12.05 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005782/1.469, allocations: 100.1 kB / 350.3 MB, free: 11.95 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002818/1.47, allocations: 43.36 kB / 350.4 MB, free: 11.9 MB / 282.7 MB Notification: Performance of SimCode: time 4.5e-07/1.47, allocations: 0 / 350.4 MB, free: 11.9 MB / 282.7 MB Notification: Performance of Templates: time 0.01106/1.481, allocations: 7.712 MB / 358.1 MB, free: 4.195 MB / 282.7 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