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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001076/0.001077, allocations: 118.9 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001183/0.001183, allocations: 206.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 247.6 MB, free: 10.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1965/0.1965, allocations: 46.11 MB / 345 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002173/0.002173, allocations: 72.16 kB / 482 MB, free: 4.035 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.3431, allocations: 62.44 MB / 0.5316 GB, free: 13.54 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003743/0.3469, allocations: 3.038 MB / 0.5346 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001498/0.3484, allocations: 1.077 MB / 0.5357 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.3485, allocations: 9.438 kB / 0.5357 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001647/0.3487, allocations: 66.19 kB / 0.5357 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001777/0.3489, allocations: 108.7 kB / 0.5358 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004545/0.3494, allocations: 173.8 kB / 0.536 GB, free: 9.977 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004126/0.3498, allocations: 462.2 kB / 0.5364 GB, free: 9.699 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001958/0.35, allocations: 121.6 kB / 0.5366 GB, free: 9.625 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001666/0.3502, allocations: 157.6 kB / 0.5367 GB, free: 9.543 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00021/0.3504, allocations: 176.7 kB / 0.5369 GB, free: 9.426 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.53e-05/0.3504, allocations: 30.09 kB / 0.5369 GB, free: 9.426 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001215/0.3505, allocations: 50.64 kB / 0.537 GB, free: 9.418 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.698e-05/0.3506, allocations: 83.12 kB / 0.537 GB, free: 9.348 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001552/0.3508, allocations: 192.1 kB / 0.5372 GB, free: 9.227 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004125/0.3512, allocations: 439.7 kB / 0.5376 GB, free: 8.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.3512, allocations: 0 / 0.5376 GB, free: 8.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3512, allocations: 0 / 0.5376 GB, free: 8.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.3512, allocations: 1.062 kB / 0.5376 GB, free: 8.93 MB / 398.1 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.000964/0.3522, allocations: 0.6566 MB / 0.5383 GB, free: 8.352 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.3522, allocations: 9.25 kB / 0.5383 GB, free: 8.352 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000289/0.3525, allocations: 63.84 kB / 0.5383 GB, free: 8.324 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000338/0.3529, allocations: 294.2 kB / 0.5386 GB, free: 8.035 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.43e-05/0.3529, allocations: 27.56 kB / 0.5387 GB, free: 8.023 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.236e-05/0.353, allocations: 44.44 kB / 0.5387 GB, free: 8.004 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005585/0.3536, allocations: 363.1 kB / 0.539 GB, free: 7.754 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.496e-05/0.3536, allocations: 15.27 kB / 0.5391 GB, free: 7.742 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.799e-05/0.3536, allocations: 11.53 kB / 0.5391 GB, free: 7.734 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.3537, allocations: 8.875 kB / 0.5391 GB, free: 7.734 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004139/0.3541, allocations: 224.4 kB / 0.5393 GB, free: 7.629 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002014/0.3561, allocations: 1.576 MB / 0.5408 GB, free: 6.215 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005106/0.3566, allocations: 302.9 kB / 0.5411 GB, free: 5.98 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001504/0.3568, allocations: 100.7 kB / 0.5412 GB, free: 5.898 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.934e-05/0.3568, allocations: 11.38 kB / 0.5412 GB, free: 5.891 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.3568, allocations: 38.03 kB / 0.5413 GB, free: 5.848 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.683e-06/0.3569, allocations: 0 / 0.5413 GB, free: 5.848 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006391/0.3575, allocations: 270.5 kB / 0.5415 GB, free: 5.703 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.006e-05/0.3576, allocations: 192.5 kB / 0.5417 GB, free: 5.477 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002182/0.3578, allocations: 239.7 kB / 0.5419 GB, free: 5.305 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.3578, allocations: 30.83 kB / 0.542 GB, free: 5.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.358, allocations: 215 kB / 0.5422 GB, free: 5.074 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.574e-05/0.3581, allocations: 108 kB / 0.5423 GB, free: 4.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.864e-05/0.3582, allocations: 72.31 kB / 0.5423 GB, free: 4.926 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.3583, allocations: 341.7 kB / 0.5427 GB, free: 4.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.3585, allocations: 81.73 kB / 0.5427 GB, free: 4.555 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002598/0.3587, allocations: 246.9 kB / 0.543 GB, free: 4.301 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004559/0.3592, allocations: 367.8 kB / 0.5433 GB, free: 3.973 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.102e-06/0.3592, allocations: 6.062 kB / 0.5433 GB, free: 3.969 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000628/0.3598, allocations: 383.1 kB / 0.5437 GB, free: 3.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.3599, allocations: 7.344 kB / 0.5437 GB, free: 3.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.3599, allocations: 5.812 kB / 0.5437 GB, free: 3.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.3599, allocations: 8.969 kB / 0.5437 GB, free: 3.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003622/0.3603, allocations: 105.9 kB / 0.5438 GB, free: 3.746 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.456e-05/0.3603, allocations: 16.84 kB / 0.5438 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002194/0.3605, allocations: 48.66 kB / 0.5439 GB, free: 3.703 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.058e-05/0.3606, allocations: 17.16 kB / 0.5439 GB, free: 3.703 MB / 398.1 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.0001658/0.3607, allocations: 169.9 kB / 0.5441 GB, free: 3.543 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001341/0.3609, allocations: 25.95 kB / 0.5441 GB, free: 3.531 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001852/0.3611, allocations: 94.66 kB / 0.5442 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.3611, allocations: 1.156 kB / 0.5442 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3611, allocations: 9.875 kB / 0.5442 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.367e-05/0.3612, allocations: 109.6 kB / 0.5443 GB, free: 3.328 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.523e-05/0.3612, allocations: 14.94 kB / 0.5443 GB, free: 3.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003329/0.3616, allocations: 8.188 kB / 0.5443 GB, free: 3.312 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.792e-05/0.3616, allocations: 26.16 kB / 0.5443 GB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009452/0.3626, allocations: 0.7254 MB / 0.545 GB, free: 2.695 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008743/0.3635, allocations: 0.8841 MB / 0.5459 GB, free: 1.945 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001726/0.3637, allocations: 96.48 kB / 0.546 GB, free: 1.895 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001479/0.3638, allocations: 167.9 kB / 0.5462 GB, free: 1.777 MB / 398.1 MB Notification: Performance of Backend: time 4.81e-07/0.3638, allocations: 0 / 0.5462 GB, free: 1.777 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009983/0.3648, allocations: 268.3 kB / 0.5464 GB, free: 1.629 MB / 398.1 MB Notification: Performance of SimCode: time 0.002069/0.3669, allocations: 1.744 MB / 0.5481 GB, free: 84 kB / 398.1 MB Notification: Performance of Templates: time 0.007363/0.3743, allocations: 4.01 MB / 0.552 GB, free: 12.11 MB / 414.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches