Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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",fileNamePrefix="ModelicaTest_3.2.3_cpp_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",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001245/0.001245, allocations: 177.1 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.434/1.434, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008271/0.000827, allocations: 92.92 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3826/0.3826, allocations: 43.56 MB / 362.7 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003859/0.0003859, allocations: 12 kB / 431.4 MB, free: 6.148 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.1492, allocations: 58.84 MB / 490.2 MB, free: 11.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003021/0.1523, allocations: 2.281 MB / 492.5 MB, free: 8.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001644/0.154, allocations: 0.944 MB / 493.5 MB, free: 7.977 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.1541, allocations: 11.94 kB / 493.5 MB, free: 7.965 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001456/0.1543, allocations: 31.7 kB / 493.5 MB, free: 7.934 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001685/0.1545, allocations: 91.28 kB / 493.6 MB, free: 7.844 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000407/0.1549, allocations: 119.7 kB / 493.7 MB, free: 7.727 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003801/0.1553, allocations: 346.2 kB / 494 MB, free: 7.387 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/0.1555, allocations: 73.58 kB / 494.1 MB, free: 7.316 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000124/0.1556, allocations: 107.6 kB / 494.2 MB, free: 7.211 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001973/0.1558, allocations: 135.4 kB / 494.3 MB, free: 7.078 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.171e-05/0.1559, allocations: 12 kB / 494.4 MB, free: 7.066 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.156, allocations: 31.98 kB / 494.4 MB, free: 7.035 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.733e-05/0.156, allocations: 55.77 kB / 494.4 MB, free: 6.98 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 8.085e-05/0.1561, allocations: 81.58 kB / 494.5 MB, free: 6.895 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002997/0.1564, allocations: 259.5 kB / 494.8 MB, free: 6.641 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1564, allocations: 0 / 494.8 MB, free: 6.641 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1565, allocations: 0 / 494.8 MB, free: 6.641 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.1565, allocations: 0 / 494.8 MB, free: 6.641 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.0009509/0.1574, allocations: 0.5496 MB / 495.3 MB, free: 6.043 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.1575, allocations: 8.031 kB / 495.3 MB, free: 6.035 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002442/0.1577, allocations: 51.52 kB / 495.4 MB, free: 5.984 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003183/0.1581, allocations: 258.6 kB / 495.6 MB, free: 5.691 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.1581, allocations: 20.66 kB / 495.7 MB, free: 5.672 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.415e-05/0.1582, allocations: 43.83 kB / 495.7 MB, free: 5.629 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004901/0.1587, allocations: 294.7 kB / 496 MB, free: 5.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.324e-05/0.1587, allocations: 8 kB / 496 MB, free: 5.312 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.922e-05/0.1587, allocations: 11.95 kB / 496 MB, free: 5.301 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.1588, allocations: 8 kB / 496 MB, free: 5.293 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003071/0.1591, allocations: 172.4 kB / 496.2 MB, free: 5.125 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001986/0.1611, allocations: 1.349 MB / 497.5 MB, free: 3.676 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00041/0.1615, allocations: 245 kB / 497.8 MB, free: 3.391 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.1616, allocations: 84.25 kB / 497.9 MB, free: 3.293 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.1617, allocations: 4 kB / 497.9 MB, free: 3.289 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/0.1617, allocations: 38.56 kB / 497.9 MB, free: 3.242 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 2.054e-06/0.1617, allocations: 0 / 497.9 MB, free: 3.242 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005024/0.1622, allocations: 225.8 kB / 498.1 MB, free: 3.016 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.833e-05/0.1623, allocations: 162.2 kB / 498.3 MB, free: 2.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002199/0.1625, allocations: 204.2 kB / 498.5 MB, free: 2.605 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.1626, allocations: 25.7 kB / 498.5 MB, free: 2.574 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.1627, allocations: 200 kB / 498.7 MB, free: 2.375 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.323e-05/0.1628, allocations: 90.75 kB / 498.8 MB, free: 2.285 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.211e-05/0.1628, allocations: 4 kB / 498.8 MB, free: 2.281 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.163, allocations: 338.8 kB / 499.1 MB, free: 1.941 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.1631, allocations: 59.97 kB / 499.2 MB, free: 1.883 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002256/0.1633, allocations: 202.5 kB / 499.4 MB, free: 1.621 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001713/0.1635, allocations: 99.94 kB / 499.5 MB, free: 1.523 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1635, allocations: 0 / 499.5 MB, free: 1.523 MB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000469/0.164, allocations: 317.3 kB / 499.8 MB, free: 1.207 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.164, allocations: 4 kB / 499.8 MB, free: 1.203 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.164, allocations: 12.03 kB / 499.8 MB, free: 1.191 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.164, allocations: 4 kB / 499.8 MB, free: 1.188 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003057/0.1643, allocations: 87.84 kB / 499.9 MB, free: 1.102 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.521e-05/0.1644, allocations: 15.86 kB / 499.9 MB, free: 1.086 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/0.1646, allocations: 39.69 kB / 499.9 MB, free: 1.047 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.636e-05/0.1646, allocations: 23.94 kB / 500 MB, free: 1.023 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001443/0.1647, allocations: 141.7 kB / 0.4884 GB, free: 0.875 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.1649, allocations: 23.77 kB / 0.4884 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001952/0.1651, allocations: 95.02 kB / 0.4885 GB, free: 0.7461 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.1651, allocations: 7.984 kB / 0.4885 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.1651, allocations: 4.25 kB / 0.4885 GB, free: 0.7344 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1651, allocations: 0 / 0.4885 GB, free: 0.7344 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005726/0.1657, allocations: 317.3 kB / 0.4888 GB, free: 384 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1657, allocations: 0 / 0.4888 GB, free: 384 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003163/0.166, allocations: 59.97 kB / 0.4889 GB, free: 324 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.199e-05/0.166, allocations: 11.94 kB / 0.4889 GB, free: 312 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.495e-05/0.1661, allocations: 8 kB / 0.4889 GB, free: 304 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.1661, allocations: 3.938 kB / 0.4889 GB, free: 300 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.1661, allocations: 8 kB / 0.4889 GB, free: 292 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2649/0.431, allocations: 0.6118 MB / 0.4895 GB, free: 42.31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.465e-05/0.4311, allocations: 102.1 kB / 0.4896 GB, free: 42.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.421e-05/0.4312, allocations: 9.422 kB / 0.4896 GB, free: 42.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003697/0.4315, allocations: 15.23 kB / 0.4896 GB, free: 42.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.963e-05/0.4316, allocations: 19.48 kB / 0.4896 GB, free: 42.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/0.4316, allocations: 6.203 kB / 0.4896 GB, free: 42.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001388/0.4318, allocations: 149 kB / 0.4898 GB, free: 42.14 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4318, allocations: 0 / 0.4898 GB, free: 42.14 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006209/0.4324, allocations: 77.34 kB / 0.4899 GB, free: 42.14 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001069/0.4325, allocations: 103.3 kB / 0.49 GB, free: 42.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003947/0.4329, allocations: 191.5 kB / 0.4901 GB, free: 42.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.4329, allocations: 0 / 0.4901 GB, free: 42.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001374/0.4331, allocations: 71.52 kB / 0.4902 GB, free: 42.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008153/0.4339, allocations: 59.69 kB / 0.4903 GB, free: 42.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002061/0.4359, allocations: 1.408 MB / 0.4916 GB, free: 41.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.4363, allocations: 0.7696 MB / 0.4924 GB, free: 40.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.684e-05/0.4364, allocations: 28.55 kB / 0.4924 GB, free: 40.46 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4364, allocations: 0 / 0.4924 GB, free: 40.46 MB / 378.7 MB Notification: Performance of Templates: time 0.006962/0.4434, allocations: 3.313 MB / 0.4957 GB, free: 40.2 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBraking/TestBraking.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches