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.0009442/0.000944, allocations: 175.2 kB / 16.72 MB, free: 5.082 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.296/1.296, allocations: 205.4 MB / 222.9 MB, free: 9.035 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.000703/0.0007033, allocations: 89.05 kB / 271.2 MB, free: 8.262 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.3073/0.3073, allocations: 43.56 MB / 363.1 MB, free: 51.87 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003636/0.0003637, allocations: 12 kB / 432 MB, free: 5.617 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1225, allocations: 58.86 MB / 490.8 MB, free: 10.67 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003318/0.1259, allocations: 2.285 MB / 493.1 MB, free: 8.371 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00166/0.1276, allocations: 0.9284 MB / 494 MB, free: 7.434 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001423/0.1277, allocations: 15.94 kB / 494 MB, free: 7.418 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001425/0.1279, allocations: 35.7 kB / 494.1 MB, free: 7.383 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002123/0.1281, allocations: 87.3 kB / 494.2 MB, free: 7.297 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004227/0.1285, allocations: 111.7 kB / 494.3 MB, free: 7.188 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004357/0.129, allocations: 350.2 kB / 494.6 MB, free: 6.844 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001942/0.1292, allocations: 81.62 kB / 494.7 MB, free: 6.77 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001456/0.1294, allocations: 119.5 kB / 494.8 MB, free: 6.652 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002151/0.1296, allocations: 131.4 kB / 494.9 MB, free: 6.523 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.782e-05/0.1296, allocations: 12 kB / 495 MB, free: 6.512 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001216/0.1298, allocations: 31.98 kB / 495 MB, free: 6.48 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.177e-05/0.1298, allocations: 43.84 kB / 495 MB, free: 6.438 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001832/0.13, allocations: 173 kB / 495.2 MB, free: 6.262 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003323/0.1304, allocations: 263.5 kB / 495.5 MB, free: 6.004 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1304, allocations: 4 kB / 495.5 MB, free: 6 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.532e-06/0.1304, allocations: 0 / 495.5 MB, free: 6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.1304, allocations: 0 / 495.5 MB, free: 6 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.0009449/0.1314, allocations: 0.542 MB / 496 MB, free: 5.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.1314, allocations: 8.031 kB / 496 MB, free: 5.402 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002584/0.1317, allocations: 56.45 kB / 496.1 MB, free: 5.348 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003467/0.132, allocations: 263.8 kB / 496.3 MB, free: 5.051 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.176e-05/0.1321, allocations: 21.03 kB / 496.3 MB, free: 5.031 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.94e-05/0.1322, allocations: 40.27 kB / 496.4 MB, free: 4.992 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005956/0.1328, allocations: 302.6 kB / 496.7 MB, free: 4.676 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.01e-05/0.1328, allocations: 11.91 kB / 496.7 MB, free: 4.664 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.543e-05/0.1329, allocations: 12 kB / 496.7 MB, free: 4.652 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.1329, allocations: 8 kB / 496.7 MB, free: 4.645 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004206/0.1333, allocations: 171.8 kB / 496.9 MB, free: 4.477 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002105/0.1354, allocations: 1.336 MB / 498.2 MB, free: 3.039 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003535/0.1358, allocations: 249 kB / 498.5 MB, free: 2.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.741e-05/0.1359, allocations: 80.27 kB / 498.5 MB, free: 2.656 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.738e-05/0.1359, allocations: 0 / 498.5 MB, free: 2.656 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.993e-05/0.136, allocations: 42.48 kB / 498.6 MB, free: 2.605 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 1.312e-06/0.136, allocations: 4 kB / 498.6 MB, free: 2.602 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004245/0.1364, allocations: 217.4 kB / 498.8 MB, free: 2.383 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.056e-05/0.1365, allocations: 158.2 kB / 498.9 MB, free: 2.191 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001687/0.1366, allocations: 212.1 kB / 499.2 MB, free: 1.969 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.1367, allocations: 29.7 kB / 499.2 MB, free: 1.934 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.203e-05/0.1368, allocations: 188 kB / 499.4 MB, free: 1.746 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.034e-05/0.1368, allocations: 86.75 kB / 499.4 MB, free: 1.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.252e-05/0.1368, allocations: 12.12 kB / 499.5 MB, free: 1.648 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.98e-05/0.137, allocations: 334.8 kB / 499.8 MB, free: 1.312 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001053/0.1371, allocations: 59.97 kB / 499.8 MB, free: 1.254 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001801/0.1373, allocations: 205.8 kB / 0.4883 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003157/0.1376, allocations: 313.6 kB / 0.4886 GB, free: 0.6172 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.1376, allocations: 4 kB / 0.4886 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004295/0.138, allocations: 312.8 kB / 0.4889 GB, free: 308 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.138, allocations: 8 kB / 0.4889 GB, free: 300 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1381, allocations: 7.984 kB / 0.4889 GB, free: 292 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.1381, allocations: 8.531 kB / 0.489 GB, free: 284 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002725/0.1384, allocations: 91.84 kB / 0.489 GB, free: 192 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.1384, allocations: 4 kB / 0.489 GB, free: 188 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001548/0.1385, allocations: 39.61 kB / 0.4891 GB, free: 148 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.435e-05/0.1386, allocations: 20 kB / 0.4891 GB, free: 128 kB / 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.1696/0.3082, allocations: 148.1 kB / 0.4892 GB, free: 42.36 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001668/0.3084, allocations: 22.66 kB / 0.4893 GB, free: 42.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002533/0.3086, allocations: 88.2 kB / 0.4893 GB, free: 42.33 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.3086, allocations: 4.562 kB / 0.4894 GB, free: 42.33 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.3087, allocations: 1.406 kB / 0.4894 GB, free: 42.33 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.321e-06/0.3087, allocations: 2 kB / 0.4894 GB, free: 42.33 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006921/0.3094, allocations: 316.5 kB / 0.4897 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.3094, allocations: 0 / 0.4897 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003273/0.3097, allocations: 69.03 kB / 0.4897 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.103e-06/0.3097, allocations: 3.969 kB / 0.4897 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.15e-05/0.3098, allocations: 3.625 kB / 0.4897 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.3098, allocations: 2.875 kB / 0.4897 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3098, allocations: 5.781 kB / 0.4897 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004714/0.3103, allocations: 0.6259 MB / 0.4904 GB, free: 41.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.732e-05/0.3103, allocations: 103 kB / 0.4904 GB, free: 41.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.776e-05/0.3104, allocations: 8.094 kB / 0.4905 GB, free: 41.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002444/0.3106, allocations: 7.578 kB / 0.4905 GB, free: 41.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.137e-05/0.3107, allocations: 24.16 kB / 0.4905 GB, free: 41.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.3107, allocations: 8.125 kB / 0.4905 GB, free: 41.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001301/0.3108, allocations: 145.3 kB / 0.4906 GB, free: 41.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.3109, allocations: 4.906 kB / 0.4906 GB, free: 41.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005703/0.3114, allocations: 82.16 kB / 0.4907 GB, free: 41.54 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 9.712e-05/0.3115, allocations: 103.1 kB / 0.4908 GB, free: 41.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00036/0.3119, allocations: 190.5 kB / 0.491 GB, free: 41.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3119, allocations: 0 / 0.491 GB, free: 41.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.312, allocations: 70.94 kB / 0.4911 GB, free: 41.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008036/0.3129, allocations: 58.7 kB / 0.4911 GB, free: 41.44 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001661/0.3145, allocations: 1.416 MB / 0.4925 GB, free: 40.53 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00027/0.3148, allocations: 0.7697 MB / 0.4933 GB, free: 39.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.951e-05/0.3149, allocations: 24.34 kB / 0.4933 GB, free: 39.82 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.3149, allocations: 0 / 0.4933 GB, free: 39.82 MB / 378.7 MB Notification: Performance of Templates: time 0.006542/0.3215, allocations: 3.311 MB / 0.4965 GB, free: 39.56 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