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.0008272/0.0008272, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.003925/0.003925, allocations: 165.1 kB / 24.7 MB, free: 9.426 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.8366/0.8366, allocations: 177.2 MB / 205 MB, free: 5.734 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.423e-06/1.423e-06, allocations: 0 / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.468e-05/1.61e-05, allocations: 6.219 kB / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.002013/0.00203, allocations: 2.159 MB / 328 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008314/0.002861, allocations: 0.7283 MB / 328.7 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.822e-05/0.002949, allocations: 7.938 kB / 328.7 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001036/0.003053, allocations: 35.59 kB / 328.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001916/0.003244, allocations: 100.1 kB / 328.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002139/0.003458, allocations: 115.7 kB / 329 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002223/0.003681, allocations: 310.4 kB / 329.3 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.003794, allocations: 44.42 kB / 329.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001186/0.003913, allocations: 163.7 kB / 329.5 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.895e-05/0.004012, allocations: 87.7 kB / 329.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.48e-05/0.004036, allocations: 20 kB / 329.6 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.085e-05/0.004057, allocations: 20 kB / 329.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.126e-05/0.004089, allocations: 51.75 kB / 329.6 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.664e-05/0.004145, allocations: 91.77 kB / 329.7 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002061/0.004351, allocations: 267.1 kB / 330 MB, free: 11.26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.833e-06/0.004353, allocations: 0 / 330 MB, free: 11.26 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.004354, allocations: 3.938 kB / 330 MB, free: 11.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.537e-06/0.004358, allocations: 0 / 330 MB, free: 11.25 MB / 298.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.000505/0.004863, allocations: 453.7 kB / 330.4 MB, free: 10.78 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.004895, allocations: 8.031 kB / 330.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.273e-05/0.004938, allocations: 36.73 kB / 330.5 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002074/0.005146, allocations: 197.3 kB / 330.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.005163, allocations: 20.81 kB / 330.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.335e-05/0.005196, allocations: 24.38 kB / 330.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002701/0.005466, allocations: 224.1 kB / 330.9 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/0.005489, allocations: 12.14 kB / 330.9 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.005504, allocations: 4.375 kB / 330.9 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.005511, allocations: 11.94 kB / 331 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001945/0.005706, allocations: 147.8 kB / 331.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007548/0.006461, allocations: 0.916 MB / 332 MB, free: 9.082 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002507/0.006711, allocations: 202.4 kB / 332.2 MB, free: 8.848 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.753e-05/0.006789, allocations: 67.45 kB / 332.3 MB, free: 8.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.437e-05/0.006803, allocations: 4 kB / 332.3 MB, free: 8.766 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.991e-05/0.006823, allocations: 38.5 kB / 332.3 MB, free: 8.719 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.052e-06/0.006824, allocations: 0 / 332.3 MB, free: 8.719 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003301/0.007154, allocations: 202.1 kB / 332.5 MB, free: 8.516 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.644e-05/0.007201, allocations: 136.5 kB / 332.7 MB, free: 8.352 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.007316, allocations: 198.4 kB / 332.8 MB, free: 8.145 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.254e-05/0.007328, allocations: 29.7 kB / 332.9 MB, free: 8.109 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.975e-05/0.007398, allocations: 164.2 kB / 333 MB, free: 7.941 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.416e-05/0.007432, allocations: 71.39 kB / 333.1 MB, free: 7.871 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.733e-05/0.00748, allocations: 49.7 kB / 333.2 MB, free: 7.816 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.519e-05/0.007555, allocations: 330.8 kB / 333.5 MB, free: 7.484 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.037e-05/0.007635, allocations: 55.97 kB / 333.5 MB, free: 7.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.007753, allocations: 165.6 kB / 333.7 MB, free: 7.219 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002049/0.007957, allocations: 229.5 kB / 333.9 MB, free: 6.945 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.00796, allocations: 4 kB / 333.9 MB, free: 6.941 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002621/0.008223, allocations: 257.5 kB / 334.2 MB, free: 6.684 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.008235, allocations: 7.984 kB / 334.2 MB, free: 6.676 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.008241, allocations: 7.938 kB / 334.2 MB, free: 6.668 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.008254, allocations: 8 kB / 334.2 MB, free: 6.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001425/0.008397, allocations: 63.91 kB / 334.3 MB, free: 6.598 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.565e-06/0.008404, allocations: 11.88 kB / 334.3 MB, free: 6.586 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.909e-05/0.008473, allocations: 19.89 kB / 334.3 MB, free: 6.566 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.008488, allocations: 19.98 kB / 334.3 MB, free: 6.547 MB / 298.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 7.66e-05/0.008565, allocations: 141.7 kB / 334.5 MB, free: 6.398 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.866e-05/0.008613, allocations: 23.92 kB / 334.5 MB, free: 6.375 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.858e-05/0.008642, allocations: 21.02 kB / 334.5 MB, free: 6.359 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.008644, allocations: 4 kB / 334.5 MB, free: 6.355 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.008649, allocations: 256 / 334.5 MB, free: 6.355 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.008653, allocations: 7.938 kB / 334.5 MB, free: 6.348 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002294/0.008883, allocations: 189.2 kB / 334.7 MB, free: 6.133 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.008884, allocations: 0 / 334.7 MB, free: 6.133 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000137/0.009021, allocations: 55.91 kB / 334.7 MB, free: 6.078 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.009023, allocations: 4 kB / 334.7 MB, free: 6.074 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.009035, allocations: 3.984 kB / 334.8 MB, free: 6.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.009037, allocations: 4 kB / 334.8 MB, free: 6.066 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.009038, allocations: 4 kB / 334.8 MB, free: 6.062 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003391/0.009377, allocations: 0.5254 MB / 335.3 MB, free: 5.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.239e-05/0.009399, allocations: 23.78 kB / 335.3 MB, free: 5.496 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.792e-05/0.009417, allocations: 4 kB / 335.3 MB, free: 5.492 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.009529, allocations: 8 kB / 335.3 MB, free: 5.484 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.804e-05/0.009567, allocations: 19.84 kB / 335.3 MB, free: 5.465 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-06/0.009575, allocations: 8 kB / 335.3 MB, free: 5.457 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.292e-05/0.009648, allocations: 144.2 kB / 335.5 MB, free: 5.316 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009648, allocations: 0 / 335.5 MB, free: 5.316 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002708/0.009919, allocations: 67.89 kB / 335.6 MB, free: 5.25 MB / 298.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 6.652e-05/0.009985, allocations: 99.19 kB / 335.7 MB, free: 5.141 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002051/0.01019, allocations: 147.7 kB / 335.8 MB, free: 4.996 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.01019, allocations: 0.75 kB / 335.8 MB, free: 4.996 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.851e-05/0.01027, allocations: 59.91 kB / 335.9 MB, free: 4.938 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000408/0.01068, allocations: 60.86 kB / 335.9 MB, free: 4.883 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007208/0.0114, allocations: 0.694 MB / 336.6 MB, free: 4.145 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.949e-05/0.01149, allocations: 142.1 kB / 336.7 MB, free: 3.988 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.315e-05/0.01153, allocations: 24.5 kB / 336.8 MB, free: 3.965 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01153, allocations: 0 / 336.8 MB, free: 3.965 MB / 298.7 MB Notification: Performance of Templates: time 0.00286/0.01439, allocations: 2.971 MB / 339.7 MB, free: 0.9961 MB / 298.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.658757051452994]