Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001377/0.001377, allocations: 88.52 kB / 20.68 MB, free: 1.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001422/0.001422, allocations: 158.5 kB / 23.95 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 177 MB / 204.1 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 325 MB, free: 500 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.954e-05/3.137e-05, allocations: 2.281 kB / 325 MB, free: 496 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.004853/0.004884, allocations: 2.129 MB / 327.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001871/0.006755, allocations: 0.7377 MB / 327.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001567/0.006912, allocations: 4.281 kB / 327.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.007091, allocations: 35.91 kB / 327.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003734/0.007464, allocations: 103.8 kB / 328 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005104/0.007974, allocations: 117.5 kB / 328.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005359/0.00851, allocations: 303.8 kB / 328.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000195/0.008705, allocations: 45.5 kB / 328.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003455/0.009051, allocations: 160.7 kB / 328.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002597/0.009311, allocations: 91.47 kB / 328.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.749e-05/0.009368, allocations: 20.72 kB / 328.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.548e-05/0.009433, allocations: 19.47 kB / 328.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.676e-05/0.00952, allocations: 54.78 kB / 328.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001669/0.009687, allocations: 91.41 kB / 328.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005514/0.01024, allocations: 269.2 kB / 329.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.01024, allocations: 0 / 329.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.01024, allocations: 0 / 329.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.01025, allocations: 1.906 kB / 329.2 MB, free: 13.92 MB / 302.1 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.001176/0.01143, allocations: 453.8 kB / 329.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.01148, allocations: 12.95 kB / 329.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.829e-05/0.01158, allocations: 30.56 kB / 329.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005232/0.0121, allocations: 200.8 kB / 329.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.771e-05/0.01214, allocations: 18.22 kB / 329.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.337e-05/0.0122, allocations: 27.75 kB / 329.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006056/0.01281, allocations: 227.8 kB / 330.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.301e-05/0.01284, allocations: 6.062 kB / 330.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.51e-05/0.01287, allocations: 14.5 kB / 330.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.01289, allocations: 9.5 kB / 330.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004661/0.01335, allocations: 138.8 kB / 330.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001785/0.01514, allocations: 0.9193 MB / 331.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006334/0.01577, allocations: 202.7 kB / 331.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001973/0.01597, allocations: 70.58 kB / 331.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.904e-05/0.016, allocations: 6.312 kB / 331.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.323e-05/0.01604, allocations: 38.42 kB / 331.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.753e-06/0.01604, allocations: 0 / 331.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008059/0.01685, allocations: 197.6 kB / 331.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/0.01697, allocations: 131.7 kB / 331.8 MB, free: 11.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002673/0.01724, allocations: 206.8 kB / 332 MB, free: 11.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.261e-05/0.01727, allocations: 30.92 kB / 332.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001484/0.01742, allocations: 160.1 kB / 332.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.423e-05/0.0175, allocations: 75.62 kB / 332.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.01761, allocations: 47.48 kB / 332.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.01779, allocations: 327.3 kB / 332.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001998/0.01799, allocations: 58.41 kB / 332.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002881/0.01828, allocations: 165 kB / 332.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004971/0.01878, allocations: 233.3 kB / 333.1 MB, free: 10.65 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.01878, allocations: 1.219 kB / 333.1 MB, free: 10.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006466/0.01943, allocations: 265.8 kB / 333.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.01945, allocations: 6.719 kB / 333.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.01946, allocations: 3.5 kB / 333.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.01948, allocations: 5.531 kB / 333.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003468/0.01982, allocations: 64.31 kB / 333.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.925e-05/0.01984, allocations: 13.23 kB / 333.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002019/0.02005, allocations: 22.05 kB / 333.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.995e-05/0.02008, allocations: 13.69 kB / 333.5 MB, free: 10.47 MB / 302.1 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.0001689/0.02024, allocations: 140.5 kB / 333.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.02035, allocations: 26.05 kB / 333.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.968e-05/0.02041, allocations: 25.42 kB / 333.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.02041, allocations: 2.938 kB / 333.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.02042, allocations: 1.656 kB / 333.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.02043, allocations: 5.469 kB / 333.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004269/0.02086, allocations: 185 kB / 333.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.02086, allocations: 1.562 kB / 333.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003018/0.02116, allocations: 51.97 kB / 333.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.02117, allocations: 2.844 kB / 333.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.044e-05/0.02119, allocations: 5.25 kB / 333.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.02119, allocations: 2.094 kB / 333.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.02119, allocations: 9.188 kB / 333.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007206/0.02191, allocations: 0.5266 MB / 334.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.999e-05/0.02196, allocations: 22.55 kB / 334.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.763e-05/0.022, allocations: 2.219 kB / 334.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/0.02224, allocations: 11.33 kB / 334.5 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.105e-05/0.0223, allocations: 13.58 kB / 334.5 MB, free: 9.629 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.213e-05/0.02233, allocations: 16.94 kB / 334.5 MB, free: 9.617 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001536/0.02248, allocations: 145.8 kB / 334.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.02248, allocations: 0 / 334.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005179/0.023, allocations: 63.39 kB / 334.7 MB, free: 9.492 MB / 302.1 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.0001482/0.02315, allocations: 101.5 kB / 334.8 MB, free: 9.398 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004869/0.02363, allocations: 152.8 kB / 335 MB, free: 9.332 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.02364, allocations: 0.75 kB / 335 MB, free: 9.332 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001863/0.02382, allocations: 67.95 kB / 335.1 MB, free: 9.301 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000764/0.02459, allocations: 66.11 kB / 335.1 MB, free: 9.266 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001531/0.02612, allocations: 0.6539 MB / 335.8 MB, free: 8.734 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002518/0.02637, allocations: 138.9 kB / 335.9 MB, free: 8.629 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001315/0.0265, allocations: 31.7 kB / 335.9 MB, free: 8.613 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.646e-05/0.02658, allocations: 25.28 kB / 336 MB, free: 8.602 MB / 302.1 MB Notification: Performance of SimCode: time 6.82e-07/0.02658, allocations: 0 / 336 MB, free: 8.602 MB / 302.1 MB Notification: Performance of Templates: time 0.01021/0.03679, allocations: 2.337 MB / 338.3 MB, free: 7.336 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.656929697841406]