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.0009942/0.0009942, allocations: 88.2 kB / 20.94 MB, free: 3.609 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.0009129/0.0009129, allocations: 169 kB / 24.25 MB, free: 312 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.016/1.016, allocations: 158.6 MB / 186 MB, free: 2.938 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.1555/0.1555, allocations: 32.37 MB / 270.7 MB, free: 14.77 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 1.643e-06/1.643e-06, allocations: 3.938 kB / 347.6 MB, free: 9.812 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.488e-05/1.652e-05, allocations: 6.312 kB / 347.6 MB, free: 9.805 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.002635/0.002652, allocations: 2.723 MB / 350.4 MB, free: 7.07 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.004086, allocations: 0.9744 MB / 351.3 MB, free: 6.086 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001688/0.004254, allocations: 7.938 kB / 351.3 MB, free: 6.078 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001703/0.004425, allocations: 59.39 kB / 351.4 MB, free: 6.02 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001558/0.004581, allocations: 107 kB / 351.5 MB, free: 5.914 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004884/0.005069, allocations: 147.5 kB / 351.7 MB, free: 5.77 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003314/0.0054, allocations: 385.9 kB / 352 MB, free: 5.391 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000175/0.005575, allocations: 65.39 kB / 352.1 MB, free: 5.332 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001801/0.005755, allocations: 203.5 kB / 352.3 MB, free: 5.133 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001425/0.005898, allocations: 103.7 kB / 352.4 MB, free: 5.031 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.664e-05/0.005935, allocations: 28 kB / 352.4 MB, free: 5.004 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.987e-05/0.006034, allocations: 43.97 kB / 352.5 MB, free: 4.961 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.492e-05/0.006089, allocations: 59.77 kB / 352.5 MB, free: 4.902 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.0062, allocations: 115.7 kB / 352.6 MB, free: 4.789 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003036/0.006504, allocations: 255 kB / 352.9 MB, free: 4.539 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.006506, allocations: 4 kB / 352.9 MB, free: 4.535 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.006508, allocations: 7.938 kB / 352.9 MB, free: 4.527 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.114e-06/0.006515, allocations: 0 / 352.9 MB, free: 4.527 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.0006746/0.00719, allocations: 0.6324 MB / 353.5 MB, free: 3.859 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.007238, allocations: 8.031 kB / 353.5 MB, free: 3.852 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002492/0.007487, allocations: 76.69 kB / 353.6 MB, free: 3.777 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003062/0.007794, allocations: 216.1 kB / 353.8 MB, free: 3.539 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.49e-05/0.007828, allocations: 21.03 kB / 353.8 MB, free: 3.52 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.214e-05/0.007881, allocations: 36.38 kB / 353.9 MB, free: 3.484 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/0.008212, allocations: 257.4 kB / 354.1 MB, free: 3.203 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.802e-05/0.00824, allocations: 16.06 kB / 354.1 MB, free: 3.188 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.279e-05/0.008273, allocations: 19.94 kB / 354.2 MB, free: 3.168 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.777e-05/0.008291, allocations: 8 kB / 354.2 MB, free: 3.16 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001991/0.00849, allocations: 111.8 kB / 354.3 MB, free: 3.051 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.009717, allocations: 1.406 MB / 355.7 MB, free: 1.559 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002621/0.00998, allocations: 243.4 kB / 355.9 MB, free: 1.258 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.18e-05/0.01004, allocations: 74.47 kB / 356 MB, free: 1.164 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.01006, allocations: 11.92 kB / 356 MB, free: 1.152 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.143e-05/0.01008, allocations: 41.39 kB / 356 MB, free: 1.102 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 2.575e-06/0.01008, allocations: 0 / 356 MB, free: 1.102 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003158/0.0104, allocations: 189.4 kB / 356.2 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.989e-05/0.01044, allocations: 162.2 kB / 356.4 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.01055, allocations: 250.9 kB / 356.6 MB, free: 464 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.127e-05/0.01056, allocations: 33.7 kB / 356.7 MB, free: 424 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.413e-05/0.01064, allocations: 239.1 kB / 356.9 MB, free: 176 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.978e-05/0.01068, allocations: 91.17 kB / 357 MB, free: 84 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.73e-05/0.01073, allocations: 71.34 kB / 357.1 MB, free: 4 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.0109, allocations: 0.5079 MB / 357.6 MB, free: 15.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.078e-05/0.01097, allocations: 40.09 kB / 357.6 MB, free: 15.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001553/0.01112, allocations: 245.6 kB / 357.8 MB, free: 15.12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002543/0.01137, allocations: 301.2 kB / 358.1 MB, free: 14.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.01138, allocations: 7.938 kB / 358.2 MB, free: 14.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003149/0.0117, allocations: 280.9 kB / 358.4 MB, free: 14.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.01172, allocations: 11.94 kB / 358.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.01172, allocations: 4 kB / 358.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.359e-05/0.01175, allocations: 8 kB / 358.4 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001911/0.01194, allocations: 91.83 kB / 358.5 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.01195, allocations: 8.531 kB / 358.5 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.358e-05/0.01205, allocations: 31.78 kB / 358.6 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.007e-05/0.01207, allocations: 23.98 kB / 358.6 MB, free: 14.27 MB / 298.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.0001259/0.01219, allocations: 184.4 kB / 358.8 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.346e-05/0.01227, allocations: 31.8 kB / 358.8 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001694/0.01244, allocations: 83.08 kB / 358.9 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.01244, allocations: 4.562 kB / 358.9 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/0.01245, allocations: 4 kB / 358.9 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.01245, allocations: 0 / 358.9 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003456/0.0128, allocations: 228.4 kB / 359.1 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.0128, allocations: 256 / 359.1 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001844/0.01299, allocations: 67.97 kB / 359.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.01299, allocations: 4 kB / 359.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.01301, allocations: 11.94 kB / 359.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.01301, allocations: 7.938 kB / 359.2 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.01301, allocations: 3.984 kB / 359.2 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004329/0.01345, allocations: 0.8106 MB / 360 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.252e-05/0.01347, allocations: 19.8 kB / 360 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.546e-05/0.0135, allocations: 15.92 kB / 360.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/0.01362, allocations: 11.94 kB / 360.1 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.365e-05/0.01365, allocations: 19.97 kB / 360.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.755e-06/0.01366, allocations: 8 kB / 360.1 MB, free: 12.69 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.671e-05/0.01375, allocations: 175.9 kB / 360.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01375, allocations: 0 / 360.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003139/0.01406, allocations: 79.83 kB / 360.4 MB, free: 12.44 MB / 298.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.234e-05/0.01416, allocations: 103.2 kB / 360.5 MB, free: 12.33 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002146/0.01437, allocations: 157.4 kB / 360.6 MB, free: 12.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.01437, allocations: 0 / 360.6 MB, free: 12.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.612e-05/0.01444, allocations: 71.52 kB / 360.7 MB, free: 12.1 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005082/0.01495, allocations: 72.61 kB / 360.7 MB, free: 12.03 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001243/0.01619, allocations: 0.8905 MB / 361.6 MB, free: 11.1 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.992e-05/0.01627, allocations: 92.3 kB / 361.7 MB, free: 10.99 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.892e-05/0.01636, allocations: 34.27 kB / 361.8 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.365e-05/0.0164, allocations: 20.5 kB / 361.8 MB, free: 10.94 MB / 298.7 MB Notification: Performance of SimCode: time 9.02e-07/0.0164, allocations: 0 / 361.8 MB, free: 10.94 MB / 298.7 MB Notification: Performance of Templates: time 0.004593/0.021, allocations: 2.488 MB / 364.3 MB, free: 8.504 MB / 298.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.150417710887268]