Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001489/0.001489, allocations: 183 kB / 16.63 MB, free: 5.137 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.415/1.415, allocations: 205.1 MB / 222.5 MB, free: 8.473 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.001182/0.001182, allocations: 103.9 kB / 269.9 MB, free: 8.426 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.3744/0.3744, allocations: 43.49 MB / 360.7 MB, free: 51.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 56.11 kB / 429.2 MB, free: 6.398 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.13, allocations: 57.76 MB / 487 MB, free: 12.57 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004557/0.1345, allocations: 2.747 MB / 489.7 MB, free: 9.801 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001998/0.1366, allocations: 0.9824 MB / 490.7 MB, free: 8.809 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003619/0.137, allocations: 8 kB / 490.7 MB, free: 8.801 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002609/0.1372, allocations: 39.64 kB / 490.8 MB, free: 8.762 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003681/0.1377, allocations: 91.28 kB / 490.9 MB, free: 8.672 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005587/0.1382, allocations: 119.7 kB / 491 MB, free: 8.555 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005322/0.1388, allocations: 370.2 kB / 491.3 MB, free: 8.191 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002012/0.139, allocations: 69.69 kB / 491.4 MB, free: 8.125 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001985/0.1392, allocations: 135.4 kB / 491.5 MB, free: 7.992 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002344/0.1394, allocations: 139.3 kB / 491.7 MB, free: 7.855 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.025e-05/0.1395, allocations: 16 kB / 491.7 MB, free: 7.84 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001373/0.1396, allocations: 35.98 kB / 491.7 MB, free: 7.805 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.072e-05/0.1397, allocations: 51.78 kB / 491.8 MB, free: 7.754 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000162/0.1399, allocations: 155.2 kB / 491.9 MB, free: 7.602 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003721/0.1402, allocations: 347 kB / 492.3 MB, free: 7.262 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1403, allocations: 0 / 492.3 MB, free: 7.262 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.1403, allocations: 0 / 492.3 MB, free: 7.262 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.1403, allocations: 0 / 492.3 MB, free: 7.262 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.0009362/0.1412, allocations: 0.6043 MB / 492.9 MB, free: 6.609 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.1413, allocations: 8.031 kB / 492.9 MB, free: 6.602 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002161/0.1415, allocations: 52.55 kB / 492.9 MB, free: 6.551 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003129/0.1418, allocations: 267.6 kB / 493.2 MB, free: 6.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.1419, allocations: 25.03 kB / 493.2 MB, free: 6.227 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.663e-05/0.1419, allocations: 28.38 kB / 493.2 MB, free: 6.199 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000441/0.1424, allocations: 306.6 kB / 493.5 MB, free: 5.879 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.934e-05/0.1424, allocations: 7.906 kB / 493.6 MB, free: 5.871 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.1424, allocations: 16 kB / 493.6 MB, free: 5.855 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.1425, allocations: 8 kB / 493.6 MB, free: 5.848 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003044/0.1428, allocations: 179.8 kB / 493.8 MB, free: 5.672 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00185/0.1446, allocations: 1.336 MB / 495.1 MB, free: 4.234 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003868/0.145, allocations: 245 kB / 495.3 MB, free: 3.949 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.1451, allocations: 84.19 kB / 495.4 MB, free: 3.852 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.1452, allocations: 4 kB / 495.4 MB, free: 3.848 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.1452, allocations: 38.56 kB / 495.5 MB, free: 3.801 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 1.754e-06/0.1452, allocations: 0 / 495.5 MB, free: 3.801 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.000478/0.1457, allocations: 213.3 kB / 495.7 MB, free: 3.586 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.437e-05/0.1458, allocations: 166.1 kB / 495.8 MB, free: 3.387 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002204/0.146, allocations: 216.1 kB / 496 MB, free: 3.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.146, allocations: 29.7 kB / 496.1 MB, free: 3.125 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000131/0.1462, allocations: 184.2 kB / 496.2 MB, free: 2.941 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.225e-05/0.1463, allocations: 98.64 kB / 496.3 MB, free: 2.844 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.85e-05/0.1464, allocations: 57.7 kB / 496.4 MB, free: 2.781 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.1465, allocations: 338.9 kB / 496.7 MB, free: 2.441 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.1467, allocations: 63.97 kB / 496.8 MB, free: 2.379 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001979/0.1469, allocations: 205.9 kB / 497 MB, free: 2.113 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003528/0.1472, allocations: 305.6 kB / 497.3 MB, free: 1.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1472, allocations: 0 / 497.3 MB, free: 1.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004479/0.1477, allocations: 320.8 kB / 497.6 MB, free: 1.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.1477, allocations: 4 kB / 497.6 MB, free: 1.426 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.1477, allocations: 4 kB / 497.6 MB, free: 1.422 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.1477, allocations: 8.531 kB / 497.6 MB, free: 1.414 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002665/0.148, allocations: 87.89 kB / 497.7 MB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.575e-05/0.1481, allocations: 15.94 kB / 497.7 MB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000216/0.1483, allocations: 35.59 kB / 497.8 MB, free: 1.277 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.778e-05/0.1483, allocations: 16 kB / 497.8 MB, free: 1.262 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.0001618/0.1485, allocations: 157.6 kB / 497.9 MB, free: 1.098 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/0.1486, allocations: 23.81 kB / 497.9 MB, free: 1.074 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001873/0.1488, allocations: 83.08 kB / 498 MB, free: 0.9805 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.1488, allocations: 4.562 kB / 498 MB, free: 0.9766 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.1488, allocations: 4 kB / 498 MB, free: 0.9727 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.1488, allocations: 4 kB / 498 MB, free: 0.9688 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006231/0.1495, allocations: 321.3 kB / 498.4 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.1495, allocations: 0 / 498.4 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003116/0.1498, allocations: 63.91 kB / 498.4 MB, free: 0.543 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.431e-05/0.1498, allocations: 4 kB / 498.4 MB, free: 0.5391 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.572e-05/0.1499, allocations: 8.25 kB / 498.4 MB, free: 0.5312 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.1499, allocations: 0 / 498.4 MB, free: 0.5312 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.1499, allocations: 8 kB / 498.4 MB, free: 0.5234 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004303/0.1542, allocations: 2.636 MB / 0.4893 GB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.492e-05/0.1543, allocations: 100.8 kB / 0.4894 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.167e-05/0.1543, allocations: 11.98 kB / 0.4894 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/0.1546, allocations: 4 kB / 0.4894 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.452e-05/0.1546, allocations: 23.95 kB / 0.4895 GB, free: 13.58 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.1546, allocations: 15.94 kB / 0.4895 GB, free: 13.57 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001283/0.1548, allocations: 149.8 kB / 0.4896 GB, free: 13.42 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1548, allocations: 0 / 0.4896 GB, free: 13.42 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006763/0.1555, allocations: 111.8 kB / 0.4897 GB, free: 13.31 MB / 394.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.0001374/0.1556, allocations: 103.2 kB / 0.4898 GB, free: 13.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003653/0.156, allocations: 187.8 kB / 0.49 GB, free: 13.02 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.156, allocations: 4 kB / 0.49 GB, free: 13.02 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.1561, allocations: 72.16 kB / 0.4901 GB, free: 12.95 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008593/0.157, allocations: 57.42 kB / 0.4901 GB, free: 12.89 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001923/0.1589, allocations: 1.431 MB / 0.4915 GB, free: 11.41 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.1593, allocations: 0.7801 MB / 0.4923 GB, free: 10.6 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001651/0.1594, allocations: 38.97 kB / 0.4923 GB, free: 10.57 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.021e-05/0.1595, allocations: 23.44 kB / 0.4924 GB, free: 10.54 MB / 394.7 MB Notification: Performance of SimCode: time 1.453e-06/0.1595, allocations: 0 / 0.4924 GB, free: 10.54 MB / 394.7 MB Notification: Performance of Templates: time 0.006355/0.1659, allocations: 3.198 MB / 0.4955 GB, free: 7.359 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBraking/TestBraking.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches