Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007934/0.0007934, allocations: 84 kB / 21.43 MB, free: 3.137 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004004/0.004004, allocations: 141.6 kB / 24.68 MB, free: 8.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8608/0.8608, allocations: 173.4 MB / 201.2 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.734e-06/1.734e-06, allocations: 3.938 kB / 319.7 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.5e-05/2.673e-05, allocations: 2.281 kB / 319.7 MB, free: 5.883 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00255/0.002576, allocations: 2.302 MB / 322 MB, free: 3.562 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007952/0.003371, allocations: 0.4913 MB / 322.5 MB, free: 3.07 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.003491, allocations: 4 kB / 322.5 MB, free: 3.066 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002255/0.003716, allocations: 55.45 kB / 322.5 MB, free: 3.012 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000118/0.003834, allocations: 91.2 kB / 322.6 MB, free: 2.922 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005308/0.004365, allocations: 199.6 kB / 322.8 MB, free: 2.727 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007845/0.00515, allocations: 0.491 MB / 323.3 MB, free: 2.234 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001567/0.005306, allocations: 52.84 kB / 323.3 MB, free: 2.18 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000231/0.005537, allocations: 287.5 kB / 323.6 MB, free: 1.898 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00021/0.005747, allocations: 207.5 kB / 323.8 MB, free: 1.695 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.39e-05/0.005791, allocations: 36 kB / 323.9 MB, free: 1.66 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001246/0.005916, allocations: 87.89 kB / 323.9 MB, free: 1.574 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.362e-05/0.005999, allocations: 95.7 kB / 324 MB, free: 1.48 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.363e-05/0.006093, allocations: 139.7 kB / 324.2 MB, free: 1.344 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004289/0.006522, allocations: 0.4985 MB / 324.7 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.006528, allocations: 11.98 kB / 324.7 MB, free: 0.832 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.00653, allocations: 0 / 324.7 MB, free: 0.832 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.006535, allocations: 0 / 324.7 MB, free: 0.832 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.0007882/0.007323, allocations: 0.5864 MB / 325.3 MB, free: 220 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.007361, allocations: 8.922 kB / 325.3 MB, free: 212 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.438e-05/0.007436, allocations: 40.7 kB / 325.3 MB, free: 172 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003616/0.007797, allocations: 222.3 kB / 325.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.619e-05/0.007833, allocations: 21.03 kB / 325.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.995e-05/0.007883, allocations: 32.38 kB / 325.6 MB, free: 15.87 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004839/0.008367, allocations: 378.5 kB / 326 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.008384, allocations: 4.141 kB / 326 MB, free: 15.49 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/0.008412, allocations: 12.38 kB / 326 MB, free: 15.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.00842, allocations: 12.38 kB / 326 MB, free: 15.47 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004807/0.008901, allocations: 402.3 kB / 326.4 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.01007, allocations: 0.9411 MB / 327.3 MB, free: 14.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003657/0.01043, allocations: 281.8 kB / 327.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00022/0.01065, allocations: 189.7 kB / 327.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.004e-05/0.01068, allocations: 4 kB / 327.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.01071, allocations: 42.5 kB / 327.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 1.744e-06/0.01071, allocations: 0 / 327.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002815/0.01352, allocations: 1.723 MB / 329.5 MB, free: 11.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.975e-05/0.01356, allocations: 55.41 kB / 329.6 MB, free: 11.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001645/0.01373, allocations: 229.7 kB / 329.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.241e-05/0.01376, allocations: 45.7 kB / 329.9 MB, free: 11.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.808e-05/0.01384, allocations: 153 kB / 330 MB, free: 11.26 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003485/0.01419, allocations: 158.7 kB / 330.2 MB, free: 11.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.01429, allocations: 98.06 kB / 330.3 MB, free: 11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.478e-05/0.01438, allocations: 342.8 kB / 330.6 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002469/0.01463, allocations: 212.8 kB / 330.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002758/0.0149, allocations: 288.2 kB / 331.1 MB, free: 10.15 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000404/0.0153, allocations: 382.7 kB / 331.5 MB, free: 9.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.01531, allocations: 4 kB / 331.5 MB, free: 9.746 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008794/0.01619, allocations: 0.6902 MB / 332.2 MB, free: 9.043 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.01621, allocations: 8 kB / 332.2 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.01622, allocations: 4 kB / 332.2 MB, free: 9.031 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005924/0.01681, allocations: 497.3 kB / 332.7 MB, free: 8.539 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.01698, allocations: 71.91 kB / 332.7 MB, free: 8.469 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008307/0.01781, allocations: 1.394 MB / 334.1 MB, free: 7.023 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002102/0.01802, allocations: 68.03 kB / 334.2 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.678e-05/0.01804, allocations: 20 kB / 334.2 MB, free: 6.938 MB / 298.7 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 (49): * Single equations (assignments): 47 * 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,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001513/0.0182, allocations: 162 kB / 334.4 MB, free: 6.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.13e-05/0.01824, allocations: 27.81 kB / 334.4 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.212e-05/0.0183, allocations: 51.25 kB / 334.4 MB, free: 6.688 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.0183, allocations: 7.938 kB / 334.5 MB, free: 6.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.01831, allocations: 3.984 kB / 334.5 MB, free: 6.676 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.01831, allocations: 0 / 334.5 MB, free: 6.676 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001575/0.01989, allocations: 1.207 MB / 335.7 MB, free: 5.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.01989, allocations: 4 kB / 335.7 MB, free: 5.406 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001537/0.02005, allocations: 63.91 kB / 335.7 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004598/0.02051, allocations: 457.5 kB / 336.2 MB, free: 4.891 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.52e-05/0.02053, allocations: 19.98 kB / 336.2 MB, free: 4.871 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009587/0.02149, allocations: 1.343 MB / 337.5 MB, free: 3.477 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.02149, allocations: 0 / 337.5 MB, free: 3.477 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.02254, allocations: 0.9486 MB / 338.5 MB, free: 2.488 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/0.02267, allocations: 79.72 kB / 338.6 MB, free: 2.41 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.678e-05/0.02272, allocations: 24.31 kB / 338.6 MB, free: 2.387 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001367/0.02286, allocations: 35.95 kB / 338.6 MB, free: 2.352 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.02299, allocations: 95.7 kB / 338.7 MB, free: 2.258 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.259e-05/0.02301, allocations: 19.98 kB / 338.7 MB, free: 2.238 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.916e-05/0.02311, allocations: 165.2 kB / 338.9 MB, free: 2.078 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.02311, allocations: 0 / 338.9 MB, free: 2.078 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003282/0.02344, allocations: 107.9 kB / 339 MB, free: 1.973 MB / 298.7 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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002099/0.02365, allocations: 139.1 kB / 339.1 MB, free: 1.828 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006935/0.02434, allocations: 490.3 kB / 339.6 MB, free: 1.355 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.02434, allocations: 0 / 339.6 MB, free: 1.355 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003409/0.02468, allocations: 276.6 kB / 339.9 MB, free: 1.086 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/0.02501, allocations: 52.64 kB / 339.9 MB, free: 1.035 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.02634, allocations: 0.9068 MB / 340.8 MB, free: 84 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001259/0.02647, allocations: 173.8 kB / 341 MB, free: 15.89 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.802e-05/0.02653, allocations: 36.48 kB / 341.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of SimCode: time 8.92e-07/0.02653, allocations: 0 / 341.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of Templates: time 0.006272/0.03281, allocations: 6.759 MB / 347.8 MB, free: 9.094 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 5.485223392024636]