Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001101/0.001101, allocations: 83.75 kB / 21.19 MB, free: 3.375 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.001724/0.001724, allocations: 161 kB / 24.56 MB, free: 8 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 0.9758/0.9758, allocations: 177.1 MB / 205 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2821/0.2821, allocations: 34.26 MB / 295.7 MB, free: 0.6836 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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=5006,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 378 MB, free: 2.645 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.451e-05/2.609e-05, allocations: 2.312 kB / 378 MB, free: 2.641 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003159/0.003185, allocations: 3.055 MB / 381.1 MB, free: 15.56 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.00176/0.004945, allocations: 1.059 MB / 382.1 MB, free: 14.5 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002079/0.005153, allocations: 15.88 kB / 382.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.005324, allocations: 59.33 kB / 382.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001957/0.00552, allocations: 134.8 kB / 382.3 MB, free: 14.29 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000521/0.006041, allocations: 179.4 kB / 382.5 MB, free: 14.12 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.000434/0.006475, allocations: 473.6 kB / 383 MB, free: 13.65 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.006651, allocations: 71.98 kB / 383 MB, free: 13.57 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002693/0.00692, allocations: 255.4 kB / 383.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001544/0.007074, allocations: 127.7 kB / 383.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 3.831e-05/0.007113, allocations: 32 kB / 383.4 MB, free: 13.16 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.007215, allocations: 47.98 kB / 383.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.457e-05/0.00726, allocations: 79.67 kB / 383.6 MB, free: 13.04 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001061/0.007366, allocations: 143.7 kB / 383.7 MB, free: 12.9 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003363/0.007702, allocations: 314.8 kB / 384 MB, free: 12.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.007706, allocations: 0 / 384 MB, free: 12.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.007707, allocations: 0 / 384 MB, free: 12.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.007713, allocations: 0 / 384 MB, free: 12.59 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.0007158/0.008428, allocations: 0.691 MB / 384.7 MB, free: 11.86 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.008466, allocations: 8.031 kB / 384.7 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002622/0.008728, allocations: 96.62 kB / 384.8 MB, free: 11.76 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002684/0.008997, allocations: 239.9 kB / 385 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.009019, allocations: 25.38 kB / 385.1 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.662e-05/0.009066, allocations: 36.38 kB / 385.1 MB, free: 11.44 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003664/0.009432, allocations: 329.9 kB / 385.4 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.009452, allocations: 12.08 kB / 385.4 MB, free: 11.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.378e-05/0.009476, allocations: 19.92 kB / 385.5 MB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.009487, allocations: 12 kB / 385.5 MB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000212/0.009699, allocations: 142.6 kB / 385.6 MB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001627/0.01133, allocations: 1.661 MB / 387.3 MB, free: 9.148 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004687/0.01179, allocations: 298.5 kB / 387.6 MB, free: 8.781 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.0119, allocations: 90.08 kB / 387.6 MB, free: 8.668 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.01192, allocations: 4 kB / 387.6 MB, free: 8.664 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.43e-05/0.01196, allocations: 49.27 kB / 387.7 MB, free: 8.605 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 2.785e-06/0.01196, allocations: 0 / 387.7 MB, free: 8.605 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0005017/0.01246, allocations: 221.4 kB / 387.9 MB, free: 8.383 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.362e-05/0.01255, allocations: 187.9 kB / 388.1 MB, free: 8.156 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004079/0.01295, allocations: 288.3 kB / 388.4 MB, free: 7.855 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.01297, allocations: 29.7 kB / 388.4 MB, free: 7.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.01309, allocations: 270.9 kB / 388.7 MB, free: 7.551 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.46e-05/0.01315, allocations: 107.1 kB / 388.8 MB, free: 7.445 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.432e-05/0.01322, allocations: 83.8 kB / 388.9 MB, free: 7.355 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.01334, allocations: 0.504 MB / 389.4 MB, free: 6.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.126e-05/0.01343, allocations: 48.95 kB / 389.4 MB, free: 6.789 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.01359, allocations: 277.1 kB / 389.7 MB, free: 6.418 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003702/0.01396, allocations: 367.8 kB / 390 MB, free: 5.953 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.01397, allocations: 4 kB / 390 MB, free: 5.949 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004199/0.01439, allocations: 329 kB / 390.4 MB, free: 5.621 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.01441, allocations: 15.92 kB / 390.4 MB, free: 5.605 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.487e-06/0.01442, allocations: 4 kB / 390.4 MB, free: 5.602 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.01444, allocations: 8 kB / 390.4 MB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002372/0.01467, allocations: 107.8 kB / 390.5 MB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.01469, allocations: 8.562 kB / 390.5 MB, free: 5.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.01481, allocations: 39.73 kB / 390.5 MB, free: 5.441 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.01483, allocations: 20.41 kB / 390.6 MB, free: 5.422 MB / 362.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.0001008/0.01493, allocations: 196.4 kB / 390.8 MB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.101e-05/0.01501, allocations: 35.8 kB / 390.8 MB, free: 5.184 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001464/0.01515, allocations: 87.39 kB / 390.9 MB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.01516, allocations: 4 kB / 390.9 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.01517, allocations: 4 kB / 390.9 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.01517, allocations: 3.984 kB / 390.9 MB, free: 5.082 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004025/0.01557, allocations: 248.4 kB / 391.1 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.01558, allocations: 0 / 391.1 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000285/0.01586, allocations: 83.89 kB / 391.2 MB, free: 4.723 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.01587, allocations: 8 kB / 391.2 MB, free: 4.715 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.331e-05/0.01589, allocations: 11.94 kB / 391.2 MB, free: 4.703 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.01589, allocations: 3.938 kB / 391.2 MB, free: 4.699 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.0159, allocations: 8.734 kB / 391.2 MB, free: 4.691 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004791/0.01638, allocations: 0.9655 MB / 392.2 MB, free: 3.699 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.813e-05/0.01642, allocations: 35.75 kB / 392.2 MB, free: 3.664 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.82e-05/0.01644, allocations: 11.92 kB / 392.3 MB, free: 3.652 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.0166, allocations: 8 kB / 392.3 MB, free: 3.645 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.987e-05/0.01665, allocations: 23.95 kB / 392.3 MB, free: 3.621 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.01666, allocations: 12 kB / 392.3 MB, free: 3.609 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001115/0.01677, allocations: 189.1 kB / 392.5 MB, free: 3.422 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01677, allocations: 0 / 392.5 MB, free: 3.422 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004101/0.01718, allocations: 103.8 kB / 392.6 MB, free: 3.32 MB / 362.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.0001075/0.01729, allocations: 111.7 kB / 392.7 MB, free: 3.203 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002786/0.01757, allocations: 186 kB / 392.9 MB, free: 3.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.01757, allocations: 0 / 392.9 MB, free: 3.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.389e-05/0.01765, allocations: 83.52 kB / 393 MB, free: 2.934 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005569/0.01821, allocations: 86.5 kB / 393 MB, free: 2.859 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.01962, allocations: 1.05 MB / 394.1 MB, free: 1.758 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.604e-05/0.01971, allocations: 100.6 kB / 394.2 MB, free: 1.641 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.01981, allocations: 34.95 kB / 394.2 MB, free: 1.605 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.29e-05/0.01986, allocations: 32.48 kB / 394.3 MB, free: 1.574 MB / 362.7 MB Notification: Performance of SimCode: time 9.62e-07/0.01986, allocations: 0 / 394.3 MB, free: 1.574 MB / 362.7 MB Notification: Performance of Templates: time 0.006044/0.02591, allocations: 3.195 MB / 397.4 MB, free: 14.43 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0820547258481383]