Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.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.00142/0.00142, allocations: 77.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.001105/0.001105, allocations: 158.2 kB / 25.6 MB, free: 8.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.067/1.067, allocations: 158.6 MB / 187.5 MB, free: 2.828 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.893e-06/1.893e-06, allocations: 0 / 251.5 MB, free: 7.363 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.28e-05/2.47e-05, allocations: 2.312 kB / 251.5 MB, free: 7.359 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002717/0.002741, allocations: 2.397 MB / 253.9 MB, free: 4.941 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007915/0.003533, allocations: 0.4961 MB / 254.3 MB, free: 4.441 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.003645, allocations: 4 kB / 254.4 MB, free: 4.438 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002136/0.003858, allocations: 51.52 kB / 254.4 MB, free: 4.387 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001252/0.003984, allocations: 99.12 kB / 254.5 MB, free: 4.289 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005121/0.004496, allocations: 195.7 kB / 254.7 MB, free: 4.098 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003688/0.004864, allocations: 498.8 kB / 255.2 MB, free: 3.609 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.004995, allocations: 44.91 kB / 255.2 MB, free: 3.562 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002615/0.005257, allocations: 295.5 kB / 255.5 MB, free: 3.273 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002132/0.00547, allocations: 203.5 kB / 255.7 MB, free: 3.074 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.636e-05/0.005516, allocations: 36 kB / 255.7 MB, free: 3.039 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001331/0.005649, allocations: 91.83 kB / 255.8 MB, free: 2.949 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.167e-05/0.005731, allocations: 107.6 kB / 255.9 MB, free: 2.844 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.952e-05/0.00582, allocations: 131.7 kB / 256.1 MB, free: 2.715 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003322/0.006153, allocations: 370.8 kB / 256.4 MB, free: 2.352 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.006155, allocations: 0 / 256.4 MB, free: 2.352 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.006155, allocations: 0 / 256.4 MB, free: 2.352 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.00616, allocations: 0 / 256.4 MB, free: 2.352 MB / 234.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.0007255/0.006885, allocations: 0.6791 MB / 257.1 MB, free: 1.633 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.006923, allocations: 8.031 kB / 257.1 MB, free: 1.625 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.372e-05/0.007007, allocations: 68.64 kB / 257.2 MB, free: 1.555 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002629/0.00727, allocations: 221.1 kB / 257.4 MB, free: 1.312 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.456e-05/0.007294, allocations: 28.97 kB / 257.4 MB, free: 1.285 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.541e-05/0.00734, allocations: 36.31 kB / 257.5 MB, free: 1.25 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003374/0.007677, allocations: 287.1 kB / 257.7 MB, free: 0.957 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.007693, allocations: 8.172 kB / 257.7 MB, free: 0.9492 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.39e-05/0.007717, allocations: 8.375 kB / 257.8 MB, free: 0.9414 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.007725, allocations: 8.375 kB / 257.8 MB, free: 0.9336 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002353/0.00796, allocations: 204.3 kB / 258 MB, free: 0.7383 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.009024, allocations: 0.8862 MB / 258.9 MB, free: 15.8 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002157/0.009239, allocations: 176.6 kB / 259 MB, free: 15.61 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.009351, allocations: 104.6 kB / 259.1 MB, free: 15.51 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.119e-05/0.009382, allocations: 12 kB / 259.1 MB, free: 15.5 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.126e-05/0.009403, allocations: 45.33 kB / 259.2 MB, free: 15.44 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 1.322e-06/0.009404, allocations: 3.938 kB / 259.2 MB, free: 15.44 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.002004/0.01141, allocations: 1.249 MB / 260.4 MB, free: 14.12 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.636e-05/0.01144, allocations: 55.41 kB / 260.5 MB, free: 14.05 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.01158, allocations: 272.1 kB / 260.8 MB, free: 13.77 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.461e-05/0.01161, allocations: 45.69 kB / 260.8 MB, free: 13.72 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.845e-05/0.01169, allocations: 203.7 kB / 261 MB, free: 13.52 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.852e-05/0.01178, allocations: 162.7 kB / 261.2 MB, free: 13.36 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.01188, allocations: 103.7 kB / 261.3 MB, free: 13.25 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.01201, allocations: 0.5079 MB / 261.8 MB, free: 12.73 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/0.01215, allocations: 108.9 kB / 261.9 MB, free: 12.62 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001602/0.01231, allocations: 206.8 kB / 262.1 MB, free: 12.38 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/0.01253, allocations: 257.3 kB / 262.3 MB, free: 12.1 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.01254, allocations: 4 kB / 262.3 MB, free: 12.1 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006113/0.01315, allocations: 0.4886 MB / 262.8 MB, free: 11.59 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.01316, allocations: 11.94 kB / 262.8 MB, free: 11.58 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.01317, allocations: 0 / 262.8 MB, free: 11.58 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004364/0.01361, allocations: 419.2 kB / 263.2 MB, free: 11.16 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.01375, allocations: 71.91 kB / 263.3 MB, free: 11.09 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/0.01484, allocations: 1.748 MB / 265.1 MB, free: 9.281 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001535/0.01499, allocations: 56 kB / 265.1 MB, free: 9.227 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.349e-05/0.01502, allocations: 12 kB / 265.1 MB, free: 9.215 MB / 250.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.0001388/0.01515, allocations: 196.5 kB / 265.3 MB, free: 9.012 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.369e-05/0.01521, allocations: 39.81 kB / 265.4 MB, free: 8.973 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.615e-05/0.01526, allocations: 51.3 kB / 265.4 MB, free: 8.926 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.01527, allocations: 4 kB / 265.4 MB, free: 8.922 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.01527, allocations: 3.938 kB / 265.4 MB, free: 8.918 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.01528, allocations: 3.984 kB / 265.4 MB, free: 8.914 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001208/0.01649, allocations: 1.023 MB / 266.4 MB, free: 7.828 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.01649, allocations: 4.156 kB / 266.4 MB, free: 7.824 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001468/0.01664, allocations: 59.86 kB / 266.5 MB, free: 7.766 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004186/0.01706, allocations: 399 kB / 266.9 MB, free: 7.367 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.171e-05/0.01709, allocations: 23.97 kB / 266.9 MB, free: 7.344 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008198/0.01791, allocations: 1.744 MB / 268.7 MB, free: 5.535 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.01791, allocations: 7.938 kB / 268.7 MB, free: 5.527 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008116/0.01872, allocations: 0.7301 MB / 269.4 MB, free: 4.746 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.01883, allocations: 79.72 kB / 269.5 MB, free: 4.668 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.338e-05/0.01888, allocations: 16 kB / 269.5 MB, free: 4.652 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.01899, allocations: 27.97 kB / 269.5 MB, free: 4.625 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.01911, allocations: 87.83 kB / 269.6 MB, free: 4.539 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.502e-05/0.01914, allocations: 23.97 kB / 269.6 MB, free: 4.516 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.967e-05/0.01921, allocations: 181.1 kB / 269.8 MB, free: 4.34 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01921, allocations: 0 / 269.8 MB, free: 4.34 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002875/0.0195, allocations: 104 kB / 269.9 MB, free: 4.238 MB / 250.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.0001806/0.01968, allocations: 151.1 kB / 270.1 MB, free: 4.078 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004467/0.02013, allocations: 337.6 kB / 270.4 MB, free: 3.746 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.02013, allocations: 0 / 270.4 MB, free: 3.746 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002321/0.02036, allocations: 196.9 kB / 270.6 MB, free: 3.551 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007308/0.0211, allocations: 85.33 kB / 270.7 MB, free: 3.469 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.02226, allocations: 0.8237 MB / 271.5 MB, free: 2.594 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.437e-05/0.02233, allocations: 105.2 kB / 271.6 MB, free: 2.473 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.083e-05/0.02241, allocations: 30.97 kB / 271.6 MB, free: 2.445 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.02255, allocations: 130.2 kB / 271.7 MB, free: 2.316 MB / 250.7 MB Notification: Performance of SimCode: time 8.62e-07/0.02255, allocations: 0 / 271.7 MB, free: 2.316 MB / 250.7 MB Notification: Performance of Templates: time 0.009557/0.0321, allocations: 8.115 MB / 279.9 MB, free: 10.23 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.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.9701507380232215]