Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_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|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 183 kB / 18.09 MB, free: 3.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 223.3 MB / 242.1 MB, free: 9.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008147/0.0008151, allocations: 96.7 kB / 293.3 MB, free: 10.57 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4215/0.4215, allocations: 44.15 MB / 388.5 MB, free: 38.46 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003652/0.0003652, allocations: 8 kB / 461.1 MB, free: 1.34 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4019/0.4023, allocations: 61.88 MB / 0.5107 GB, free: 37.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1185/0.5208, allocations: 90.58 MB / 0.5992 GB, free: 4.488 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002043/0.521, allocations: 67.95 kB / 0.5992 GB, free: 4.426 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01652/0.5376, allocations: 6.21 MB / 0.6053 GB, free: 14.22 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.5376, allocations: 0 / 0.6053 GB, free: 14.22 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.793e-05/0.5376, allocations: 11.94 kB / 0.6053 GB, free: 14.21 MB / 426.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.0008182/0.5385, allocations: 0.5346 MB / 0.6058 GB, free: 13.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.5385, allocations: 8.031 kB / 0.6058 GB, free: 13.61 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000226/0.5388, allocations: 52.67 kB / 0.6059 GB, free: 13.56 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003932/0.5392, allocations: 264.3 kB / 0.6061 GB, free: 13.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/0.5392, allocations: 24.97 kB / 0.6062 GB, free: 13.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.309e-05/0.5393, allocations: 40.22 kB / 0.6062 GB, free: 13.2 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000504/0.5398, allocations: 303 kB / 0.6065 GB, free: 12.89 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.177e-05/0.5398, allocations: 7.906 kB / 0.6065 GB, free: 12.88 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.77e-05/0.5399, allocations: 12 kB / 0.6065 GB, free: 12.87 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.5399, allocations: 8 kB / 0.6065 GB, free: 12.86 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003228/0.5402, allocations: 175.8 kB / 0.6067 GB, free: 12.69 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002058/0.5423, allocations: 1.346 MB / 0.608 GB, free: 11.24 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004217/0.5427, allocations: 245 kB / 0.6082 GB, free: 10.95 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001212/0.5428, allocations: 80.31 kB / 0.6083 GB, free: 10.86 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.586e-05/0.5429, allocations: 8.141 kB / 0.6083 GB, free: 10.85 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.933e-05/0.5429, allocations: 42.5 kB / 0.6084 GB, free: 10.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=22): time 4.017e-06/0.5429, allocations: 0 / 0.6084 GB, free: 10.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=22): time 0.00053/0.5435, allocations: 213.2 kB / 0.6086 GB, free: 10.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.245e-05/0.5436, allocations: 166.2 kB / 0.6087 GB, free: 10.39 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002035/0.5438, allocations: 204.1 kB / 0.6089 GB, free: 10.17 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/0.5438, allocations: 33.7 kB / 0.609 GB, free: 10.13 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.5439, allocations: 188.1 kB / 0.6091 GB, free: 9.945 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.636e-05/0.544, allocations: 94.72 kB / 0.6092 GB, free: 9.852 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.259e-05/0.544, allocations: 8 kB / 0.6092 GB, free: 9.844 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.5442, allocations: 334.8 kB / 0.6096 GB, free: 9.508 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.5443, allocations: 59.98 kB / 0.6096 GB, free: 9.449 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.5445, allocations: 209.9 kB / 0.6098 GB, free: 9.18 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000341/0.5449, allocations: 290.1 kB / 0.6101 GB, free: 8.832 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.5449, allocations: 4 kB / 0.6101 GB, free: 8.828 MB / 426.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004694/0.5453, allocations: 321.2 kB / 0.6104 GB, free: 8.508 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.5454, allocations: 8 kB / 0.6104 GB, free: 8.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.5454, allocations: 8.125 kB / 0.6104 GB, free: 8.492 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.5454, allocations: 12.12 kB / 0.6104 GB, free: 8.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002718/0.5457, allocations: 87.84 kB / 0.6105 GB, free: 8.395 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.5457, allocations: 7.984 kB / 0.6105 GB, free: 8.387 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000188/0.5459, allocations: 35.69 kB / 0.6105 GB, free: 8.352 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.403e-05/0.5459, allocations: 16 kB / 0.6106 GB, free: 8.336 MB / 426.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.0001543/0.5461, allocations: 153.6 kB / 0.6107 GB, free: 8.176 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.5462, allocations: 23.72 kB / 0.6107 GB, free: 8.152 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001592/0.5464, allocations: 95.02 kB / 0.6108 GB, free: 8.051 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.5464, allocations: 3.984 kB / 0.6108 GB, free: 8.047 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.5464, allocations: 4 kB / 0.6108 GB, free: 8.043 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.5464, allocations: 0 / 0.6108 GB, free: 8.043 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005985/0.547, allocations: 313.3 kB / 0.6111 GB, free: 7.688 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.5471, allocations: 0 / 0.6111 GB, free: 7.688 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003152/0.5474, allocations: 71.91 kB / 0.6112 GB, free: 7.617 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.5474, allocations: 3.984 kB / 0.6112 GB, free: 7.613 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.324e-05/0.5474, allocations: 8 kB / 0.6112 GB, free: 7.605 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.5474, allocations: 4 kB / 0.6112 GB, free: 7.602 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.5475, allocations: 4 kB / 0.6112 GB, free: 7.598 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005184/0.548, allocations: 0.6295 MB / 0.6118 GB, free: 6.945 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.757e-05/0.5481, allocations: 100.8 kB / 0.6119 GB, free: 6.828 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.306e-05/0.5481, allocations: 4 kB / 0.6119 GB, free: 6.824 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002376/0.5483, allocations: 11.94 kB / 0.6119 GB, free: 6.812 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.149e-05/0.5484, allocations: 19.97 kB / 0.612 GB, free: 6.793 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.5484, allocations: 8.562 kB / 0.612 GB, free: 6.785 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001197/0.5485, allocations: 149.5 kB / 0.6121 GB, free: 6.641 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5485, allocations: 0 / 0.6121 GB, free: 6.641 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000511/0.5491, allocations: 83.75 kB / 0.6122 GB, free: 6.559 MB / 426.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.0001352/0.5492, allocations: 109.9 kB / 0.6123 GB, free: 6.445 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003149/0.5495, allocations: 195.4 kB / 0.6125 GB, free: 6.258 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.5495, allocations: 0 / 0.6125 GB, free: 6.258 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.5496, allocations: 77.5 kB / 0.6126 GB, free: 6.184 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00079/0.5504, allocations: 66.88 kB / 0.6126 GB, free: 6.117 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001856/0.5523, allocations: 1.377 MB / 0.614 GB, free: 4.703 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.5527, allocations: 0.7758 MB / 0.6147 GB, free: 3.902 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001478/0.5528, allocations: 22.98 kB / 0.6147 GB, free: 3.879 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.402e-05/0.5529, allocations: 27.42 kB / 0.6148 GB, free: 3.852 MB / 426.7 MB Notification: Performance of SimCode: time 2.11e-07/0.5529, allocations: 0 / 0.6148 GB, free: 3.852 MB / 426.7 MB Notification: Performance of Templates: time 0.005715/0.5586, allocations: 2.322 MB / 0.617 GB, free: 1.562 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches