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.0009493/0.0009493, allocations: 79.73 kB / 21.97 MB, free: 2.602 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.001047/0.001047, allocations: 170.2 kB / 25.33 MB, free: 9.461 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 0.8959/0.8959, allocations: 158.6 MB / 187.2 MB, free: 2.945 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.844e-06/1.844e-06, allocations: 0 / 251 MB, free: 7.539 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.67e-05/2.855e-05, allocations: 2.312 kB / 251 MB, free: 7.535 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003178/0.003206, allocations: 2.424 MB / 253.5 MB, free: 5.094 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.004296, allocations: 0.5039 MB / 254 MB, free: 4.582 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001593/0.004456, allocations: 3.938 kB / 254 MB, free: 4.578 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002483/0.004704, allocations: 55.5 kB / 254 MB, free: 4.523 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002104/0.004914, allocations: 91.22 kB / 254.1 MB, free: 4.434 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006125/0.005527, allocations: 199.6 kB / 254.3 MB, free: 4.238 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000476/0.006003, allocations: 498.8 kB / 254.8 MB, free: 3.75 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001823/0.006185, allocations: 48.89 kB / 254.8 MB, free: 3.699 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003818/0.006567, allocations: 295.4 kB / 255.1 MB, free: 3.41 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002659/0.006833, allocations: 203.5 kB / 255.3 MB, free: 3.211 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.766e-05/0.006891, allocations: 40 kB / 255.4 MB, free: 3.172 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001763/0.007067, allocations: 79.95 kB / 255.4 MB, free: 3.094 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.007182, allocations: 99.7 kB / 255.5 MB, free: 2.996 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001448/0.007327, allocations: 139.7 kB / 255.7 MB, free: 2.859 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004791/0.007806, allocations: 374.7 kB / 256 MB, free: 2.492 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.518e-06/0.007815, allocations: 3.984 kB / 256 MB, free: 2.488 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.007818, allocations: 4 kB / 256 MB, free: 2.484 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.007827, allocations: 0 / 256 MB, free: 2.484 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.00102/0.008847, allocations: 0.6714 MB / 256.7 MB, free: 1.773 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.008897, allocations: 12.03 kB / 256.7 MB, free: 1.762 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001201/0.009017, allocations: 56.7 kB / 256.8 MB, free: 1.707 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/0.009346, allocations: 225 kB / 257 MB, free: 1.461 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.758e-05/0.009384, allocations: 25.03 kB / 257 MB, free: 1.438 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.318e-05/0.009437, allocations: 32.33 kB / 257.1 MB, free: 1.406 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005073/0.009945, allocations: 335.1 kB / 257.4 MB, free: 1.066 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.009961, allocations: 4.188 kB / 257.4 MB, free: 1.062 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.7e-05/0.009988, allocations: 8.375 kB / 257.4 MB, free: 1.055 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.01, allocations: 8.375 kB / 257.4 MB, free: 1.047 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003744/0.01038, allocations: 279.6 kB / 257.7 MB, free: 0.7773 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001239/0.01161, allocations: 0.9323 MB / 258.6 MB, free: 15.78 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003738/0.01199, allocations: 216.6 kB / 258.8 MB, free: 15.56 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001669/0.01215, allocations: 136.6 kB / 259 MB, free: 15.42 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.214e-05/0.01219, allocations: 4 kB / 259 MB, free: 15.42 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.01221, allocations: 45.33 kB / 259 MB, free: 15.36 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 1.993e-06/0.01221, allocations: 0 / 259 MB, free: 15.36 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.002339/0.01455, allocations: 1.463 MB / 260.5 MB, free: 13.83 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001715/0.01473, allocations: 63.41 kB / 260.5 MB, free: 13.76 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.0149, allocations: 276.3 kB / 260.8 MB, free: 13.47 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.539e-05/0.01494, allocations: 41.7 kB / 260.8 MB, free: 13.42 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.658e-05/0.01503, allocations: 207.6 kB / 261 MB, free: 13.21 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.733e-05/0.01512, allocations: 162.7 kB / 261.2 MB, free: 13.05 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.01524, allocations: 99.78 kB / 261.3 MB, free: 12.95 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.01537, allocations: 0.5079 MB / 261.8 MB, free: 12.43 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002023/0.01557, allocations: 144.9 kB / 262 MB, free: 12.29 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002244/0.01579, allocations: 238.9 kB / 262.2 MB, free: 12.02 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003255/0.01612, allocations: 321.3 kB / 262.5 MB, free: 11.68 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.01612, allocations: 0 / 262.5 MB, free: 11.68 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007849/0.01691, allocations: 0.5745 MB / 263.1 MB, free: 11.09 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.01693, allocations: 4 kB / 263.1 MB, free: 11.08 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.01694, allocations: 4 kB / 263.1 MB, free: 11.08 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005356/0.01747, allocations: 435.1 kB / 263.5 MB, free: 10.64 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001838/0.01766, allocations: 79.83 kB / 263.6 MB, free: 10.57 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/0.01885, allocations: 1.795 MB / 265.4 MB, free: 8.707 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001711/0.01903, allocations: 52.02 kB / 265.4 MB, free: 8.656 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.767e-05/0.01905, allocations: 19.98 kB / 265.4 MB, free: 8.637 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.0001352/0.01919, allocations: 180.5 kB / 265.6 MB, free: 8.449 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.189e-05/0.01925, allocations: 47.81 kB / 265.7 MB, free: 8.402 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.427e-05/0.0193, allocations: 47.3 kB / 265.7 MB, free: 8.359 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.01931, allocations: 11.94 kB / 265.7 MB, free: 8.348 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.01932, allocations: 0 / 265.7 MB, free: 8.348 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.01932, allocations: 4 kB / 265.7 MB, free: 8.344 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001491/0.02081, allocations: 1.136 MB / 266.9 MB, free: 7.137 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.02082, allocations: 4 kB / 266.9 MB, free: 7.133 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002472/0.02106, allocations: 55.91 kB / 266.9 MB, free: 7.078 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006502/0.02171, allocations: 419.2 kB / 267.3 MB, free: 6.66 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.597e-05/0.02176, allocations: 23.97 kB / 267.4 MB, free: 6.637 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009867/0.02275, allocations: 1.787 MB / 269.1 MB, free: 4.785 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.02275, allocations: 0 / 269.1 MB, free: 4.785 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001324/0.02407, allocations: 0.8355 MB / 270 MB, free: 3.898 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001793/0.02425, allocations: 79.73 kB / 270.1 MB, free: 3.82 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.634e-05/0.02433, allocations: 16 kB / 270.1 MB, free: 3.805 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002085/0.02454, allocations: 31.97 kB / 270.1 MB, free: 3.773 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001986/0.02474, allocations: 87.77 kB / 270.2 MB, free: 3.688 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.465e-05/0.02478, allocations: 23.97 kB / 270.2 MB, free: 3.664 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001312/0.02491, allocations: 193.1 kB / 270.4 MB, free: 3.477 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02491, allocations: 0 / 270.4 MB, free: 3.477 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005055/0.02542, allocations: 111.9 kB / 270.5 MB, free: 3.367 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.0002654/0.02568, allocations: 139.2 kB / 270.7 MB, free: 3.219 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0008857/0.02657, allocations: 401.4 kB / 271 MB, free: 2.824 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.02657, allocations: 0 / 271 MB, free: 2.824 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004324/0.02701, allocations: 237.5 kB / 271.3 MB, free: 2.59 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007978/0.0278, allocations: 77 kB / 271.3 MB, free: 2.516 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001807/0.02961, allocations: 0.8403 MB / 272.2 MB, free: 1.621 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.56e-05/0.02971, allocations: 101.3 kB / 272.3 MB, free: 1.504 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.000126/0.02983, allocations: 34.97 kB / 272.3 MB, free: 1.473 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/0.02995, allocations: 32.5 kB / 272.4 MB, free: 1.441 MB / 250.7 MB Notification: Performance of SimCode: time 1.863e-06/0.02995, allocations: 0 / 272.4 MB, free: 1.441 MB / 250.7 MB Notification: Performance of Templates: time 0.01253/0.04249, allocations: 7.954 MB / 280.3 MB, free: 9.512 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.9366555716842413]