Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001058/0.001058, allocations: 200.7 kB / 18.1 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 226.5 MB / 245.4 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008172/0.0008174, allocations: 99.69 kB / 297.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3446/0.3446, allocations: 44.81 MB / 394.3 MB, free: 35.62 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002916/0.0002917, allocations: 8 kB / 467.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3789/0.3792, allocations: 62.95 MB / 0.5184 GB, free: 37.63 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1261/0.5053, allocations: 92.12 MB / 0.6084 GB, free: 13.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003072/0.5057, allocations: 71.95 kB / 0.6084 GB, free: 13.13 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03073/0.5365, allocations: 7.87 MB / 0.6161 GB, free: 5.246 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5365, allocations: 4 kB / 0.6161 GB, free: 5.242 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.143e-05/0.5366, allocations: 8 kB / 0.6161 GB, free: 5.234 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001396/0.538, allocations: 0.5815 MB / 0.6167 GB, free: 4.598 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.5381, allocations: 8.031 kB / 0.6167 GB, free: 4.59 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004631/0.5385, allocations: 68.44 kB / 0.6168 GB, free: 4.523 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005276/0.5391, allocations: 280.5 kB / 0.617 GB, free: 4.207 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.59e-05/0.5391, allocations: 29.38 kB / 0.6171 GB, free: 4.18 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001071/0.5393, allocations: 40.28 kB / 0.6171 GB, free: 4.141 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008694/0.5401, allocations: 360.3 kB / 0.6174 GB, free: 3.762 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.897e-05/0.5402, allocations: 15.84 kB / 0.6175 GB, free: 3.746 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.349e-05/0.5403, allocations: 12 kB / 0.6175 GB, free: 3.734 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.618e-05/0.5403, allocations: 11.94 kB / 0.6175 GB, free: 3.723 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006501/0.541, allocations: 215.8 kB / 0.6177 GB, free: 3.512 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003001/0.544, allocations: 1.574 MB / 0.6192 GB, free: 1.824 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007853/0.5448, allocations: 320.1 kB / 0.6195 GB, free: 1.457 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002305/0.545, allocations: 101.1 kB / 0.6196 GB, free: 1.34 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.5451, allocations: 7.938 kB / 0.6196 GB, free: 1.332 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.763e-05/0.5451, allocations: 42.56 kB / 0.6197 GB, free: 1.281 MB / 426.7 MB Notification: Performance of pre-optimization done (n=26): time 4.529e-06/0.5451, allocations: 3.984 kB / 0.6197 GB, free: 1.277 MB / 426.7 MB Notification: Performance of matching and sorting (n=26): time 0.0009252/0.5461, allocations: 269.1 kB / 0.6199 GB, free: 1.008 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001483/0.5462, allocations: 188 kB / 0.6201 GB, free: 0.7812 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00038/0.5466, allocations: 242.4 kB / 0.6203 GB, free: 0.5352 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.809e-05/0.5467, allocations: 29.7 kB / 0.6204 GB, free: 0.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002198/0.5469, allocations: 208 kB / 0.6206 GB, free: 300 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001399/0.5471, allocations: 114.4 kB / 0.6207 GB, free: 184 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.21e-05/0.5471, allocations: 8 kB / 0.6207 GB, free: 176 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002456/0.5474, allocations: 342.7 kB / 0.621 GB, free: 15.83 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002746/0.5476, allocations: 84.84 kB / 0.6211 GB, free: 15.74 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004016/0.5481, allocations: 249.8 kB / 0.6213 GB, free: 15.42 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006996/0.5488, allocations: 357.1 kB / 0.6217 GB, free: 15 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.5488, allocations: 0 / 0.6217 GB, free: 15 MB / 442.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009959/0.5498, allocations: 380.8 kB / 0.622 GB, free: 14.62 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.765e-05/0.5499, allocations: 14.48 kB / 0.6221 GB, free: 14.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.859e-05/0.5499, allocations: 4 kB / 0.6221 GB, free: 14.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.512e-05/0.5499, allocations: 8.625 kB / 0.6221 GB, free: 14.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005501/0.5505, allocations: 111.8 kB / 0.6222 GB, free: 14.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.412e-05/0.5505, allocations: 8 kB / 0.6222 GB, free: 14.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003792/0.5509, allocations: 47.58 kB / 0.6222 GB, free: 14.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.824e-05/0.551, allocations: 20 kB / 0.6222 GB, free: 14.41 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (52): * Single equations (assignments): 52 * 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.0002833/0.5513, allocations: 157.6 kB / 0.6224 GB, free: 14.25 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002033/0.5515, allocations: 27.72 kB / 0.6224 GB, free: 14.22 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002543/0.5517, allocations: 91.33 kB / 0.6225 GB, free: 14.12 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.364e-05/0.5518, allocations: 12.08 kB / 0.6225 GB, free: 14.11 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-05/0.5518, allocations: 7.938 kB / 0.6225 GB, free: 14.11 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.5518, allocations: 0 / 0.6225 GB, free: 14.11 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/0.5529, allocations: 349.2 kB / 0.6229 GB, free: 13.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.553, allocations: 3.938 kB / 0.6229 GB, free: 13.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005872/0.5536, allocations: 83.89 kB / 0.6229 GB, free: 13.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.917e-06/0.5536, allocations: 0 / 0.6229 GB, free: 13.63 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.428e-05/0.5536, allocations: 11.98 kB / 0.623 GB, free: 13.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.576e-06/0.5537, allocations: 4 kB / 0.623 GB, free: 13.61 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.5537, allocations: 0 / 0.623 GB, free: 13.61 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001186/0.5549, allocations: 0.7812 MB / 0.6237 GB, free: 12.81 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001246/0.555, allocations: 100.8 kB / 0.6238 GB, free: 12.7 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.1e-05/0.5551, allocations: 8.312 kB / 0.6238 GB, free: 12.69 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004837/0.5556, allocations: 15.98 kB / 0.6238 GB, free: 12.67 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.36e-05/0.5557, allocations: 19.92 kB / 0.6239 GB, free: 12.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.333e-05/0.5557, allocations: 15.98 kB / 0.6239 GB, free: 12.64 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002319/0.5559, allocations: 162 kB / 0.624 GB, free: 12.48 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.556, allocations: 0 / 0.624 GB, free: 12.48 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00108/0.5571, allocations: 103.7 kB / 0.6241 GB, free: 12.38 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T,inertia6.w,inverseSpeedDependentTorque.phi) * 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 (27): * Single equations (assignments): 27 * 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.0002268/0.5573, allocations: 111.2 kB / 0.6242 GB, free: 12.26 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0007314/0.558, allocations: 236.7 kB / 0.6245 GB, free: 12.03 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.5581, allocations: 0 / 0.6245 GB, free: 12.03 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002618/0.5583, allocations: 95.83 kB / 0.6246 GB, free: 11.94 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001457/0.5598, allocations: 64.78 kB / 0.6246 GB, free: 11.88 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003548/0.5634, allocations: 1.605 MB / 0.6262 GB, free: 10.22 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005825/0.564, allocations: 0.7952 MB / 0.627 GB, free: 9.402 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002743/0.5643, allocations: 34.95 kB / 0.627 GB, free: 9.371 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.747e-05/0.5644, allocations: 27.44 kB / 0.627 GB, free: 9.344 MB / 442.7 MB Notification: Performance of SimCode: time 2.905e-06/0.5644, allocations: 0 / 0.627 GB, free: 9.344 MB / 442.7 MB Notification: Performance of Templates: time 0.009807/0.5742, allocations: 2.799 MB / 0.6298 GB, free: 6.578 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches