Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.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.0009539/0.0009539, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.0009323/0.0009323, allocations: 164.8 kB / 25.61 MB, free: 8.902 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 0.9184/0.9184, allocations: 177.1 MB / 206 MB, free: 4.5 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|inertia1.w|inertia2.w|inertia3.w|inertia4.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") translateModel(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|inertia1.w|inertia2.w|inertia3.w|inertia4.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.512e-06/1.512e-06, allocations: 0 / 274.2 MB, free: 4.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.705e-05/2.856e-05, allocations: 5.406 kB / 274.2 MB, free: 4.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003697/0.003725, allocations: 2.266 MB / 276.4 MB, free: 2.168 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001459/0.005185, allocations: 0.7468 MB / 277.2 MB, free: 1.422 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001598/0.005345, allocations: 7.938 kB / 277.2 MB, free: 1.414 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001543/0.005499, allocations: 35.59 kB / 277.2 MB, free: 1.379 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002962/0.005795, allocations: 87.2 kB / 277.3 MB, free: 1.293 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003454/0.00614, allocations: 119.6 kB / 277.4 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003582/0.006499, allocations: 302.5 kB / 277.7 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000155/0.006654, allocations: 44.56 kB / 277.8 MB, free: 0.832 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002209/0.006875, allocations: 171.5 kB / 277.9 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001613/0.007036, allocations: 87.7 kB / 278 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.909e-05/0.007075, allocations: 20 kB / 278.1 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.827e-05/0.007113, allocations: 20 kB / 278.1 MB, free: 0.5391 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.142e-05/0.007165, allocations: 51.77 kB / 278.1 MB, free: 500 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.53e-05/0.00726, allocations: 91.8 kB / 278.2 MB, free: 408 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002498/0.00751, allocations: 179.3 kB / 278.4 MB, free: 228 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.007512, allocations: 0 / 278.4 MB, free: 228 kB / 250.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.007513, allocations: 0 / 278.4 MB, free: 228 kB / 250.7 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.007518, allocations: 0 / 278.4 MB, free: 228 kB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0007119/0.00823, allocations: 0.5584 MB / 278.9 MB, free: 15.63 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.008267, allocations: 12.03 kB / 279 MB, free: 15.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.962e-05/0.008347, allocations: 48.75 kB / 279 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002634/0.00861, allocations: 196.9 kB / 279.2 MB, free: 15.35 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.921e-05/0.008639, allocations: 16.88 kB / 279.2 MB, free: 15.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.191e-05/0.008681, allocations: 24.31 kB / 279.2 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000317/0.008998, allocations: 212 kB / 279.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.009018, allocations: 8.125 kB / 279.5 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.026e-05/0.009038, allocations: 12.38 kB / 279.5 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.009048, allocations: 7.938 kB / 279.5 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001381/0.009186, allocations: 78.61 kB / 279.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001068/0.01025, allocations: 1.061 MB / 280.6 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002614/0.01052, allocations: 180.3 kB / 280.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.961e-05/0.01058, allocations: 50.81 kB / 280.8 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.458e-05/0.01059, allocations: 7.938 kB / 280.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.996e-05/0.01062, allocations: 49.33 kB / 280.9 MB, free: 13.49 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.563e-06/0.01062, allocations: 0 / 280.9 MB, free: 13.49 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003265/0.01095, allocations: 142.1 kB / 281 MB, free: 13.35 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.492e-05/0.01101, allocations: 132.5 kB / 281.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001643/0.01118, allocations: 242.2 kB / 281.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.01119, allocations: 29.7 kB / 281.4 MB, free: 12.9 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.0113, allocations: 222.9 kB / 281.6 MB, free: 12.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.114e-05/0.01135, allocations: 63.42 kB / 281.7 MB, free: 12.61 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.684e-05/0.01143, allocations: 59.33 kB / 281.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.01159, allocations: 0.5039 MB / 282.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.275e-05/0.01164, allocations: 27.97 kB / 282.3 MB, free: 12 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.01177, allocations: 178.9 kB / 282.5 MB, free: 11.76 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/0.01199, allocations: 218.8 kB / 282.7 MB, free: 11.48 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.012, allocations: 0 / 282.7 MB, free: 11.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002967/0.01229, allocations: 205.1 kB / 282.9 MB, free: 11.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.01231, allocations: 8.375 kB / 282.9 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.01232, allocations: 8 kB / 282.9 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.01233, allocations: 4 kB / 282.9 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002263/0.01256, allocations: 67.89 kB / 283 MB, free: 11.19 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/0.01257, allocations: 11.94 kB / 283 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001268/0.0127, allocations: 31.72 kB / 283 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.891e-05/0.01271, allocations: 12 kB / 283 MB, free: 11.13 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (32): * Single equations (assignments): 32 * 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.0001056/0.01282, allocations: 172.5 kB / 283.2 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.833e-05/0.01292, allocations: 23.91 kB / 283.2 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.631e-05/0.01296, allocations: 25.06 kB / 283.2 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.01297, allocations: 4 kB / 283.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.01297, allocations: 4 kB / 283.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.01298, allocations: 3.984 kB / 283.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003814/0.01336, allocations: 165 kB / 283.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.01336, allocations: 0 / 283.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002263/0.01359, allocations: 51.91 kB / 283.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.01359, allocations: 4 kB / 283.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.01361, allocations: 8.234 kB / 283.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.01362, allocations: 8 kB / 283.5 MB, free: 10.63 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.01362, allocations: 3.938 kB / 283.5 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004542/0.01407, allocations: 0.6496 MB / 284.1 MB, free: 9.953 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.107e-05/0.0141, allocations: 15.89 kB / 284.2 MB, free: 9.938 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.837e-05/0.01413, allocations: 4 kB / 284.2 MB, free: 9.934 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002126/0.01434, allocations: 11.94 kB / 284.2 MB, free: 9.922 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.259e-05/0.01439, allocations: 11.97 kB / 284.2 MB, free: 9.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.0144, allocations: 11.94 kB / 284.2 MB, free: 9.898 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.606e-05/0.0145, allocations: 160.4 kB / 284.3 MB, free: 9.742 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.0145, allocations: 0 / 284.3 MB, free: 9.742 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005022/0.015, allocations: 63.89 kB / 284.4 MB, free: 9.68 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,signTorque.phi,inertia2.w,linearSpeedDependentTorque.phi,inertia3.w,quadraticSpeedDependentTorque.phi,inertia4.w,inverseSpeedDependentTorque.phi) * 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 (16): * Single equations (assignments): 16 * 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.0001005/0.0151, allocations: 103.2 kB / 284.5 MB, free: 9.57 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001982/0.0153, allocations: 115.5 kB / 284.6 MB, free: 9.453 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.0153, allocations: 4 kB / 284.6 MB, free: 9.449 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.506e-05/0.01538, allocations: 55.53 kB / 284.7 MB, free: 9.391 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007107/0.01609, allocations: 59.75 kB / 284.7 MB, free: 9.336 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.01734, allocations: 0.662 MB / 285.4 MB, free: 8.629 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.196e-05/0.01742, allocations: 88.2 kB / 285.5 MB, free: 8.523 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.421e-05/0.01752, allocations: 26.28 kB / 285.5 MB, free: 8.496 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001736/0.01769, allocations: 118.2 kB / 285.6 MB, free: 8.379 MB / 266.7 MB Notification: Performance of SimCode: time 7.71e-07/0.01769, allocations: 0 / 285.6 MB, free: 8.379 MB / 266.7 MB Notification: Performance of Templates: time 0.006025/0.02371, allocations: 2.64 MB / 288.3 MB, free: 5.805 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CompareBrakingTorque/CompareBrakingTorque.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: 2.875386825762689]