Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001542/0.001542, allocations: 196 kB / 18 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001749/0.001749, allocations: 43.92 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3541/0.3559, allocations: 49.43 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003905/0.3598, allocations: 2.394 MB / 403.1 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001622/0.3615, allocations: 0.826 MB / 403.9 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001836/0.3617, allocations: 7.938 kB / 403.9 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003177/0.3621, allocations: 59.56 kB / 404 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002219/0.3623, allocations: 67.48 kB / 404 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005934/0.3629, allocations: 199.4 kB / 404.2 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003985/0.3633, allocations: 395.5 kB / 404.6 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002211/0.3635, allocations: 99.5 kB / 404.7 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002427/0.3638, allocations: 159.4 kB / 404.9 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002626/0.3641, allocations: 187.2 kB / 405.1 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.229e-05/0.3641, allocations: 32 kB / 405.1 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.241e-05/0.3642, allocations: 36 kB / 405.1 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.3643, allocations: 107.7 kB / 405.2 MB, free: 4.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001454/0.3645, allocations: 163 kB / 405.4 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004058/0.3649, allocations: 370.2 kB / 405.8 MB, free: 3.801 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.3649, allocations: 4 kB / 405.8 MB, free: 3.797 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3649, allocations: 4 kB / 405.8 MB, free: 3.793 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.3649, allocations: 0 / 405.8 MB, free: 3.793 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.001238/0.3662, allocations: 0.6778 MB / 406.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.3662, allocations: 11.89 kB / 406.5 MB, free: 3.055 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.723e-05/0.3663, allocations: 48.7 kB / 406.5 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004584/0.3668, allocations: 315.2 kB / 406.8 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002076/0.367, allocations: 142.3 kB / 406.9 MB, free: 2.504 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.049e-05/0.3671, allocations: 28.38 kB / 407 MB, free: 2.477 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001193/0.3683, allocations: 0.5739 MB / 407.6 MB, free: 1.875 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.3683, allocations: 3.953 kB / 407.6 MB, free: 1.871 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.601e-05/0.3683, allocations: 12 kB / 407.6 MB, free: 1.859 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.3684, allocations: 8 kB / 407.6 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00139/0.3698, allocations: 0.5113 MB / 408.1 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001599/0.3714, allocations: 1.03 MB / 409.1 MB, free: 240 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001592/0.373, allocations: 0.4949 MB / 409.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006384/0.3736, allocations: 263.4 kB / 409.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.701e-05/0.3737, allocations: 4 kB / 409.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.3737, allocations: 46.5 kB / 409.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.204e-06/0.3737, allocations: 0 / 409.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03686/0.4106, allocations: 5.764 MB / 415.7 MB, free: 9.594 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.4108, allocations: 152.9 kB / 415.8 MB, free: 9.414 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003261/0.4111, allocations: 258.6 kB / 416.1 MB, free: 9.156 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.016e-05/0.4112, allocations: 37.7 kB / 416.1 MB, free: 9.113 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.4113, allocations: 157.7 kB / 416.3 MB, free: 8.953 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001896/0.4115, allocations: 202.3 kB / 416.5 MB, free: 8.754 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003022/0.4118, allocations: 118.6 kB / 416.6 MB, free: 8.633 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.412, allocations: 338.8 kB / 416.9 MB, free: 8.293 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001602/0.4136, allocations: 0.6188 MB / 417.5 MB, free: 7.672 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001757/0.4153, allocations: 0.7963 MB / 418.3 MB, free: 6.797 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002932/0.4183, allocations: 1.247 MB / 419.6 MB, free: 5.469 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.4183, allocations: 4.375 kB / 419.6 MB, free: 5.465 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0035/0.4218, allocations: 1.398 MB / 421 MB, free: 4.062 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.4219, allocations: 11.94 kB / 421 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.4219, allocations: 4 kB / 421 MB, free: 4.047 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.684e-05/0.4219, allocations: 16.17 kB / 421 MB, free: 4.031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001301/0.4232, allocations: 207.7 kB / 421.2 MB, free: 3.828 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.915e-05/0.4232, allocations: 11.94 kB / 421.2 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009345/0.4242, allocations: 107.8 kB / 421.3 MB, free: 3.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.468e-05/0.4243, allocations: 31.94 kB / 421.4 MB, free: 3.68 MB / 334.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.0003525/0.4246, allocations: 193.6 kB / 421.6 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003303/0.425, allocations: 165.5 kB / 421.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002019/0.4252, allocations: 67.61 kB / 421.8 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.4252, allocations: 12 kB / 421.8 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.4252, allocations: 4 kB / 421.8 MB, free: 3.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.4252, allocations: 3.984 kB / 421.8 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004593/0.4298, allocations: 2.179 MB / 424 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/0.4299, allocations: 15.94 kB / 424 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007478/0.4306, allocations: 180.4 kB / 424.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.386e-05/0.4307, allocations: 16 kB / 424.2 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.995e-05/0.4307, allocations: 24 kB / 424.2 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.891e-05/0.4307, allocations: 23.92 kB / 424.2 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.321e-05/0.4308, allocations: 19.88 kB / 424.3 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003142/0.4339, allocations: 1.561 MB / 425.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002945/0.4342, allocations: 180.7 kB / 426 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.399e-05/0.4343, allocations: 31.98 kB / 426 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005945/0.4349, allocations: 71.92 kB / 426.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002226/0.4351, allocations: 95.72 kB / 426.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.985e-05/0.4352, allocations: 28 kB / 426.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002013/0.4354, allocations: 190 kB / 426.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4354, allocations: 0 / 426.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006949/0.4361, allocations: 124.2 kB / 426.5 MB, free: 14.15 MB / 350.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.000175/0.4363, allocations: 142.9 kB / 426.7 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002846/0.4391, allocations: 1.143 MB / 427.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/0.4392, allocations: 0 / 427.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001032/0.4402, allocations: 343.2 kB / 428.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009525/0.4412, allocations: 148.5 kB / 428.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002527/0.4437, allocations: 1.24 MB / 429.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004313/0.4442, allocations: 0.8285 MB / 430.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000495/0.4447, allocations: 100.1 kB / 430.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002868/0.445, allocations: 43.42 kB / 430.5 MB, free: 9.977 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.445, allocations: 0 / 430.5 MB, free: 9.977 MB / 350.1 MB Notification: Performance of Templates: time 0.0147/0.4597, allocations: 8.526 MB / 439 MB, free: 1.473 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches