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.0009801/0.0009801, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.0009935/0.0009935, allocations: 161 kB / 24.56 MB, free: 20 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.015/1.015, allocations: 177.2 MB / 205 MB, free: 5.289 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.2662/0.2662, allocations: 34.26 MB / 295.7 MB, free: 0.7109 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.173e-06/1.173e-06, allocations: 0 / 378 MB, free: 2.715 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.724e-05/1.842e-05, allocations: 2.312 kB / 378 MB, free: 2.711 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003193/0.003212, allocations: 3.062 MB / 381.1 MB, free: 15.63 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001176/0.004387, allocations: 1.055 MB / 382.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.004514, allocations: 7.938 kB / 382.1 MB, free: 14.56 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.004668, allocations: 71.31 kB / 382.2 MB, free: 14.49 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001488/0.004817, allocations: 134.8 kB / 382.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003745/0.005192, allocations: 175.4 kB / 382.5 MB, free: 14.19 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003268/0.005519, allocations: 481.5 kB / 383 MB, free: 13.71 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.005676, allocations: 68 kB / 383 MB, free: 13.64 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001932/0.005869, allocations: 251.5 kB / 383.3 MB, free: 13.39 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001507/0.00602, allocations: 131.6 kB / 383.4 MB, free: 13.26 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 3.797e-05/0.006058, allocations: 32 kB / 383.4 MB, free: 13.23 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.361e-05/0.006151, allocations: 47.98 kB / 383.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.715e-05/0.006199, allocations: 83.66 kB / 383.6 MB, free: 13.1 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 9.677e-05/0.006295, allocations: 139.7 kB / 383.7 MB, free: 12.96 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003054/0.006601, allocations: 310.8 kB / 384 MB, free: 12.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.006603, allocations: 0 / 384 MB, free: 12.66 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.31e-07/0.006604, allocations: 0 / 384 MB, free: 12.66 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.006609, allocations: 0 / 384 MB, free: 12.66 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.000683/0.007292, allocations: 0.6948 MB / 384.7 MB, free: 11.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.007328, allocations: 12.03 kB / 384.7 MB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000221/0.007549, allocations: 92.64 kB / 384.8 MB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002454/0.007794, allocations: 236 kB / 385 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.357e-05/0.007818, allocations: 29.38 kB / 385.1 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.915e-05/0.007867, allocations: 40.38 kB / 385.1 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000355/0.008222, allocations: 325.8 kB / 385.4 MB, free: 11.15 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.008239, allocations: 8.125 kB / 385.4 MB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.392e-05/0.008263, allocations: 19.94 kB / 385.5 MB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.008274, allocations: 8 kB / 385.5 MB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002038/0.008478, allocations: 143.8 kB / 385.6 MB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001418/0.009896, allocations: 1.657 MB / 387.3 MB, free: 9.219 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003191/0.01021, allocations: 298.5 kB / 387.6 MB, free: 8.852 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.595e-05/0.01029, allocations: 86.14 kB / 387.6 MB, free: 8.742 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.01031, allocations: 7.938 kB / 387.6 MB, free: 8.734 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.01034, allocations: 49.33 kB / 387.7 MB, free: 8.676 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.593e-06/0.01034, allocations: 0 / 387.7 MB, free: 8.676 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0003655/0.0107, allocations: 221.2 kB / 387.9 MB, free: 8.453 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.322e-05/0.01076, allocations: 183.9 kB / 388.1 MB, free: 8.23 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001529/0.01091, allocations: 284.2 kB / 388.4 MB, free: 7.934 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.01092, allocations: 25.7 kB / 388.4 MB, free: 7.902 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.956e-05/0.01102, allocations: 270.9 kB / 388.7 MB, free: 7.633 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.359e-05/0.01107, allocations: 115.2 kB / 388.8 MB, free: 7.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.792e-05/0.01114, allocations: 79.81 kB / 388.8 MB, free: 7.434 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.01125, allocations: 0.5117 MB / 389.4 MB, free: 6.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.281e-05/0.01132, allocations: 45.08 kB / 389.4 MB, free: 6.863 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/0.01148, allocations: 285.1 kB / 389.7 MB, free: 6.484 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.0118, allocations: 363.8 kB / 390 MB, free: 6.023 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.0118, allocations: 4 kB / 390 MB, free: 6.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003619/0.01216, allocations: 329.1 kB / 390.4 MB, free: 5.691 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.01218, allocations: 11.94 kB / 390.4 MB, free: 5.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.01219, allocations: 4.625 kB / 390.4 MB, free: 5.676 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.0122, allocations: 12 kB / 390.4 MB, free: 5.664 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002164/0.01242, allocations: 111.8 kB / 390.5 MB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.01243, allocations: 12.25 kB / 390.5 MB, free: 5.543 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.01253, allocations: 43.72 kB / 390.6 MB, free: 5.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.01256, allocations: 20 kB / 390.6 MB, free: 5.48 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.0001003/0.01266, allocations: 184.4 kB / 390.8 MB, free: 5.289 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.369e-05/0.01274, allocations: 39.8 kB / 390.8 MB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001136/0.01285, allocations: 83.45 kB / 390.9 MB, free: 5.164 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.01286, allocations: 4 kB / 390.9 MB, free: 5.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.01286, allocations: 4 kB / 390.9 MB, free: 5.156 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.01287, allocations: 7.984 kB / 390.9 MB, free: 5.148 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003471/0.01321, allocations: 240.4 kB / 391.1 MB, free: 4.879 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.01322, allocations: 4.75 kB / 391.1 MB, free: 4.875 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002213/0.01344, allocations: 83.89 kB / 391.2 MB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.01344, allocations: 0 / 391.2 MB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.01346, allocations: 15.92 kB / 391.2 MB, free: 4.777 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.01346, allocations: 4 kB / 391.2 MB, free: 4.773 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.01347, allocations: 7.922 kB / 391.2 MB, free: 4.766 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004684/0.01394, allocations: 0.9617 MB / 392.2 MB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.793e-05/0.01396, allocations: 43.72 kB / 392.2 MB, free: 3.734 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.456e-05/0.01399, allocations: 11.94 kB / 392.3 MB, free: 3.723 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001597/0.01415, allocations: 8 kB / 392.3 MB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.847e-05/0.01419, allocations: 19.91 kB / 392.3 MB, free: 3.695 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.0142, allocations: 15.98 kB / 392.3 MB, free: 3.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.375e-05/0.01428, allocations: 185.1 kB / 392.5 MB, free: 3.496 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01428, allocations: 0 / 392.5 MB, free: 3.496 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003568/0.01464, allocations: 111.7 kB / 392.6 MB, free: 3.387 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 7.555e-05/0.01471, allocations: 111.7 kB / 392.7 MB, free: 3.27 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000238/0.01495, allocations: 185.2 kB / 392.9 MB, free: 3.086 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.01495, allocations: 0 / 392.9 MB, free: 3.086 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.054e-05/0.01503, allocations: 81.02 kB / 393 MB, free: 3.004 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005484/0.01558, allocations: 89.2 kB / 393 MB, free: 2.922 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001424/0.01701, allocations: 1.038 MB / 394.1 MB, free: 1.832 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.438e-05/0.01708, allocations: 100.6 kB / 394.2 MB, free: 1.715 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.144e-05/0.01717, allocations: 42.94 kB / 394.2 MB, free: 1.672 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.954e-05/0.01722, allocations: 24.5 kB / 394.2 MB, free: 1.648 MB / 362.7 MB Notification: Performance of SimCode: time 7.01e-07/0.01722, allocations: 0 / 394.2 MB, free: 1.648 MB / 362.7 MB Notification: Performance of Templates: time 0.005039/0.02226, allocations: 3.034 MB / 397.3 MB, free: 14.68 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.264020507223904]