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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002039/0.002039, allocations: 84.34 kB / 20.95 MB, free: 3.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002498/0.002498, allocations: 165.7 kB / 24.27 MB, free: 144 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.51/1.51, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4281/0.4281, allocations: 32.79 MB / 293.9 MB, free: 1.215 MB / 266.7 MB " [Timeout remaining time 179] 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 Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,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=5002,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 375.2 MB, free: 5.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.948e-05/3.08e-05, allocations: 6.25 kB / 375.2 MB, free: 5.012 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004401/0.004432, allocations: 2.631 MB / 377.9 MB, free: 2.359 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001896/0.006328, allocations: 0.9542 MB / 378.8 MB, free: 1.402 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001458/0.006473, allocations: 7.938 kB / 378.8 MB, free: 1.395 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001761/0.006649, allocations: 55.39 kB / 378.9 MB, free: 1.34 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002195/0.006869, allocations: 119 kB / 379 MB, free: 1.223 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004809/0.00735, allocations: 147.5 kB / 379.1 MB, free: 1.078 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004891/0.007839, allocations: 394 kB / 379.5 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00017/0.008009, allocations: 57.41 kB / 379.6 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002762/0.008285, allocations: 219.5 kB / 379.8 MB, free: 428 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002045/0.00849, allocations: 107.6 kB / 379.9 MB, free: 320 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.124e-05/0.008541, allocations: 28 kB / 379.9 MB, free: 292 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001213/0.008662, allocations: 47.97 kB / 380 MB, free: 244 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.336e-05/0.008726, allocations: 55.77 kB / 380 MB, free: 188 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001524/0.008878, allocations: 119.7 kB / 380.1 MB, free: 68 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005443/0.009422, allocations: 382.7 kB / 380.5 MB, free: 15.69 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.009426, allocations: 0 / 380.5 MB, free: 15.69 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.009427, allocations: 0 / 380.5 MB, free: 15.69 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.009434, allocations: 0 / 380.5 MB, free: 15.69 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.0009957/0.01043, allocations: 0.5286 MB / 381 MB, free: 15.13 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.01047, allocations: 8.031 kB / 381 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003617/0.01083, allocations: 88.61 kB / 381.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004061/0.01123, allocations: 222 kB / 381.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.194e-05/0.01127, allocations: 25.03 kB / 381.4 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.255e-05/0.01134, allocations: 40.31 kB / 381.4 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005504/0.01189, allocations: 302.7 kB / 381.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.004e-05/0.01192, allocations: 12.17 kB / 381.7 MB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.431e-05/0.01195, allocations: 11.94 kB / 381.7 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.01196, allocations: 8 kB / 381.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003654/0.01233, allocations: 171.8 kB / 381.9 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002324/0.01465, allocations: 1.196 MB / 383.1 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004727/0.01513, allocations: 233 kB / 383.3 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001418/0.01527, allocations: 76.31 kB / 383.4 MB, free: 12.58 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.01529, allocations: 8 kB / 383.4 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.01533, allocations: 38.5 kB / 383.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.202e-06/0.01533, allocations: 0 / 383.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005551/0.01588, allocations: 233.5 kB / 383.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/0.016, allocations: 158.2 kB / 383.8 MB, free: 12.1 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002554/0.01626, allocations: 208 kB / 384 MB, free: 11.88 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/0.01629, allocations: 37.64 kB / 384.1 MB, free: 11.84 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001615/0.01645, allocations: 196.3 kB / 384.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.455e-05/0.01655, allocations: 95.23 kB / 384.4 MB, free: 11.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.01665, allocations: 61.7 kB / 384.4 MB, free: 11.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002038/0.01686, allocations: 342.8 kB / 384.8 MB, free: 11.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.01699, allocations: 59.97 kB / 384.8 MB, free: 11.08 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002809/0.01727, allocations: 206 kB / 385 MB, free: 10.81 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004419/0.01771, allocations: 297.8 kB / 385.3 MB, free: 10.46 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.01771, allocations: 0 / 385.3 MB, free: 10.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005864/0.0183, allocations: 345.2 kB / 385.6 MB, free: 10.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.01832, allocations: 10.34 kB / 385.7 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.01833, allocations: 4 kB / 385.7 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.594e-05/0.01836, allocations: 8 kB / 385.7 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003249/0.01868, allocations: 91.83 kB / 385.8 MB, free: 10 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/0.01869, allocations: 7.938 kB / 385.8 MB, free: 9.996 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/0.01887, allocations: 31.78 kB / 385.8 MB, free: 9.965 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.982e-05/0.0189, allocations: 23.94 kB / 385.8 MB, free: 9.941 MB / 362.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001764/0.01908, allocations: 145.9 kB / 386 MB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.01921, allocations: 35.84 kB / 386 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000198/0.0194, allocations: 91.14 kB / 386.1 MB, free: 9.66 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-06/0.01941, allocations: 0 / 386.1 MB, free: 9.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.01942, allocations: 7.938 kB / 386.1 MB, free: 9.652 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.01942, allocations: 0 / 386.1 MB, free: 9.652 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005666/0.01999, allocations: 221.1 kB / 386.3 MB, free: 9.406 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.01999, allocations: 4.562 kB / 386.3 MB, free: 9.402 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003783/0.02037, allocations: 63.91 kB / 386.4 MB, free: 9.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.82e-06/0.02038, allocations: 4 kB / 386.4 MB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.991e-05/0.0204, allocations: 4 kB / 386.4 MB, free: 9.332 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/0.02041, allocations: 8 kB / 386.4 MB, free: 9.324 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.02041, allocations: 0 / 386.4 MB, free: 9.324 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007223/0.02113, allocations: 0.6524 MB / 387 MB, free: 8.656 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.107e-05/0.02117, allocations: 23.8 kB / 387.1 MB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.599e-05/0.02122, allocations: 15.98 kB / 387.1 MB, free: 8.617 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002795/0.0215, allocations: 8 kB / 387.1 MB, free: 8.609 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.972e-05/0.02154, allocations: 15.91 kB / 387.1 MB, free: 8.594 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.474e-05/0.02155, allocations: 12 kB / 387.1 MB, free: 8.582 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001504/0.0217, allocations: 145.8 kB / 387.3 MB, free: 8.441 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0217, allocations: 0 / 387.3 MB, free: 8.441 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005774/0.02228, allocations: 91.78 kB / 387.3 MB, free: 8.352 MB / 362.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 (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.0001308/0.02241, allocations: 95.25 kB / 387.4 MB, free: 8.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003658/0.02277, allocations: 175.7 kB / 387.6 MB, free: 8.078 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.02278, allocations: 1.062 kB / 387.6 MB, free: 8.078 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001254/0.0229, allocations: 75.83 kB / 387.7 MB, free: 8.004 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008371/0.02374, allocations: 65.2 kB / 387.7 MB, free: 7.938 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001641/0.02538, allocations: 0.886 MB / 388.6 MB, free: 7.008 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002167/0.0256, allocations: 180.7 kB / 388.8 MB, free: 6.816 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000116/0.02571, allocations: 26.97 kB / 388.8 MB, free: 6.793 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.31e-05/0.02579, allocations: 28.48 kB / 388.9 MB, free: 6.766 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.02579, allocations: 3.938 kB / 388.9 MB, free: 6.762 MB / 362.7 MB Notification: Performance of Templates: time 0.007295/0.03308, allocations: 2.489 MB / 391.4 MB, free: 4.332 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.018128439085558]