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.001427/0.001427, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001525/0.001525, allocations: 168.8 kB / 24.99 MB, free: 8.793 MB / 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.044/1.044, allocations: 177.1 MB / 205.3 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] 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.2588/0.2588, allocations: 32.8 MB / 294.6 MB, free: 1.281 MB / 266.7 MB " [Timeout remaining time 180] 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.713e-06/1.713e-06, allocations: 0 / 376 MB, free: 5.039 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.386e-05/2.557e-05, allocations: 2.312 kB / 376 MB, free: 5.035 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003141/0.003167, allocations: 2.829 MB / 378.8 MB, free: 2.188 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001726/0.004893, allocations: 0.9892 MB / 379.8 MB, free: 1.195 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001663/0.005059, allocations: 11.94 kB / 379.8 MB, free: 1.184 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001604/0.00522, allocations: 59.39 kB / 379.8 MB, free: 1.125 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000162/0.005382, allocations: 107 kB / 380 MB, free: 1.02 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004818/0.005864, allocations: 155.5 kB / 380.1 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003716/0.006235, allocations: 393.9 kB / 380.5 MB, free: 492 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.006405, allocations: 65.39 kB / 380.6 MB, free: 424 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000254/0.006659, allocations: 211.5 kB / 380.8 MB, free: 212 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.006826, allocations: 111.7 kB / 380.9 MB, free: 100 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.594e-05/0.006862, allocations: 24 kB / 380.9 MB, free: 76 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001088/0.006971, allocations: 47.97 kB / 380.9 MB, free: 28 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.063e-05/0.007032, allocations: 59.77 kB / 381 MB, free: 15.97 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000106/0.007138, allocations: 115.7 kB / 381.1 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003657/0.007503, allocations: 267 kB / 381.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.007508, allocations: 7.938 kB / 381.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.00751, allocations: 0 / 381.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.211e-06/0.007516, allocations: 0 / 381.4 MB, free: 15.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: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.0006838/0.0082, allocations: 0.6324 MB / 382 MB, free: 14.92 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.008237, allocations: 8.031 kB / 382 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000266/0.008503, allocations: 84.69 kB / 382.1 MB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002695/0.008772, allocations: 216.9 kB / 382.3 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.008793, allocations: 25.03 kB / 382.3 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.922e-05/0.008843, allocations: 40.27 kB / 382.4 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003336/0.009176, allocations: 265 kB / 382.6 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.009196, allocations: 8.141 kB / 382.6 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.005e-05/0.009216, allocations: 11.94 kB / 382.7 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.009226, allocations: 8 kB / 382.7 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.009409, allocations: 119.2 kB / 382.8 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001366/0.01077, allocations: 1.421 MB / 384.2 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003418/0.01112, allocations: 243.4 kB / 384.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.137e-05/0.0112, allocations: 74.45 kB / 384.5 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.01122, allocations: 4 kB / 384.5 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.01125, allocations: 45.33 kB / 384.6 MB, free: 12.14 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 2.174e-06/0.01125, allocations: 0 / 384.6 MB, free: 12.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.000355/0.01161, allocations: 185.5 kB / 384.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.473e-05/0.01167, allocations: 170.1 kB / 384.9 MB, free: 11.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001585/0.01183, allocations: 254.7 kB / 385.2 MB, free: 11.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.01184, allocations: 29.7 kB / 385.2 MB, free: 11.44 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.01195, allocations: 251 kB / 385.4 MB, free: 11.19 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.223e-05/0.01201, allocations: 91.22 kB / 385.5 MB, free: 11.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.487e-05/0.01208, allocations: 67.36 kB / 385.6 MB, free: 11.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.01222, allocations: 0.5078 MB / 386.1 MB, free: 10.51 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.741e-05/0.01228, allocations: 35.97 kB / 386.1 MB, free: 10.47 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.01244, allocations: 233.3 kB / 386.4 MB, free: 10.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004234/0.01286, allocations: 321.1 kB / 386.7 MB, free: 9.754 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.01286, allocations: 4 kB / 386.7 MB, free: 9.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003274/0.01319, allocations: 281.2 kB / 386.9 MB, free: 9.469 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.01321, allocations: 8 kB / 387 MB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.413e-06/0.01322, allocations: 4 kB / 387 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.01323, allocations: 8 kB / 387 MB, free: 9.449 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/0.01341, allocations: 91.83 kB / 387.1 MB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.01342, allocations: 11.94 kB / 387.1 MB, free: 9.348 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.053e-05/0.01351, allocations: 27.78 kB / 387.1 MB, free: 9.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.01353, allocations: 20 kB / 387.1 MB, free: 9.301 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.0001045/0.01363, allocations: 188.7 kB / 387.3 MB, free: 9.105 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.512e-05/0.01371, allocations: 27.86 kB / 387.3 MB, free: 9.078 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001449/0.01385, allocations: 87.12 kB / 387.4 MB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.01386, allocations: 0 / 387.4 MB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.01386, allocations: 7.938 kB / 387.4 MB, free: 8.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.01387, allocations: 0.5625 kB / 387.4 MB, free: 8.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003593/0.01423, allocations: 228.4 kB / 387.6 MB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.01423, allocations: 4.25 kB / 387.6 MB, free: 8.719 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000188/0.01442, allocations: 67.97 kB / 387.7 MB, free: 8.652 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.01442, allocations: 4 kB / 387.7 MB, free: 8.648 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.958e-05/0.01444, allocations: 4 kB / 387.7 MB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.01445, allocations: 4 kB / 387.7 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.01445, allocations: 3.938 kB / 387.7 MB, free: 8.637 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004485/0.0149, allocations: 0.8195 MB / 388.5 MB, free: 7.797 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.921e-05/0.01493, allocations: 27.8 kB / 388.6 MB, free: 7.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.749e-05/0.01495, allocations: 8 kB / 388.6 MB, free: 7.762 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.01509, allocations: 4 kB / 388.6 MB, free: 7.758 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.068e-05/0.01512, allocations: 23.84 kB / 388.6 MB, free: 7.734 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.01513, allocations: 11.98 kB / 388.6 MB, free: 7.723 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.629e-05/0.01521, allocations: 177.8 kB / 388.8 MB, free: 7.551 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01521, allocations: 3.938 kB / 388.8 MB, free: 7.547 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003647/0.01558, allocations: 83.84 kB / 388.9 MB, free: 7.465 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 9.557e-05/0.01567, allocations: 99.25 kB / 389 MB, free: 7.359 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002339/0.01591, allocations: 160.1 kB / 389.1 MB, free: 7.199 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.01591, allocations: 256 / 389.1 MB, free: 7.199 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.772e-05/0.01598, allocations: 71.56 kB / 389.2 MB, free: 7.125 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005276/0.0165, allocations: 63.95 kB / 389.3 MB, free: 7.062 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/0.01787, allocations: 0.9024 MB / 390.2 MB, free: 6.109 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.36e-05/0.01796, allocations: 100.2 kB / 390.3 MB, free: 5.992 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.499e-05/0.01805, allocations: 30.95 kB / 390.3 MB, free: 5.961 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.914e-05/0.0181, allocations: 24.5 kB / 390.3 MB, free: 5.938 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.0181, allocations: 0 / 390.3 MB, free: 5.938 MB / 362.7 MB Notification: Performance of Templates: time 0.00505/0.02315, allocations: 2.495 MB / 392.8 MB, free: 3.492 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 240] 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","",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.3186451110523194]