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.001291/0.001291, allocations: 185.2 kB / 15.76 MB, free: 6.367 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.664/1.664, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001028/0.001028, allocations: 90.88 kB / 270.2 MB, free: 13.36 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.2295/0.2295, allocations: 43.55 MB / 362 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000472/0.0004721, allocations: 8 kB / 431.4 MB, free: 19.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1463/0.1468, allocations: 58.87 MB / 490.2 MB, free: 8.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4873/0.6341, allocations: 89.6 MB / 0.5663 GB, free: 10.19 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003394/0.6345, allocations: 71.12 kB / 0.5663 GB, free: 10.15 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03079/0.6654, allocations: 6.109 MB / 0.5723 GB, free: 5.043 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.085e-06/0.6654, allocations: 0 / 0.5723 GB, free: 5.043 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.886e-05/0.6655, allocations: 8 kB / 0.5723 GB, free: 5.035 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.001285/0.6668, allocations: 0.5428 MB / 0.5728 GB, free: 4.465 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/0.6668, allocations: 12.03 kB / 0.5728 GB, free: 4.453 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003456/0.6672, allocations: 47.61 kB / 0.5729 GB, free: 4.406 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00046/0.6677, allocations: 251.7 kB / 0.5731 GB, free: 4.137 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.937e-05/0.6677, allocations: 26.47 kB / 0.5732 GB, free: 4.121 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.954e-05/0.6678, allocations: 35.03 kB / 0.5732 GB, free: 4.098 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008158/0.6687, allocations: 294 kB / 0.5735 GB, free: 3.863 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.836e-05/0.6687, allocations: 11.09 kB / 0.5735 GB, free: 3.855 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.674e-05/0.6688, allocations: 11.38 kB / 0.5735 GB, free: 3.852 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/0.6688, allocations: 8 kB / 0.5735 GB, free: 3.844 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000615/0.6694, allocations: 173.3 kB / 0.5737 GB, free: 3.727 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003156/0.6726, allocations: 1.356 MB / 0.575 GB, free: 2.434 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006665/0.6733, allocations: 239.7 kB / 0.5752 GB, free: 2.199 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.613e-05/0.6734, allocations: 15.97 kB / 0.5752 GB, free: 2.184 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.412e-05/0.6734, allocations: 42 kB / 0.5753 GB, free: 2.137 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 8.346e-06/0.6734, allocations: 0 / 0.5753 GB, free: 2.137 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.000858/0.6743, allocations: 223.2 kB / 0.5755 GB, free: 1.957 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001324/0.6745, allocations: 154.2 kB / 0.5756 GB, free: 1.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003175/0.6748, allocations: 198.3 kB / 0.5758 GB, free: 1.586 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.421e-05/0.6749, allocations: 29.64 kB / 0.5758 GB, free: 1.555 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002073/0.6751, allocations: 187.1 kB / 0.576 GB, free: 1.391 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.6752, allocations: 90.31 kB / 0.5761 GB, free: 1.316 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.762e-05/0.6752, allocations: 3.875 kB / 0.5761 GB, free: 1.316 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002311/0.6755, allocations: 338.2 kB / 0.5764 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002009/0.6757, allocations: 63.09 kB / 0.5765 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003775/0.6761, allocations: 205.5 kB / 0.5767 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002798/0.6764, allocations: 105.9 kB / 0.5768 GB, free: 0.6445 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.6764, allocations: 0 / 0.5768 GB, free: 0.6445 MB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008315/0.6773, allocations: 318 kB / 0.5771 GB, free: 408 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.437e-05/0.6773, allocations: 10.66 kB / 0.5771 GB, free: 400 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/0.6774, allocations: 4 kB / 0.5771 GB, free: 396 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.614e-05/0.6774, allocations: 8 kB / 0.5771 GB, free: 388 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005605/0.678, allocations: 87.64 kB / 0.5772 GB, free: 304 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.711e-05/0.678, allocations: 15.89 kB / 0.5772 GB, free: 288 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003785/0.6784, allocations: 31.56 kB / 0.5772 GB, free: 260 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.06e-05/0.6785, allocations: 15.88 kB / 0.5773 GB, free: 248 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.0002632/0.6788, allocations: 157 kB / 0.5774 GB, free: 100 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001797/0.679, allocations: 23.72 kB / 0.5774 GB, free: 76 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002831/0.6793, allocations: 85.95 kB / 0.5775 GB, free: 8 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.6793, allocations: 4 kB / 0.5775 GB, free: 4 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.6793, allocations: 0 / 0.5775 GB, free: 4 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.6793, allocations: 4.281 kB / 0.5775 GB, free: 0 / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/0.6805, allocations: 319.1 kB / 0.5778 GB, free: 15.69 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.6805, allocations: 3.938 kB / 0.5778 GB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006206/0.6811, allocations: 68.09 kB / 0.5779 GB, free: 15.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.29e-05/0.6812, allocations: 4 kB / 0.5779 GB, free: 15.62 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.668e-05/0.6812, allocations: 15.88 kB / 0.5779 GB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.6812, allocations: 0 / 0.5779 GB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.911e-05/0.6813, allocations: 4 kB / 0.5779 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009854/0.6823, allocations: 0.6763 MB / 0.5786 GB, free: 14.94 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.6824, allocations: 100.8 kB / 0.5787 GB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.679e-05/0.6825, allocations: 11.8 kB / 0.5787 GB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005124/0.683, allocations: 7.875 kB / 0.5787 GB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.943e-05/0.6831, allocations: 11.98 kB / 0.5787 GB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.271e-05/0.6831, allocations: 7.938 kB / 0.5787 GB, free: 14.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002301/0.6834, allocations: 156.8 kB / 0.5789 GB, free: 14.66 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6834, allocations: 0 / 0.5789 GB, free: 14.66 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001076/0.6845, allocations: 85.5 kB / 0.5789 GB, free: 14.59 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 (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.0002153/0.6847, allocations: 102.4 kB / 0.579 GB, free: 14.48 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006381/0.6854, allocations: 186.8 kB / 0.5792 GB, free: 14.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.6854, allocations: 0 / 0.5792 GB, free: 14.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002059/0.6856, allocations: 74.97 kB / 0.5793 GB, free: 14.28 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.6867, allocations: 53.58 kB / 0.5793 GB, free: 14.24 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003502/0.6902, allocations: 1.378 MB / 0.5807 GB, free: 12.87 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006091/0.6908, allocations: 0.7836 MB / 0.5815 GB, free: 12.06 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002659/0.6911, allocations: 26.97 kB / 0.5815 GB, free: 12.03 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.638e-05/0.6912, allocations: 27.44 kB / 0.5815 GB, free: 12 MB / 394.7 MB Notification: Performance of SimCode: time 1.854e-06/0.6912, allocations: 0 / 0.5815 GB, free: 12 MB / 394.7 MB Notification: Performance of Templates: time 0.01049/0.7017, allocations: 2.274 MB / 0.5837 GB, free: 9.754 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/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