Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.conf.json 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) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) Running command: translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 186.9 kB / 17.97 MB, free: 3.789 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 222.9 MB / 241.6 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009208/0.0009207, allocations: 103.8 kB / 291.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3651/0.3651, allocations: 44.13 MB / 386.1 MB, free: 38.03 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001033/0.001033, allocations: 63.89 kB / 457.7 MB, free: 2.312 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3472/0.3483, allocations: 60.8 MB / 0.5064 GB, free: 38.26 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003581/0.3519, allocations: 2.66 MB / 0.509 GB, free: 36.4 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009155/0.3529, allocations: 0.6364 MB / 0.5096 GB, free: 35.94 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001436/0.353, allocations: 9.688 kB / 0.5096 GB, free: 35.94 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001736/0.3532, allocations: 30.78 kB / 0.5096 GB, free: 35.92 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001354/0.3533, allocations: 74.06 kB / 0.5097 GB, free: 35.87 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002368/0.3536, allocations: 72.19 kB / 0.5098 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002879/0.3539, allocations: 326 kB / 0.5101 GB, free: 35.66 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000176/0.3541, allocations: 65.52 kB / 0.5102 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001522/0.3542, allocations: 118.7 kB / 0.5103 GB, free: 35.58 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001382/0.3544, allocations: 123.9 kB / 0.5104 GB, free: 35.52 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.834e-05/0.3544, allocations: 24.88 kB / 0.5104 GB, free: 35.51 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.982e-05/0.3545, allocations: 12.34 kB / 0.5104 GB, free: 35.51 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.967e-05/0.3545, allocations: 51.09 kB / 0.5105 GB, free: 35.48 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001024/0.3546, allocations: 134.6 kB / 0.5106 GB, free: 35.4 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002384/0.3549, allocations: 285.7 kB / 0.5109 GB, free: 35.29 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3549, allocations: 0 / 0.5109 GB, free: 35.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.3549, allocations: 0 / 0.5109 GB, free: 35.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.3549, allocations: 0 / 0.5109 GB, free: 35.29 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007547/0.3557, allocations: 0.5863 MB / 0.5114 GB, free: 34.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.3557, allocations: 8.625 kB / 0.5114 GB, free: 34.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.618e-05/0.3558, allocations: 33.53 kB / 0.5115 GB, free: 34.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002394/0.356, allocations: 269.9 kB / 0.5117 GB, free: 34.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.356, allocations: 20.59 kB / 0.5118 GB, free: 34.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.632e-05/0.3561, allocations: 29.72 kB / 0.5118 GB, free: 34.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003896/0.3565, allocations: 281.8 kB / 0.5121 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.3565, allocations: 6.75 kB / 0.5121 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.071e-05/0.3565, allocations: 10.84 kB / 0.5121 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.3565, allocations: 5.812 kB / 0.5121 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003648/0.3569, allocations: 184.6 kB / 0.5123 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.3582, allocations: 1.321 MB / 0.5135 GB, free: 33.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003305/0.3586, allocations: 244.4 kB / 0.5138 GB, free: 33.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/0.3588, allocations: 102.8 kB / 0.5139 GB, free: 32.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.3588, allocations: 6.141 kB / 0.5139 GB, free: 32.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.531e-05/0.3588, allocations: 37.16 kB / 0.5139 GB, free: 32.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.362e-06/0.3588, allocations: 0 / 0.5139 GB, free: 32.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002044/0.3609, allocations: 1.559 MB / 0.5154 GB, free: 31.63 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/0.3609, allocations: 138.3 kB / 0.5156 GB, free: 31.47 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.3611, allocations: 219.4 kB / 0.5158 GB, free: 31.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.3611, allocations: 36.55 kB / 0.5158 GB, free: 31.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.058e-05/0.3612, allocations: 173.5 kB / 0.516 GB, free: 31.15 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.091e-05/0.3613, allocations: 114.2 kB / 0.5161 GB, free: 31.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.079e-05/0.3614, allocations: 74.41 kB / 0.5162 GB, free: 31.01 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.261e-05/0.3614, allocations: 342.7 kB / 0.5165 GB, free: 30.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002402/0.3617, allocations: 97.86 kB / 0.5166 GB, free: 30.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002717/0.362, allocations: 239.6 kB / 0.5168 GB, free: 30.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005317/0.3625, allocations: 370.3 kB / 0.5172 GB, free: 30.19 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.3625, allocations: 2.094 kB / 0.5172 GB, free: 30.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006434/0.3632, allocations: 394.2 kB / 0.5175 GB, free: 30.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.3632, allocations: 8.531 kB / 0.5175 GB, free: 30.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.3632, allocations: 6.594 kB / 0.5176 GB, free: 30.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.3632, allocations: 8.75 kB / 0.5176 GB, free: 30.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003387/0.3636, allocations: 107.3 kB / 0.5177 GB, free: 30.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.3636, allocations: 9.125 kB / 0.5177 GB, free: 30.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001959/0.3638, allocations: 33.47 kB / 0.5177 GB, free: 30 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/0.3638, allocations: 15.88 kB / 0.5177 GB, free: 30 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * 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.0001002/0.3639, allocations: 153.6 kB / 0.5179 GB, free: 29.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.149e-05/0.364, allocations: 29.03 kB / 0.5179 GB, free: 29.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.163e-05/0.3641, allocations: 36.7 kB / 0.5179 GB, free: 29.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.3641, allocations: 6.969 kB / 0.5179 GB, free: 29.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3641, allocations: 2.5 kB / 0.5179 GB, free: 29.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.3641, allocations: 0 / 0.5179 GB, free: 29.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001168/0.3653, allocations: 0.9861 MB / 0.5189 GB, free: 29.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.3653, allocations: 2.812 kB / 0.5189 GB, free: 29.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003314/0.3656, allocations: 81.88 kB / 0.519 GB, free: 29.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.3657, allocations: 2.719 kB / 0.519 GB, free: 29.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.3657, allocations: 16.48 kB / 0.519 GB, free: 29.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.3657, allocations: 2.375 kB / 0.519 GB, free: 29.08 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3657, allocations: 240 / 0.519 GB, free: 29.08 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002211/0.3679, allocations: 2.181 MB / 0.5211 GB, free: 27.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.803e-05/0.368, allocations: 101.5 kB / 0.5212 GB, free: 27.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.99e-05/0.368, allocations: 6.844 kB / 0.5212 GB, free: 27.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002658/0.3683, allocations: 19.22 kB / 0.5213 GB, free: 27.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.716e-05/0.3684, allocations: 25.42 kB / 0.5213 GB, free: 27.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-05/0.3684, allocations: 12.91 kB / 0.5213 GB, free: 27.26 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001072/0.3685, allocations: 160.4 kB / 0.5214 GB, free: 27.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3685, allocations: 4 kB / 0.5214 GB, free: 27.15 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005303/0.3691, allocations: 84.97 kB / 0.5215 GB, free: 27.14 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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 8.601e-05/0.3692, allocations: 101.7 kB / 0.5216 GB, free: 27.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005599/0.3697, allocations: 271.1 kB / 0.5219 GB, free: 26.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3697, allocations: 0 / 0.5219 GB, free: 26.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002419/0.37, allocations: 128.3 kB / 0.522 GB, free: 26.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006629/0.3706, allocations: 40.95 kB / 0.522 GB, free: 26.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001297/0.372, allocations: 1.21 MB / 0.5232 GB, free: 25.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001997/0.3722, allocations: 0.7775 MB / 0.524 GB, free: 25.28 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001529/0.3723, allocations: 35.16 kB / 0.524 GB, free: 25.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.258e-05/0.3724, allocations: 26.31 kB / 0.524 GB, free: 25.26 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3724, allocations: 4 kB / 0.524 GB, free: 25.25 MB / 378.7 MB Notification: Performance of Templates: time 0.005058/0.3775, allocations: 2.389 MB / 0.5264 GB, free: 25.09 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches