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.002359/0.002358, allocations: 188.8 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.224/2.224, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001132/0.001132, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2901/0.2901, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004797/0.0004797, allocations: 12 kB / 431.4 MB, free: 20.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1226, allocations: 58.85 MB / 490.2 MB, free: 9.363 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.00392/0.1266, allocations: 2.138 MB / 492.3 MB, free: 7.211 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002478/0.1291, allocations: 0.9481 MB / 493.3 MB, free: 6.254 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002838/0.1294, allocations: 11.94 kB / 493.3 MB, free: 6.242 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 8.967e-05/0.1295, allocations: 27.77 kB / 493.3 MB, free: 6.215 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004142/0.13, allocations: 123.6 kB / 493.5 MB, free: 6.094 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006713/0.1307, allocations: 115.7 kB / 493.6 MB, free: 5.98 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006082/0.1313, allocations: 263.4 kB / 493.8 MB, free: 5.723 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002382/0.1316, allocations: 65.7 kB / 493.9 MB, free: 5.656 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002077/0.1318, allocations: 111.6 kB / 494 MB, free: 5.547 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002595/0.1321, allocations: 131.4 kB / 494.1 MB, free: 5.418 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.614e-05/0.1321, allocations: 16 kB / 494.1 MB, free: 5.402 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001751/0.1323, allocations: 39.97 kB / 494.2 MB, free: 5.363 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.217e-05/0.1324, allocations: 43.84 kB / 494.2 MB, free: 5.32 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.1325, allocations: 81.52 kB / 494.3 MB, free: 5.234 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004558/0.133, allocations: 259.5 kB / 494.6 MB, free: 4.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.133, allocations: 0 / 494.6 MB, free: 4.98 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.133, allocations: 0 / 494.6 MB, free: 4.98 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.133, allocations: 0 / 494.6 MB, free: 4.98 MB / 330.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.001244/0.1343, allocations: 0.5535 MB / 495.1 MB, free: 4.375 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.1343, allocations: 8.031 kB / 495.1 MB, free: 4.367 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003019/0.1347, allocations: 51.56 kB / 495.2 MB, free: 4.316 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004469/0.1351, allocations: 254.6 kB / 495.4 MB, free: 4.027 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.586e-05/0.1352, allocations: 20.66 kB / 495.4 MB, free: 4.008 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.381e-05/0.1353, allocations: 35.91 kB / 495.5 MB, free: 3.973 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007811/0.1361, allocations: 294.7 kB / 495.8 MB, free: 3.664 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.394e-05/0.1361, allocations: 19.83 kB / 495.8 MB, free: 3.645 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.93e-05/0.1362, allocations: 8 kB / 495.8 MB, free: 3.637 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.1362, allocations: 11.94 kB / 495.8 MB, free: 3.625 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005334/0.1368, allocations: 184.3 kB / 496 MB, free: 3.445 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002977/0.1398, allocations: 1.333 MB / 497.3 MB, free: 2.008 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006406/0.1405, allocations: 249.3 kB / 497.6 MB, free: 1.719 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.008e-05/0.1405, allocations: 8.109 kB / 497.6 MB, free: 1.711 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/0.1406, allocations: 50.52 kB / 497.6 MB, free: 1.652 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 3.056e-06/0.1406, allocations: 0 / 497.6 MB, free: 1.652 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.000717/0.1413, allocations: 209.2 kB / 497.8 MB, free: 1.441 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.1414, allocations: 158.2 kB / 498 MB, free: 1.25 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003294/0.1418, allocations: 212.1 kB / 498.2 MB, free: 1.031 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.861e-05/0.1418, allocations: 37.64 kB / 498.2 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001914/0.142, allocations: 246.6 kB / 498.5 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.1421, allocations: 90.73 kB / 498.5 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.844e-05/0.1422, allocations: 8 kB / 498.6 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.1423, allocations: 330.8 kB / 498.9 MB, free: 324 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.1426, allocations: 59.97 kB / 498.9 MB, free: 264 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003464/0.1429, allocations: 202.6 kB / 499.1 MB, free: 15.99 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002817/0.1432, allocations: 95.94 kB / 499.2 MB, free: 15.9 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.1432, allocations: 4 kB / 499.2 MB, free: 15.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007946/0.144, allocations: 304.9 kB / 499.5 MB, free: 15.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.205e-05/0.1441, allocations: 15.14 kB / 499.5 MB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.1441, allocations: 4 kB / 499.5 MB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.6e-05/0.1441, allocations: 12 kB / 499.6 MB, free: 15.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005524/0.1447, allocations: 87.84 kB / 499.6 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.825e-05/0.1447, allocations: 11.98 kB / 499.7 MB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003016/0.145, allocations: 31.69 kB / 499.7 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.596e-05/0.1451, allocations: 19.94 kB / 499.7 MB, free: 15.41 MB / 346.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.0002153/0.1453, allocations: 149.7 kB / 499.9 MB, free: 15.26 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001551/0.1455, allocations: 27.72 kB / 499.9 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002438/0.1457, allocations: 91.03 kB / 500 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-05/0.1458, allocations: 4.344 kB / 500 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.1458, allocations: 3.938 kB / 500 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.232e-05/0.1458, allocations: 11.98 kB / 500 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008338/0.1466, allocations: 305.3 kB / 0.4886 GB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.1467, allocations: 4 kB / 0.4886 GB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006824/0.1474, allocations: 63.91 kB / 0.4886 GB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.1474, allocations: 0 / 0.4886 GB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.138e-05/0.1474, allocations: 11.98 kB / 0.4886 GB, free: 14.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.416e-06/0.1474, allocations: 7.953 kB / 0.4886 GB, free: 14.69 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.1475, allocations: 4 kB / 0.4886 GB, free: 14.68 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008208/0.1483, allocations: 0.683 MB / 0.4893 GB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.578e-05/0.1484, allocations: 96.83 kB / 0.4894 GB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.548e-05/0.1485, allocations: 8.562 kB / 0.4894 GB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003718/0.1489, allocations: 7.938 kB / 0.4894 GB, free: 13.83 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.587e-05/0.1489, allocations: 19.97 kB / 0.4894 GB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.221e-05/0.149, allocations: 7.953 kB / 0.4894 GB, free: 13.8 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001842/0.1491, allocations: 149.6 kB / 0.4896 GB, free: 13.66 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1492, allocations: 0 / 0.4896 GB, free: 13.66 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007677/0.1499, allocations: 83.84 kB / 0.4897 GB, free: 13.57 MB / 346.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.0001468/0.1501, allocations: 99.19 kB / 0.4898 GB, free: 13.47 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005173/0.1506, allocations: 184.6 kB / 0.4899 GB, free: 13.29 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.1506, allocations: 0 / 0.4899 GB, free: 13.29 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001783/0.1508, allocations: 83.94 kB / 0.49 GB, free: 13.21 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008379/0.1517, allocations: 56.28 kB / 0.4901 GB, free: 13.15 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00297/0.1547, allocations: 1.407 MB / 0.4915 GB, free: 11.7 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004814/0.1552, allocations: 0.7797 MB / 0.4922 GB, free: 10.89 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001571/0.1554, allocations: 23.44 kB / 0.4922 GB, free: 10.87 MB / 346.7 MB Notification: Performance of SimCode: time 1.513e-06/0.1554, allocations: 0 / 0.4922 GB, free: 10.87 MB / 346.7 MB Notification: Performance of Templates: time 0.008489/0.1639, allocations: 3.256 MB / 0.4954 GB, free: 7.617 MB / 346.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/jenkins1/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