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.001186/0.001186, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001047/0.001047, allocations: 108.5 kB / 296.7 MB, free: 6.496 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4306/0.4306, allocations: 44.84 MB / 392.7 MB, free: 34.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 59.91 kB / 465.5 MB, free: 12.14 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3374, allocations: 62.02 MB / 0.5151 GB, free: 37.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003331/0.3408, allocations: 3.065 MB / 0.5181 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.3421, allocations: 1.07 MB / 0.5192 GB, free: 34.86 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001391/0.3422, allocations: 11.28 kB / 0.5192 GB, free: 34.86 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000157/0.3424, allocations: 47 kB / 0.5192 GB, free: 34.83 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001632/0.3426, allocations: 106.5 kB / 0.5193 GB, free: 34.75 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003843/0.343, allocations: 152.8 kB / 0.5195 GB, free: 34.66 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003023/0.3433, allocations: 433 kB / 0.5199 GB, free: 34.45 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.3434, allocations: 107.4 kB / 0.52 GB, free: 34.39 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001236/0.3436, allocations: 146.2 kB / 0.5201 GB, free: 34.32 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001649/0.3437, allocations: 173.5 kB / 0.5203 GB, free: 34.24 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.689e-05/0.3438, allocations: 20.41 kB / 0.5203 GB, free: 34.24 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001193/0.3439, allocations: 38.8 kB / 0.5204 GB, free: 34.24 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.609e-05/0.344, allocations: 69.45 kB / 0.5204 GB, free: 34.2 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001309/0.3441, allocations: 183.6 kB / 0.5206 GB, free: 34.09 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003008/0.3444, allocations: 414.1 kB / 0.521 GB, free: 33.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3444, allocations: 7.938 kB / 0.521 GB, free: 33.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.3444, allocations: 0 / 0.521 GB, free: 33.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.3444, allocations: 0 / 0.521 GB, free: 33.93 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.0007945/0.3452, allocations: 0.6593 MB / 0.5216 GB, free: 33.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.004e-05/0.3453, allocations: 11.22 kB / 0.5217 GB, free: 33.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002514/0.3455, allocations: 65.72 kB / 0.5217 GB, free: 33.37 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002389/0.3458, allocations: 285.1 kB / 0.522 GB, free: 33.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.928e-05/0.3458, allocations: 26.88 kB / 0.522 GB, free: 33.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.893e-05/0.3459, allocations: 40.53 kB / 0.5221 GB, free: 33.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000442/0.3463, allocations: 361.8 kB / 0.5224 GB, free: 32.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.3464, allocations: 6.844 kB / 0.5224 GB, free: 32.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.493e-05/0.3464, allocations: 17.72 kB / 0.5224 GB, free: 32.87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.3464, allocations: 8.656 kB / 0.5224 GB, free: 32.87 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003522/0.3468, allocations: 221.1 kB / 0.5226 GB, free: 32.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001645/0.3484, allocations: 1.591 MB / 0.5242 GB, free: 31.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004176/0.3488, allocations: 316.3 kB / 0.5245 GB, free: 31.35 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000124/0.349, allocations: 101.2 kB / 0.5246 GB, free: 31.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.349, allocations: 3.062 kB / 0.5246 GB, free: 31.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.541e-05/0.349, allocations: 41.44 kB / 0.5246 GB, free: 31.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.413e-06/0.349, allocations: 0 / 0.5246 GB, free: 31.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.0005487/0.3496, allocations: 269.7 kB / 0.5249 GB, free: 31.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.3497, allocations: 190 kB / 0.5251 GB, free: 30.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.3498, allocations: 241.5 kB / 0.5253 GB, free: 30.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.3498, allocations: 29.7 kB / 0.5253 GB, free: 30.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.436e-05/0.3499, allocations: 217.6 kB / 0.5255 GB, free: 30.53 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.091e-05/0.35, allocations: 99.67 kB / 0.5256 GB, free: 30.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.47e-05/0.3501, allocations: 82.69 kB / 0.5257 GB, free: 30.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.014e-05/0.3501, allocations: 342.7 kB / 0.526 GB, free: 30.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.3503, allocations: 79.83 kB / 0.5261 GB, free: 30.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001957/0.3505, allocations: 248 kB / 0.5264 GB, free: 29.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003731/0.3509, allocations: 363.7 kB / 0.5267 GB, free: 29.49 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.3509, allocations: 2.938 kB / 0.5267 GB, free: 29.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004971/0.3514, allocations: 383.4 kB / 0.5271 GB, free: 29.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.3514, allocations: 9.5 kB / 0.5271 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.3514, allocations: 5.625 kB / 0.5271 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.3514, allocations: 9 kB / 0.5271 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003038/0.3517, allocations: 107 kB / 0.5272 GB, free: 29.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.218e-05/0.3518, allocations: 19.34 kB / 0.5272 GB, free: 29.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002108/0.352, allocations: 40.44 kB / 0.5273 GB, free: 29.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.176e-05/0.352, allocations: 19.19 kB / 0.5273 GB, free: 29.27 MB / 378.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001037/0.3521, allocations: 165.2 kB / 0.5274 GB, free: 29.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.3522, allocations: 31.19 kB / 0.5275 GB, free: 29.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001412/0.3524, allocations: 92.5 kB / 0.5275 GB, free: 29.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.3524, allocations: 10.88 kB / 0.5276 GB, free: 29.03 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.3524, allocations: 2.5 kB / 0.5276 GB, free: 29.03 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.3524, allocations: 2.562 kB / 0.5276 GB, free: 29.03 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005283/0.353, allocations: 352.8 kB / 0.5279 GB, free: 28.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.353, allocations: 0 / 0.5279 GB, free: 28.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003586/0.3533, allocations: 79.75 kB / 0.528 GB, free: 28.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.3533, allocations: 2.5 kB / 0.528 GB, free: 28.76 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.3534, allocations: 10.27 kB / 0.528 GB, free: 28.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.3534, allocations: 6.75 kB / 0.528 GB, free: 28.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.3534, allocations: 2.688 kB / 0.528 GB, free: 28.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00376/0.3571, allocations: 3.045 MB / 0.531 GB, free: 26.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.239e-05/0.3572, allocations: 101 kB / 0.5311 GB, free: 26.51 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.142e-05/0.3572, allocations: 9.75 kB / 0.5311 GB, free: 26.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002887/0.3575, allocations: 7.219 kB / 0.5311 GB, free: 26.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.84e-05/0.3576, allocations: 27.3 kB / 0.5311 GB, free: 26.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.3576, allocations: 15.7 kB / 0.5311 GB, free: 26.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.996e-05/0.3577, allocations: 168.2 kB / 0.5313 GB, free: 26.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3577, allocations: 0 / 0.5313 GB, free: 26.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006292/0.3584, allocations: 138.8 kB / 0.5314 GB, free: 26.35 MB / 378.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,inertia6.w,inverseSpeedDependentTorque.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 (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.668e-05/0.3585, allocations: 101.2 kB / 0.5315 GB, free: 26.26 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003501/0.3588, allocations: 239.5 kB / 0.5317 GB, free: 26.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3588, allocations: 0 / 0.5317 GB, free: 26.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.359, allocations: 99.41 kB / 0.5318 GB, free: 26.15 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000853/0.3598, allocations: 69.42 kB / 0.5319 GB, free: 26.13 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001701/0.3615, allocations: 1.67 MB / 0.5335 GB, free: 24.81 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000208/0.3618, allocations: 0.7967 MB / 0.5343 GB, free: 24.11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001717/0.3619, allocations: 45.47 kB / 0.5344 GB, free: 24.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.672e-05/0.362, allocations: 27.22 kB / 0.5344 GB, free: 24.09 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.362, allocations: 0 / 0.5344 GB, free: 24.09 MB / 378.7 MB Notification: Performance of Templates: time 0.0068/0.3688, allocations: 3.864 MB / 0.5382 GB, free: 23.8 MB / 378.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/jenkins/ws/OpenModelicaLibraryTestingWork@2/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