Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001428/0.001428, allocations: 199.8 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007588/0.0007588, allocations: 96.09 kB / 299.9 MB, free: 5.367 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3551/0.3551, allocations: 45 MB / 397 MB, free: 31.46 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002612/0.0002613, allocations: 7.984 kB / 470.8 MB, free: 7.152 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3201/0.3204, allocations: 63.09 MB / 0.5214 GB, free: 38.59 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.00237/0.3228, allocations: 2.512 MB / 0.5238 GB, free: 36.8 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.3242, allocations: 1.47 MB / 0.5252 GB, free: 35.51 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.3244, allocations: 9.75 kB / 0.5253 GB, free: 35.51 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.3245, allocations: 43.09 kB / 0.5253 GB, free: 35.48 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001576/0.3247, allocations: 106.6 kB / 0.5254 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003723/0.325, allocations: 149.7 kB / 0.5255 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000289/0.3253, allocations: 429.5 kB / 0.526 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001644/0.3255, allocations: 90.67 kB / 0.526 GB, free: 35.06 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001164/0.3256, allocations: 147.5 kB / 0.5262 GB, free: 35 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000153/0.3258, allocations: 156.8 kB / 0.5263 GB, free: 34.92 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.986e-05/0.3258, allocations: 18.66 kB / 0.5263 GB, free: 34.92 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.3259, allocations: 38.52 kB / 0.5264 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.121e-05/0.326, allocations: 69.28 kB / 0.5264 GB, free: 34.87 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.3261, allocations: 203.6 kB / 0.5266 GB, free: 34.74 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002823/0.3264, allocations: 399.1 kB / 0.527 GB, free: 34.61 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3264, allocations: 0 / 0.527 GB, free: 34.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3264, allocations: 0 / 0.527 GB, free: 34.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.511e-06/0.3264, allocations: 0 / 0.527 GB, free: 34.61 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0006793/0.3271, allocations: 0.5892 MB / 0.5276 GB, free: 34.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.131e-05/0.3272, allocations: 8.219 kB / 0.5276 GB, free: 34.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002406/0.3274, allocations: 69.31 kB / 0.5277 GB, free: 34.1 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002368/0.3276, allocations: 284.5 kB / 0.5279 GB, free: 33.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.889e-05/0.3277, allocations: 23.94 kB / 0.528 GB, free: 33.83 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.455e-05/0.3277, allocations: 46.31 kB / 0.528 GB, free: 33.81 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004655/0.3282, allocations: 364.5 kB / 0.5284 GB, free: 33.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.549e-05/0.3283, allocations: 14.88 kB / 0.5284 GB, free: 33.6 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.854e-05/0.3283, allocations: 15.03 kB / 0.5284 GB, free: 33.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.3283, allocations: 9.656 kB / 0.5284 GB, free: 33.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003901/0.3287, allocations: 218.2 kB / 0.5286 GB, free: 33.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001827/0.3305, allocations: 1.57 MB / 0.5301 GB, free: 32.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004991/0.331, allocations: 320 kB / 0.5304 GB, free: 32.08 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001429/0.3312, allocations: 91.36 kB / 0.5305 GB, free: 32.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.3312, allocations: 9.938 kB / 0.5305 GB, free: 32.01 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.092e-05/0.3313, allocations: 41.47 kB / 0.5306 GB, free: 31.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.473e-06/0.3313, allocations: 0 / 0.5306 GB, free: 31.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.0006691/0.3319, allocations: 280.3 kB / 0.5308 GB, free: 31.85 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.321e-05/0.332, allocations: 186.8 kB / 0.531 GB, free: 31.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002044/0.3322, allocations: 230.5 kB / 0.5312 GB, free: 31.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.3323, allocations: 28.61 kB / 0.5313 GB, free: 31.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.3324, allocations: 213.6 kB / 0.5315 GB, free: 31.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.206e-05/0.3325, allocations: 112.9 kB / 0.5316 GB, free: 31.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.545e-05/0.3325, allocations: 10.84 kB / 0.5316 GB, free: 31.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.3326, allocations: 338.6 kB / 0.5319 GB, free: 30.85 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001588/0.3328, allocations: 82.81 kB / 0.532 GB, free: 30.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002417/0.333, allocations: 251.4 kB / 0.5322 GB, free: 30.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004205/0.3334, allocations: 365.5 kB / 0.5326 GB, free: 30.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/0.3335, allocations: 2.969 kB / 0.5326 GB, free: 30.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005873/0.3341, allocations: 381.8 kB / 0.533 GB, free: 30.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.3341, allocations: 5.594 kB / 0.533 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.3341, allocations: 6.906 kB / 0.533 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.968e-05/0.3341, allocations: 9.469 kB / 0.533 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003297/0.3345, allocations: 107.7 kB / 0.5331 GB, free: 30.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.473e-05/0.3345, allocations: 12.53 kB / 0.5331 GB, free: 30.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001956/0.3347, allocations: 50.23 kB / 0.5331 GB, free: 30.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.343e-05/0.3347, allocations: 18.5 kB / 0.5332 GB, free: 30.04 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.0001181/0.3349, allocations: 157.4 kB / 0.5333 GB, free: 29.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.335, allocations: 29.86 kB / 0.5333 GB, free: 29.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001446/0.3351, allocations: 97.73 kB / 0.5334 GB, free: 29.81 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.3351, allocations: 5.719 kB / 0.5334 GB, free: 29.81 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.3352, allocations: 3.938 kB / 0.5334 GB, free: 29.81 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.3352, allocations: 13.75 kB / 0.5334 GB, free: 29.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005233/0.3357, allocations: 337.5 kB / 0.5338 GB, free: 29.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.3357, allocations: 0 / 0.5338 GB, free: 29.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003536/0.3361, allocations: 86.02 kB / 0.5339 GB, free: 29.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.3361, allocations: 2.844 kB / 0.5339 GB, free: 29.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.061e-05/0.3361, allocations: 6.938 kB / 0.5339 GB, free: 29.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.3361, allocations: 2.875 kB / 0.5339 GB, free: 29.54 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.3361, allocations: 6.938 kB / 0.5339 GB, free: 29.53 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005377/0.3367, allocations: 0.7748 MB / 0.5346 GB, free: 28.92 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.15e-05/0.3367, allocations: 101.4 kB / 0.5347 GB, free: 28.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.739e-05/0.3368, allocations: 14.23 kB / 0.5347 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002813/0.337, allocations: 9.688 kB / 0.5347 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.354e-05/0.3371, allocations: 22.88 kB / 0.5348 GB, free: 28.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.3371, allocations: 15.67 kB / 0.5348 GB, free: 28.79 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001046/0.3372, allocations: 158.4 kB / 0.5349 GB, free: 28.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3372, allocations: 0 / 0.5349 GB, free: 28.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004992/0.3377, allocations: 102.3 kB / 0.535 GB, free: 28.66 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 0.0001016/0.3379, allocations: 114.3 kB / 0.5351 GB, free: 28.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003743/0.3382, allocations: 234.4 kB / 0.5354 GB, free: 28.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3382, allocations: 384 / 0.5354 GB, free: 28.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001435/0.3384, allocations: 101.6 kB / 0.5355 GB, free: 28.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007967/0.3392, allocations: 62.08 kB / 0.5355 GB, free: 28.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.3408, allocations: 1.644 MB / 0.5371 GB, free: 27.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002212/0.3411, allocations: 0.7929 MB / 0.5379 GB, free: 26.54 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000131/0.3412, allocations: 33.12 kB / 0.5379 GB, free: 26.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.621e-05/0.3413, allocations: 29.28 kB / 0.538 GB, free: 26.52 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.3413, allocations: 4 kB / 0.538 GB, free: 26.52 MB / 378.7 MB Notification: Performance of Templates: time 0.006124/0.3474, allocations: 2.836 MB / 0.5407 GB, free: 26.3 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/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