Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009144/0.0009145, allocations: 175 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 225.7 MB / 243.9 MB, free: 8.449 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007945/0.0007945, allocations: 93.88 kB / 295 MB, free: 9.488 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3354/0.3354, allocations: 44.33 MB / 390.5 MB, free: 38.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003153/0.0003153, allocations: 8 kB / 463.1 MB, free: 484 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4123/0.4127, allocations: 61.91 MB / 0.5127 GB, free: 37.86 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.00226/0.415, allocations: 2.289 MB / 0.515 GB, free: 36.23 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001276/0.4163, allocations: 1.046 MB / 0.516 GB, free: 35.4 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001433/0.4164, allocations: 14.69 kB / 0.516 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001339/0.4166, allocations: 35.3 kB / 0.516 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001566/0.4168, allocations: 93.38 kB / 0.5161 GB, free: 35.31 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005275/0.4173, allocations: 118.4 kB / 0.5162 GB, free: 35.24 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003573/0.4177, allocations: 359.3 kB / 0.5166 GB, free: 35.06 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002107/0.4179, allocations: 76.66 kB / 0.5167 GB, free: 35.02 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001258/0.418, allocations: 117.2 kB / 0.5168 GB, free: 34.97 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001974/0.4182, allocations: 133.5 kB / 0.5169 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.331e-05/0.4183, allocations: 12.78 kB / 0.5169 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.4184, allocations: 32.72 kB / 0.5169 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.751e-05/0.4184, allocations: 53.66 kB / 0.517 GB, free: 34.87 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001602/0.4186, allocations: 171.7 kB / 0.5172 GB, free: 34.76 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000397/0.419, allocations: 339 kB / 0.5175 GB, free: 34.65 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.419, allocations: 4 kB / 0.5175 GB, free: 34.65 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.419, allocations: 1.062 kB / 0.5175 GB, free: 34.65 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.419, allocations: 3.938 kB / 0.5175 GB, free: 34.64 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0008194/0.4199, allocations: 0.5392 MB / 0.518 GB, free: 34.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.4199, allocations: 13.27 kB / 0.518 GB, free: 34.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002247/0.4202, allocations: 50.42 kB / 0.5181 GB, free: 34.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002823/0.4205, allocations: 264 kB / 0.5183 GB, free: 33.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.614e-05/0.4205, allocations: 28.78 kB / 0.5184 GB, free: 33.9 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.274e-05/0.4205, allocations: 30.03 kB / 0.5184 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005186/0.4211, allocations: 302.8 kB / 0.5187 GB, free: 33.72 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.398e-05/0.4211, allocations: 15.58 kB / 0.5187 GB, free: 33.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.443e-05/0.4211, allocations: 10.69 kB / 0.5187 GB, free: 33.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.417e-06/0.4212, allocations: 9.109 kB / 0.5187 GB, free: 33.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003085/0.4215, allocations: 167.5 kB / 0.5189 GB, free: 33.65 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001664/0.4231, allocations: 1.352 MB / 0.5202 GB, free: 32.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003955/0.4235, allocations: 247.2 kB / 0.5204 GB, free: 32.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.45e-05/0.4237, allocations: 85.72 kB / 0.5205 GB, free: 32.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.048e-05/0.4237, allocations: 2.906 kB / 0.5205 GB, free: 32.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.265e-05/0.4237, allocations: 33.41 kB / 0.5205 GB, free: 32.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 1.813e-06/0.4237, allocations: 4 kB / 0.5205 GB, free: 32.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004587/0.4242, allocations: 216.3 kB / 0.5207 GB, free: 32.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.386e-05/0.4242, allocations: 157.2 kB / 0.5209 GB, free: 32.01 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001648/0.4244, allocations: 211 kB / 0.5211 GB, free: 31.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.4244, allocations: 25.7 kB / 0.5211 GB, free: 31.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.535e-05/0.4245, allocations: 192.3 kB / 0.5213 GB, free: 31.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.077e-05/0.4246, allocations: 95.72 kB / 0.5214 GB, free: 31.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.082e-05/0.4246, allocations: 11.12 kB / 0.5214 GB, free: 31.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.223e-05/0.4247, allocations: 335.3 kB / 0.5217 GB, free: 31.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.547e-05/0.4248, allocations: 65.33 kB / 0.5218 GB, free: 31.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001421/0.4249, allocations: 199.2 kB / 0.522 GB, free: 31.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002761/0.4252, allocations: 301.1 kB / 0.5223 GB, free: 30.78 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.4252, allocations: 0 / 0.5223 GB, free: 30.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003691/0.4256, allocations: 314.4 kB / 0.5226 GB, free: 30.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.4256, allocations: 8.938 kB / 0.5226 GB, free: 30.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.4256, allocations: 6.906 kB / 0.5226 GB, free: 30.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.305e-05/0.4256, allocations: 9.438 kB / 0.5226 GB, free: 30.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002672/0.4259, allocations: 92.23 kB / 0.5227 GB, free: 30.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.4259, allocations: 6.469 kB / 0.5227 GB, free: 30.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001624/0.4261, allocations: 32.25 kB / 0.5227 GB, free: 30.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/0.4261, allocations: 24.52 kB / 0.5227 GB, free: 30.59 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (44): * Single equations (assignments): 44 * 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.0001126/0.4262, allocations: 151.6 kB / 0.5229 GB, free: 30.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.615e-05/0.4263, allocations: 26.84 kB / 0.5229 GB, free: 30.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001463/0.4265, allocations: 85.16 kB / 0.523 GB, free: 30.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.4265, allocations: 2.875 kB / 0.523 GB, free: 30.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.4265, allocations: 4 kB / 0.523 GB, free: 30.37 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.4265, allocations: 2.844 kB / 0.523 GB, free: 30.37 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004731/0.427, allocations: 317.8 kB / 0.5233 GB, free: 30.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.427, allocations: 7.047 kB / 0.5233 GB, free: 30.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003002/0.4273, allocations: 70.72 kB / 0.5234 GB, free: 30.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.4273, allocations: 0 / 0.5234 GB, free: 30.11 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.4274, allocations: 9.75 kB / 0.5234 GB, free: 30.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.4274, allocations: 3.938 kB / 0.5234 GB, free: 30.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.4274, allocations: 3.938 kB / 0.5234 GB, free: 30.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000384/0.4278, allocations: 0.631 MB / 0.524 GB, free: 29.58 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.151e-05/0.4278, allocations: 95.42 kB / 0.5241 GB, free: 29.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.352e-05/0.4279, allocations: 9.156 kB / 0.5241 GB, free: 29.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002344/0.4281, allocations: 6.438 kB / 0.5241 GB, free: 29.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.921e-05/0.4281, allocations: 20.08 kB / 0.5241 GB, free: 29.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.4282, allocations: 9.688 kB / 0.5241 GB, free: 29.46 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.632e-05/0.4282, allocations: 148.3 kB / 0.5243 GB, free: 29.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4282, allocations: 3.938 kB / 0.5243 GB, free: 29.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004826/0.4287, allocations: 90.47 kB / 0.5244 GB, free: 29.33 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * 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 (23): * Single equations (assignments): 23 * 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.0001082/0.4288, allocations: 108 kB / 0.5245 GB, free: 29.24 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003122/0.4292, allocations: 190.8 kB / 0.5247 GB, free: 29.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4292, allocations: 0 / 0.5247 GB, free: 29.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.11e-05/0.4293, allocations: 74.42 kB / 0.5247 GB, free: 29.15 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007904/0.4301, allocations: 57.48 kB / 0.5248 GB, free: 29.13 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/0.4316, allocations: 1.408 MB / 0.5262 GB, free: 28.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002009/0.4318, allocations: 0.7722 MB / 0.5269 GB, free: 27.39 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001339/0.4319, allocations: 39.66 kB / 0.527 GB, free: 27.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.938e-05/0.432, allocations: 21.62 kB / 0.527 GB, free: 27.38 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.432, allocations: 0 / 0.527 GB, free: 27.38 MB / 378.7 MB Notification: Performance of Templates: time 0.004857/0.4369, allocations: 2.359 MB / 0.5293 GB, free: 27.19 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches