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.0009872/0.0009872, allocations: 79.69 kB / 21.7 MB, free: 2.848 MB / 18.57 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.001058/0.001058, allocations: 157.1 kB / 24.99 MB, free: 8.215 MB / 18.57 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 0.9392/0.9392, allocations: 177 MB / 205.2 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] 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 1.492e-06/1.492e-06, allocations: 0 / 273 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.705e-05/1.854e-05, allocations: 2.312 kB / 273 MB, free: 1.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002684/0.002702, allocations: 2.569 MB / 275.6 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008852/0.003587, allocations: 0.5733 MB / 276.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.003714, allocations: 0 / 276.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002634/0.003977, allocations: 75.3 kB / 276.2 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002659/0.004243, allocations: 135 kB / 276.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002807/0.004524, allocations: 175.6 kB / 276.5 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004114/0.004935, allocations: 0.5224 MB / 277 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001395/0.005075, allocations: 48.89 kB / 277.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000267/0.005342, allocations: 315.4 kB / 277.4 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002418/0.005584, allocations: 203.5 kB / 277.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.749e-05/0.005641, allocations: 44 kB / 277.6 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001374/0.005779, allocations: 95.89 kB / 277.7 MB, free: 13 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001178/0.005896, allocations: 111.6 kB / 277.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.006046, allocations: 147.7 kB / 278 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003824/0.006428, allocations: 410.6 kB / 278.4 MB, free: 12.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.00643, allocations: 4 kB / 278.4 MB, free: 12.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.006431, allocations: 0 / 278.4 MB, free: 12.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.006438, allocations: 0 / 278.4 MB, free: 12.34 MB / 266.7 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.0008418/0.00728, allocations: 0.7217 MB / 279.1 MB, free: 11.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.007321, allocations: 12.03 kB / 279.1 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001194/0.00744, allocations: 60.7 kB / 279.2 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003092/0.007749, allocations: 252.7 kB / 279.4 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.212e-05/0.007781, allocations: 29.02 kB / 279.4 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.995e-05/0.007831, allocations: 28.38 kB / 279.5 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005222/0.008354, allocations: 310.4 kB / 279.8 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.008368, allocations: 8.141 kB / 279.8 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.77e-05/0.008395, allocations: 12.38 kB / 279.8 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.008409, allocations: 4.375 kB / 279.8 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003721/0.008781, allocations: 251.6 kB / 280 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.009906, allocations: 0.936 MB / 281 MB, free: 9.594 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003255/0.01023, allocations: 227.7 kB / 281.2 MB, free: 9.355 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001698/0.0104, allocations: 119.6 kB / 281.3 MB, free: 9.234 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.094e-05/0.01043, allocations: 8 kB / 281.3 MB, free: 9.227 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.402e-05/0.01046, allocations: 45.33 kB / 281.4 MB, free: 9.172 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.803e-06/0.01046, allocations: 0 / 281.4 MB, free: 9.172 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.002334/0.01279, allocations: 1.411 MB / 282.8 MB, free: 7.688 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.805e-05/0.01282, allocations: 55.91 kB / 282.8 MB, free: 7.621 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000183/0.013, allocations: 272.3 kB / 283.1 MB, free: 7.34 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001701/0.01317, allocations: 49.69 kB / 283.2 MB, free: 7.285 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.984e-05/0.01325, allocations: 207.6 kB / 283.4 MB, free: 7.078 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.266e-05/0.01335, allocations: 170.6 kB / 283.5 MB, free: 6.91 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.01345, allocations: 95.94 kB / 283.6 MB, free: 6.809 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.01357, allocations: 0.5118 MB / 284.1 MB, free: 6.285 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002812/0.01385, allocations: 125.2 kB / 284.2 MB, free: 6.164 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000259/0.01411, allocations: 224.5 kB / 284.5 MB, free: 5.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003093/0.01442, allocations: 281.3 kB / 284.7 MB, free: 5.602 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.01442, allocations: 4 kB / 284.7 MB, free: 5.598 MB / 266.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0006511/0.01507, allocations: 488.5 kB / 285.2 MB, free: 5.109 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.01509, allocations: 7.938 kB / 285.2 MB, free: 5.102 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.0151, allocations: 4.047 kB / 285.2 MB, free: 5.098 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000537/0.01564, allocations: 271.3 kB / 285.5 MB, free: 4.824 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002013/0.01584, allocations: 67.91 kB / 285.6 MB, free: 4.758 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009505/0.01679, allocations: 1.744 MB / 287.3 MB, free: 2.949 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001862/0.01697, allocations: 52 kB / 287.4 MB, free: 2.898 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.61e-05/0.017, allocations: 20 kB / 287.4 MB, free: 2.879 MB / 266.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 (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.000125/0.01712, allocations: 188.4 kB / 287.6 MB, free: 2.684 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.131e-05/0.0172, allocations: 55.88 kB / 287.6 MB, free: 2.629 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.918e-05/0.01726, allocations: 51.61 kB / 287.7 MB, free: 2.578 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.01726, allocations: 4 kB / 287.7 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.01727, allocations: 3.938 kB / 287.7 MB, free: 2.57 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.01727, allocations: 7.984 kB / 287.7 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002039/0.01931, allocations: 1.079 MB / 288.8 MB, free: 1.406 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.01932, allocations: 8.156 kB / 288.8 MB, free: 1.398 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001659/0.01948, allocations: 55.91 kB / 288.8 MB, free: 1.344 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004135/0.0199, allocations: 267.2 kB / 289.1 MB, free: 1.074 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.149e-05/0.01993, allocations: 15.98 kB / 289.1 MB, free: 1.059 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008289/0.02076, allocations: 1.74 MB / 290.8 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.02076, allocations: 8 kB / 290.9 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009673/0.02172, allocations: 0.7678 MB / 291.6 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.02185, allocations: 79.69 kB / 291.7 MB, free: 14.35 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.751e-05/0.02191, allocations: 24 kB / 291.7 MB, free: 14.33 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.02205, allocations: 23.97 kB / 291.7 MB, free: 14.3 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/0.02219, allocations: 99.75 kB / 291.8 MB, free: 14.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.469e-05/0.02221, allocations: 15.98 kB / 291.9 MB, free: 14.19 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001105/0.02232, allocations: 205.1 kB / 292.1 MB, free: 13.99 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.02232, allocations: 0 / 292.1 MB, free: 13.99 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003406/0.02266, allocations: 96 kB / 292.2 MB, free: 13.9 MB / 282.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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007529/0.02342, allocations: 371 kB / 292.5 MB, free: 13.62 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006325/0.02405, allocations: 373.2 kB / 292.9 MB, free: 13.26 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.02405, allocations: 0 / 292.9 MB, free: 13.26 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003577/0.02441, allocations: 226.5 kB / 293.1 MB, free: 13.04 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000367/0.02478, allocations: 96.48 kB / 293.2 MB, free: 12.94 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001345/0.02612, allocations: 0.8911 MB / 294.1 MB, free: 12 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.507e-05/0.02619, allocations: 109.2 kB / 294.2 MB, free: 11.87 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.723e-05/0.02627, allocations: 30.97 kB / 294.2 MB, free: 11.84 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.497e-05/0.02635, allocations: 36.48 kB / 294.3 MB, free: 11.8 MB / 282.7 MB Notification: Performance of SimCode: time 9.31e-07/0.02635, allocations: 0 / 294.3 MB, free: 11.8 MB / 282.7 MB Notification: Performance of Templates: time 0.008815/0.03517, allocations: 7.439 MB / 301.7 MB, free: 4.426 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] 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","",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.9756308658979833]