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.001026/0.001026, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001019/0.001019, allocations: 165 kB / 24.56 MB, free: 12 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.9983/0.9983, allocations: 177.1 MB / 205 MB, free: 5.637 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.3349/0.3349, allocations: 32.8 MB / 294.3 MB, free: 1.266 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.683e-06/1.683e-06, allocations: 0 / 376 MB, free: 4.699 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.092e-05/3.26e-05, allocations: 6.25 kB / 376 MB, free: 4.691 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004035/0.004067, allocations: 2.825 MB / 378.8 MB, free: 1.844 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.005533, allocations: 0.997 MB / 379.8 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001674/0.0057, allocations: 15.88 kB / 379.8 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001517/0.005852, allocations: 47.45 kB / 379.9 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001628/0.006015, allocations: 119 kB / 380 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004555/0.00647, allocations: 151.5 kB / 380.1 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003311/0.006801, allocations: 397.9 kB / 380.5 MB, free: 128 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.006947, allocations: 61.39 kB / 380.6 MB, free: 64 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001862/0.007133, allocations: 207.5 kB / 380.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001364/0.00727, allocations: 107.7 kB / 380.9 MB, free: 15.75 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 3.262e-05/0.007302, allocations: 24 kB / 380.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.505e-05/0.007397, allocations: 51.98 kB / 381 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 3.942e-05/0.007437, allocations: 67.67 kB / 381 MB, free: 15.61 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 8.862e-05/0.007525, allocations: 119.7 kB / 381.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002969/0.007822, allocations: 259 kB / 381.4 MB, free: 15.24 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.007825, allocations: 0 / 381.4 MB, free: 15.24 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.007826, allocations: 0 / 381.4 MB, free: 15.24 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.007832, allocations: 4 kB / 381.4 MB, free: 15.24 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.0007213/0.008554, allocations: 0.6401 MB / 382 MB, free: 14.56 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.008593, allocations: 8.031 kB / 382.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002283/0.008821, allocations: 88.67 kB / 382.1 MB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002597/0.009081, allocations: 208.9 kB / 382.3 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.009102, allocations: 25.03 kB / 382.4 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.493e-05/0.009147, allocations: 36.31 kB / 382.4 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003013/0.009448, allocations: 273 kB / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/0.009472, allocations: 16.06 kB / 382.7 MB, free: 13.86 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.302e-05/0.009495, allocations: 15.94 kB / 382.7 MB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.009507, allocations: 8 kB / 382.7 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001695/0.009677, allocations: 107.8 kB / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001266/0.01094, allocations: 1.413 MB / 384.2 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003102/0.01125, allocations: 251.5 kB / 384.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.066e-05/0.01132, allocations: 70.42 kB / 384.5 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.894e-05/0.01134, allocations: 7.938 kB / 384.6 MB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.01137, allocations: 37.39 kB / 384.6 MB, free: 11.79 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.553e-06/0.01137, allocations: 0 / 384.6 MB, free: 11.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003536/0.01172, allocations: 189.5 kB / 384.8 MB, free: 11.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.793e-05/0.01178, allocations: 162.2 kB / 384.9 MB, free: 11.4 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001564/0.01194, allocations: 258.7 kB / 385.2 MB, free: 11.12 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.01195, allocations: 33.83 kB / 385.2 MB, free: 11.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.01206, allocations: 247 kB / 385.5 MB, free: 10.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.914e-05/0.01211, allocations: 95.23 kB / 385.6 MB, free: 10.75 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.75e-05/0.01217, allocations: 67.34 kB / 385.6 MB, free: 10.67 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.01231, allocations: 0.5078 MB / 386.1 MB, free: 10.15 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.02e-05/0.01237, allocations: 31.98 kB / 386.2 MB, free: 10.12 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.01251, allocations: 245.3 kB / 386.4 MB, free: 9.793 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002398/0.01275, allocations: 305.2 kB / 386.7 MB, free: 9.406 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.01276, allocations: 4 kB / 386.7 MB, free: 9.402 MB / 362.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003109/0.01307, allocations: 281.4 kB / 387 MB, free: 9.121 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.01308, allocations: 4 kB / 387 MB, free: 9.117 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.0131, allocations: 12.03 kB / 387 MB, free: 9.105 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.01311, allocations: 4 kB / 387 MB, free: 9.102 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001621/0.01327, allocations: 91.83 kB / 387.1 MB, free: 9.012 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.01329, allocations: 15.88 kB / 387.1 MB, free: 8.996 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.435e-05/0.01337, allocations: 31.78 kB / 387.1 MB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.807e-05/0.01339, allocations: 19.98 kB / 387.1 MB, free: 8.945 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 9.909e-05/0.01349, allocations: 176.5 kB / 387.3 MB, free: 8.762 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.405e-05/0.01356, allocations: 31.86 kB / 387.4 MB, free: 8.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001245/0.01369, allocations: 87.02 kB / 387.4 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.01369, allocations: 8 kB / 387.4 MB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.0137, allocations: 3.938 kB / 387.4 MB, free: 8.629 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.0137, allocations: 0 / 387.4 MB, free: 8.629 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003347/0.01403, allocations: 236.4 kB / 387.7 MB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.01404, allocations: 0 / 387.7 MB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000174/0.01421, allocations: 60.53 kB / 387.7 MB, free: 8.305 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.01421, allocations: 7.938 kB / 387.7 MB, free: 8.297 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.926e-05/0.01423, allocations: 8.25 kB / 387.8 MB, free: 8.289 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.01424, allocations: 3.984 kB / 387.8 MB, free: 8.285 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.01424, allocations: 8 kB / 387.8 MB, free: 8.277 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004881/0.01473, allocations: 0.8164 MB / 388.6 MB, free: 7.441 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.251e-05/0.01476, allocations: 31.77 kB / 388.6 MB, free: 7.41 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.01479, allocations: 8 kB / 388.6 MB, free: 7.402 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001248/0.01492, allocations: 8 kB / 388.6 MB, free: 7.395 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.023e-05/0.01495, allocations: 19.91 kB / 388.6 MB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.905e-06/0.01495, allocations: 8 kB / 388.7 MB, free: 7.367 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.736e-05/0.01504, allocations: 177.8 kB / 388.8 MB, free: 7.195 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01504, allocations: 0 / 388.8 MB, free: 7.195 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003446/0.01539, allocations: 79.84 kB / 388.9 MB, free: 7.117 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.933e-05/0.01549, allocations: 107.2 kB / 389 MB, free: 7.004 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002273/0.01571, allocations: 155.3 kB / 389.2 MB, free: 6.848 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.01572, allocations: 0 / 389.2 MB, free: 6.848 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.441e-05/0.01578, allocations: 72.59 kB / 389.2 MB, free: 6.773 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005139/0.01629, allocations: 64.44 kB / 389.3 MB, free: 6.711 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.01768, allocations: 0.9023 MB / 390.2 MB, free: 5.758 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.01e-05/0.01776, allocations: 96.2 kB / 390.3 MB, free: 5.645 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.605e-05/0.01786, allocations: 34.95 kB / 390.3 MB, free: 5.609 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.634e-05/0.01792, allocations: 20.5 kB / 390.3 MB, free: 5.59 MB / 362.7 MB Notification: Performance of SimCode: time 4.51e-07/0.01792, allocations: 4 kB / 390.4 MB, free: 5.586 MB / 362.7 MB Notification: Performance of Templates: time 0.004934/0.02285, allocations: 2.637 MB / 393 MB, free: 3.008 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.250617939978838]