Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.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.001358/0.001358, allocations: 89.22 kB / 20.69 MB, free: 1.023 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.001411/0.001411, allocations: 157.6 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.543/1.543, allocations: 177 MB / 204.1 MB, free: 9.133 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.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.284e-06/2.284e-06, allocations: 0.6094 kB / 325 MB, free: 492 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.116e-05/2.344e-05, allocations: 2.281 kB / 325 MB, free: 488 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00445/0.004474, allocations: 2.435 MB / 327.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001478/0.005952, allocations: 0.574 MB / 328 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002956/0.006248, allocations: 3.125 kB / 328 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003597/0.006607, allocations: 70.12 kB / 328.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004495/0.007057, allocations: 140.1 kB / 328.2 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004952/0.007552, allocations: 177.1 kB / 328.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000653/0.008205, allocations: 0.5151 MB / 328.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001708/0.008376, allocations: 50.28 kB / 329 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004437/0.00882, allocations: 311 kB / 329.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003756/0.009195, allocations: 215.2 kB / 329.5 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.247e-05/0.009278, allocations: 39.59 kB / 329.5 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002057/0.009483, allocations: 90.61 kB / 329.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001907/0.009674, allocations: 118.1 kB / 329.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000206/0.00988, allocations: 142.7 kB / 329.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000742/0.01062, allocations: 0.5547 MB / 330.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.01063, allocations: 0 / 330.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.01063, allocations: 0 / 330.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.01063, allocations: 0 / 330.4 MB, free: 13.22 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001424/0.01206, allocations: 0.6299 MB / 331 MB, free: 12.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.01209, allocations: 14.97 kB / 331 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.01222, allocations: 38.2 kB / 331.1 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005896/0.01281, allocations: 240.8 kB / 331.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.47e-05/0.01285, allocations: 21.78 kB / 331.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.609e-05/0.01295, allocations: 31.78 kB / 331.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009047/0.01385, allocations: 377.3 kB / 331.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.342e-05/0.01388, allocations: 13.23 kB / 331.8 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.026e-05/0.01394, allocations: 11.5 kB / 331.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.01395, allocations: 7.625 kB / 331.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008749/0.01482, allocations: 386.9 kB / 332.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002068/0.01689, allocations: 0.9479 MB / 333.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006684/0.01756, allocations: 323.4 kB / 333.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003987/0.01796, allocations: 179.4 kB / 333.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.427e-05/0.018, allocations: 8.406 kB / 333.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.542e-05/0.01804, allocations: 38.34 kB / 333.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.723e-06/0.01804, allocations: 0 / 333.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.0055/0.02354, allocations: 1.708 MB / 335.3 MB, free: 9.883 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.571e-05/0.02359, allocations: 60.12 kB / 335.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003044/0.0239, allocations: 246.9 kB / 335.6 MB, free: 9.645 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.315e-05/0.02396, allocations: 42.02 kB / 335.7 MB, free: 9.602 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.02409, allocations: 160.9 kB / 335.8 MB, free: 9.449 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000161/0.02425, allocations: 166.2 kB / 336 MB, free: 9.305 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001806/0.02443, allocations: 97.84 kB / 336.1 MB, free: 9.238 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.02461, allocations: 338.3 kB / 336.4 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004114/0.02502, allocations: 190.1 kB / 336.6 MB, free: 8.812 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005018/0.02552, allocations: 272.5 kB / 336.9 MB, free: 8.629 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007415/0.02626, allocations: 355.8 kB / 337.2 MB, free: 8.414 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.02626, allocations: 1.156 kB / 337.2 MB, free: 8.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001357/0.02762, allocations: 0.606 MB / 337.8 MB, free: 7.914 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.02764, allocations: 7.938 kB / 337.8 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.02765, allocations: 4 kB / 337.8 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008203/0.02847, allocations: 337.5 kB / 338.2 MB, free: 7.566 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000298/0.02877, allocations: 75.89 kB / 338.3 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001614/0.03038, allocations: 1.366 MB / 339.6 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004857/0.03087, allocations: 68.05 kB / 339.7 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.273e-05/0.03092, allocations: 19.98 kB / 339.7 MB, free: 5.988 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,9), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.000266/0.03119, allocations: 170.3 kB / 339.9 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.924e-05/0.03129, allocations: 39.7 kB / 339.9 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001246/0.03141, allocations: 47.61 kB / 340 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.03142, allocations: 8 kB / 340 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.218e-06/0.03143, allocations: 3.938 kB / 340 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.03144, allocations: 7.984 kB / 340 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003061/0.0345, allocations: 1.185 MB / 341.2 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.0345, allocations: 0 / 341.2 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002975/0.0348, allocations: 63.91 kB / 341.2 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006693/0.03547, allocations: 301.7 kB / 341.5 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-05/0.03553, allocations: 23.97 kB / 341.5 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00139/0.03692, allocations: 1.315 MB / 342.9 MB, free: 2.707 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.03692, allocations: 3.984 kB / 342.9 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.03886, allocations: 0.9083 MB / 343.8 MB, free: 1.762 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000196/0.03906, allocations: 75.73 kB / 343.8 MB, free: 1.688 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.153e-05/0.03915, allocations: 16 kB / 343.9 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003375/0.03949, allocations: 35.95 kB / 343.9 MB, free: 1.637 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000228/0.03971, allocations: 91.77 kB / 344 MB, free: 1.547 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.758e-05/0.03976, allocations: 27.97 kB / 344 MB, free: 1.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002103/0.03997, allocations: 177.2 kB / 344.2 MB, free: 1.348 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.03997, allocations: 0 / 344.2 MB, free: 1.348 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004818/0.04045, allocations: 99.94 kB / 344.3 MB, free: 1.25 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001582/0.04204, allocations: 411.8 kB / 344.7 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001185/0.04322, allocations: 466.1 kB / 345.1 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.04322, allocations: 0 / 345.1 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000677/0.0439, allocations: 284.2 kB / 345.4 MB, free: 236 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006006/0.0445, allocations: 68.33 kB / 345.5 MB, free: 172 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002654/0.04715, allocations: 0.9373 MB / 346.4 MB, free: 15.19 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002284/0.04738, allocations: 189.6 kB / 346.6 MB, free: 14.98 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001329/0.04752, allocations: 38.89 kB / 346.6 MB, free: 14.95 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/0.04763, allocations: 36.48 kB / 346.7 MB, free: 14.91 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.04763, allocations: 0 / 346.7 MB, free: 14.91 MB / 318.1 MB Notification: Performance of Templates: time 0.01444/0.06207, allocations: 7.381 MB / 354.1 MB, free: 7.586 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.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.613004643470049]