Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001483/0.001483, allocations: 80.05 kB / 20.72 MB, free: 3.77 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.00163/0.00163, allocations: 169.3 kB / 24.14 MB, free: 364 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.01/1.01, allocations: 158.6 MB / 186 MB, free: 2.75 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1812/0.1812, allocations: 32.38 MB / 270.7 MB, free: 14.59 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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",fileNamePrefix="ModelicaTest_3.2.3_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",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.825e-06/2.825e-06, allocations: 0 / 299 MB, free: 2.227 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.926e-05/4.209e-05, allocations: 2.312 kB / 299 MB, free: 2.223 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.2344/0.2344, allocations: 2.691 MB / 301.7 MB, free: 19.23 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002495/0.2369, allocations: 0.999 MB / 302.7 MB, free: 19.1 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003403/0.2373, allocations: 9.625 kB / 302.7 MB, free: 19.1 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002707/0.2375, allocations: 55.17 kB / 302.8 MB, free: 19.07 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003145/0.2379, allocations: 108.8 kB / 302.9 MB, free: 19 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007377/0.2386, allocations: 142 kB / 303 MB, free: 18.97 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005654/0.2392, allocations: 394.6 kB / 303.4 MB, free: 18.84 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002155/0.2394, allocations: 65.84 kB / 303.5 MB, free: 18.83 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003535/0.2397, allocations: 207.8 kB / 303.7 MB, free: 18.77 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002537/0.24, allocations: 106.1 kB / 303.8 MB, free: 18.74 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.096e-05/0.24, allocations: 25.41 kB / 303.8 MB, free: 18.74 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001883/0.2402, allocations: 38.62 kB / 303.9 MB, free: 18.74 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.234e-05/0.2403, allocations: 68.52 kB / 303.9 MB, free: 18.69 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001538/0.2405, allocations: 113 kB / 304 MB, free: 18.65 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005733/0.241, allocations: 259.6 kB / 304.3 MB, free: 18.53 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.043e-05/0.241, allocations: 2.672 kB / 304.3 MB, free: 18.53 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.241, allocations: 0.6562 kB / 304.3 MB, free: 18.53 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.191e-05/0.2411, allocations: 0 / 304.3 MB, free: 18.53 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0008819/0.2419, allocations: 0.5107 MB / 304.8 MB, free: 18.14 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/0.242, allocations: 9.688 kB / 304.8 MB, free: 18.14 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002956/0.2423, allocations: 63.59 kB / 304.9 MB, free: 18.14 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003185/0.2426, allocations: 194.6 kB / 305.1 MB, free: 17.97 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.175e-05/0.2426, allocations: 20.53 kB / 305.1 MB, free: 17.96 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.227e-05/0.2427, allocations: 38.09 kB / 305.1 MB, free: 17.94 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004023/0.2431, allocations: 234.5 kB / 305.3 MB, free: 17.82 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.356e-05/0.2431, allocations: 6.703 kB / 305.4 MB, free: 17.82 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.221e-05/0.2431, allocations: 19.31 kB / 305.4 MB, free: 17.81 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.389e-05/0.2432, allocations: 7.031 kB / 305.4 MB, free: 17.81 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/0.2434, allocations: 101.6 kB / 305.5 MB, free: 17.79 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.2446, allocations: 1.03 MB / 306.5 MB, free: 16.98 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003387/0.245, allocations: 184.5 kB / 306.7 MB, free: 16.84 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.868e-05/0.245, allocations: 48.69 kB / 306.7 MB, free: 16.8 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.817e-05/0.2451, allocations: 5.344 kB / 306.7 MB, free: 16.8 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/0.2451, allocations: 39.2 kB / 306.8 MB, free: 16.76 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 5.671e-06/0.2451, allocations: 2.547 kB / 306.8 MB, free: 16.76 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003629/0.2455, allocations: 142.2 kB / 306.9 MB, free: 16.71 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.779e-05/0.2455, allocations: 158.7 kB / 307.1 MB, free: 16.52 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/0.2457, allocations: 200.9 kB / 307.3 MB, free: 16.38 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.488e-05/0.2457, allocations: 35.39 kB / 307.3 MB, free: 16.34 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.944e-05/0.2458, allocations: 190.7 kB / 307.5 MB, free: 16.18 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.752e-05/0.2459, allocations: 94.3 kB / 307.6 MB, free: 16.1 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.986e-05/0.2459, allocations: 62.97 kB / 307.6 MB, free: 16.06 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.787e-05/0.246, allocations: 340.3 kB / 308 MB, free: 15.73 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.172e-05/0.2461, allocations: 25.33 kB / 308 MB, free: 15.73 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.2462, allocations: 176 kB / 308.2 MB, free: 15.55 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002273/0.2464, allocations: 246.5 kB / 308.4 MB, free: 15.34 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.2464, allocations: 1.094 kB / 308.4 MB, free: 15.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003051/0.2467, allocations: 213.6 kB / 308.6 MB, free: 15.26 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.2467, allocations: 11.25 kB / 308.6 MB, free: 15.26 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.368e-05/0.2468, allocations: 8.094 kB / 308.6 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.828e-05/0.2468, allocations: 8 kB / 308.7 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002304/0.247, allocations: 85.98 kB / 308.7 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.389e-05/0.247, allocations: 13.77 kB / 308.8 MB, free: 15.24 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/0.2471, allocations: 33.98 kB / 308.8 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/0.2472, allocations: 15.62 kB / 308.8 MB, free: 15.22 MB / 282.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.0001039/0.2473, allocations: 130.1 kB / 308.9 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.813e-05/0.2474, allocations: 24.95 kB / 309 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001466/0.2475, allocations: 79.86 kB / 309 MB, free: 15.03 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.2475, allocations: 7.5 kB / 309 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.667e-06/0.2475, allocations: 2.531 kB / 309 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.2475, allocations: 2.141 kB / 309 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000391/0.2479, allocations: 150.2 kB / 309.2 MB, free: 14.92 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.2479, allocations: 1.469 kB / 309.2 MB, free: 14.92 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002015/0.2481, allocations: 69.2 kB / 309.3 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.2481, allocations: 2.219 kB / 309.3 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.2482, allocations: 8.422 kB / 309.3 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.2482, allocations: 1.75 kB / 309.3 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.2482, allocations: 6.125 kB / 309.3 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003732/0.2485, allocations: 0.5513 MB / 309.8 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.401e-05/0.2486, allocations: 29.34 kB / 309.9 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.839e-05/0.2486, allocations: 7.844 kB / 309.9 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001364/0.2487, allocations: 7.312 kB / 309.9 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.417e-05/0.2488, allocations: 16.88 kB / 309.9 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.146e-05/0.2488, allocations: 8.797 kB / 309.9 MB, free: 14.42 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.498e-05/0.2489, allocations: 50.19 kB / 309.9 MB, free: 14.41 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2489, allocations: 0 / 309.9 MB, free: 14.41 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004452/0.2493, allocations: 86.06 kB / 310 MB, free: 14.38 MB / 282.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.0001357/0.2494, allocations: 91.8 kB / 310.1 MB, free: 14.3 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002391/0.2497, allocations: 140.4 kB / 310.3 MB, free: 14.26 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.658e-06/0.2497, allocations: 2.344 kB / 310.3 MB, free: 14.26 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.408e-05/0.2498, allocations: 60.69 kB / 310.3 MB, free: 14.24 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005196/0.2503, allocations: 70.64 kB / 310.4 MB, free: 14.22 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.2517, allocations: 0.6679 MB / 311.1 MB, free: 13.77 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.918e-05/0.2518, allocations: 92.47 kB / 311.1 MB, free: 13.7 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000149/0.2519, allocations: 29.12 kB / 311.2 MB, free: 13.7 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.252, allocations: 100.1 kB / 311.3 MB, free: 13.64 MB / 282.7 MB Notification: Performance of SimCode: time 1.363e-06/0.252, allocations: 0 / 311.3 MB, free: 13.64 MB / 282.7 MB Notification: Performance of Templates: time 0.007103/0.2591, allocations: 2.709 MB / 314 MB, free: 13.06 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.2819249080494046]