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.002137/0.002136, allocations: 186.2 kB / 16.41 MB, free: 5.727 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.978/1.978, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001125/0.001125, allocations: 86.92 kB / 270.9 MB, free: 8.363 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.4975/0.4975, allocations: 43.56 MB / 362.7 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004887/0.0004887, allocations: 8 kB / 431.4 MB, free: 5.953 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1309, allocations: 58.84 MB / 490.2 MB, free: 11.03 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4621/0.5931, allocations: 89.62 MB / 0.5662 GB, free: 12.96 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002223/0.5933, allocations: 67.97 kB / 0.5663 GB, free: 12.89 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02959/0.6229, allocations: 6.108 MB / 0.5723 GB, free: 6.828 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.098e-06/0.623, allocations: 0 / 0.5723 GB, free: 6.828 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.149e-05/0.623, allocations: 12.78 kB / 0.5723 GB, free: 6.816 MB / 394.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.001126/0.6242, allocations: 0.5373 MB / 0.5728 GB, free: 6.234 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.6242, allocations: 8.031 kB / 0.5728 GB, free: 6.227 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003233/0.6246, allocations: 54.95 kB / 0.5729 GB, free: 6.176 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004369/0.625, allocations: 261.5 kB / 0.5731 GB, free: 5.883 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.627e-05/0.6251, allocations: 20.66 kB / 0.5731 GB, free: 5.863 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.6252, allocations: 39.91 kB / 0.5732 GB, free: 5.824 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007347/0.626, allocations: 294.7 kB / 0.5734 GB, free: 5.512 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.455e-05/0.626, allocations: 7.906 kB / 0.5734 GB, free: 5.504 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.852e-05/0.6261, allocations: 12.16 kB / 0.5735 GB, free: 5.492 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.848e-05/0.6261, allocations: 8 kB / 0.5735 GB, free: 5.484 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005032/0.6266, allocations: 181.9 kB / 0.5736 GB, free: 5.309 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00293/0.6296, allocations: 1.343 MB / 0.575 GB, free: 3.867 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006461/0.6302, allocations: 242.4 kB / 0.5752 GB, free: 3.586 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.848e-05/0.6303, allocations: 16.03 kB / 0.5752 GB, free: 3.57 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.6303, allocations: 34.56 kB / 0.5752 GB, free: 3.527 MB / 394.7 MB Notification: Performance of pre-optimization done (n=22): time 2.825e-06/0.6304, allocations: 0 / 0.5752 GB, free: 3.527 MB / 394.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007681/0.6311, allocations: 229.5 kB / 0.5754 GB, free: 3.297 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.87e-05/0.6312, allocations: 158.2 kB / 0.5756 GB, free: 3.105 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002909/0.6315, allocations: 191.5 kB / 0.5758 GB, free: 2.91 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.115e-05/0.6316, allocations: 29.7 kB / 0.5758 GB, free: 2.875 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.6318, allocations: 246.3 kB / 0.576 GB, free: 2.633 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.6319, allocations: 94.73 kB / 0.5761 GB, free: 2.539 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.195e-05/0.6319, allocations: 4 kB / 0.5761 GB, free: 2.535 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.6321, allocations: 330.8 kB / 0.5765 GB, free: 2.203 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002033/0.6323, allocations: 63.97 kB / 0.5765 GB, free: 2.141 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003133/0.6326, allocations: 207 kB / 0.5767 GB, free: 1.875 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000283/0.6329, allocations: 95.94 kB / 0.5768 GB, free: 1.781 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.6329, allocations: 0 / 0.5768 GB, free: 1.781 MB / 394.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007754/0.6337, allocations: 309.5 kB / 0.5771 GB, free: 1.473 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/0.6337, allocations: 8 kB / 0.5771 GB, free: 1.465 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.6338, allocations: 4.078 kB / 0.5771 GB, free: 1.461 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.585e-05/0.6338, allocations: 8 kB / 0.5771 GB, free: 1.453 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005754/0.6344, allocations: 87.84 kB / 0.5772 GB, free: 1.367 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.578e-05/0.6344, allocations: 23.86 kB / 0.5772 GB, free: 1.344 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003104/0.6347, allocations: 31.69 kB / 0.5773 GB, free: 1.312 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.314e-05/0.6348, allocations: 16 kB / 0.5773 GB, free: 1.297 MB / 394.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.0002304/0.635, allocations: 149.8 kB / 0.5774 GB, free: 1.141 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/0.6352, allocations: 27.72 kB / 0.5774 GB, free: 1.113 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002658/0.6355, allocations: 87.11 kB / 0.5775 GB, free: 1.027 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.6355, allocations: 7.938 kB / 0.5775 GB, free: 1.02 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.6355, allocations: 4 kB / 0.5775 GB, free: 1.016 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.155e-05/0.6355, allocations: 7.938 kB / 0.5775 GB, free: 1.008 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008466/0.6364, allocations: 305.4 kB / 0.5778 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-06/0.6364, allocations: 0 / 0.5778 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007112/0.6371, allocations: 63.91 kB / 0.5779 GB, free: 0.5977 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.15e-05/0.6372, allocations: 7.938 kB / 0.5779 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.456e-05/0.6372, allocations: 15.98 kB / 0.5779 GB, free: 0.5742 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.6372, allocations: 0 / 0.5779 GB, free: 0.5742 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.6372, allocations: 4 kB / 0.5779 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000917/0.6382, allocations: 0.6886 MB / 0.5786 GB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.6383, allocations: 92.83 kB / 0.5787 GB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.234e-05/0.6384, allocations: 12 kB / 0.5787 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003832/0.6388, allocations: 4 kB / 0.5787 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.383e-05/0.6388, allocations: 19.97 kB / 0.5787 GB, free: 15.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.072e-05/0.6389, allocations: 4 kB / 0.5787 GB, free: 15.69 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002024/0.6391, allocations: 153.6 kB / 0.5789 GB, free: 15.54 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6391, allocations: 0 / 0.5789 GB, free: 15.54 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007648/0.6399, allocations: 83.78 kB / 0.5789 GB, free: 15.46 MB / 410.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.0001604/0.6401, allocations: 103.2 kB / 0.579 GB, free: 15.35 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005413/0.6406, allocations: 192.7 kB / 0.5792 GB, free: 15.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.6406, allocations: 0 / 0.5792 GB, free: 15.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001748/0.6408, allocations: 71.91 kB / 0.5793 GB, free: 15.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008685/0.6417, allocations: 52.97 kB / 0.5793 GB, free: 15.04 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002978/0.6447, allocations: 1.416 MB / 0.5807 GB, free: 13.59 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004296/0.6452, allocations: 0.7797 MB / 0.5815 GB, free: 12.78 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.6453, allocations: 23.44 kB / 0.5815 GB, free: 12.76 MB / 410.7 MB Notification: Performance of SimCode: time 1.683e-06/0.6453, allocations: 0 / 0.5815 GB, free: 12.76 MB / 410.7 MB Notification: Performance of Templates: time 0.008246/0.6536, allocations: 3.258 MB / 0.5847 GB, free: 9.523 MB / 410.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