Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.000963/0.000963, allocations: 73.98 kB / 22.21 MB, free: 2.297 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.001267/0.001267, allocations: 165.2 kB / 25.61 MB, free: 8.902 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.068/1.068, allocations: 177.2 MB / 206.1 MB, free: 4.508 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.867e-05/1.996e-05, allocations: 5.266 kB / 274.2 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003357/0.003377, allocations: 2.536 MB / 276.7 MB, free: 1.891 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008671/0.004244, allocations: 0.5725 MB / 277.3 MB, free: 1.32 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.004367, allocations: 9.812 kB / 277.3 MB, free: 1.312 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002998/0.004667, allocations: 67.38 kB / 277.4 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002714/0.004938, allocations: 135.7 kB / 277.5 MB, free: 1.113 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000253/0.005191, allocations: 179.6 kB / 277.7 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004051/0.005596, allocations: 0.5224 MB / 278.2 MB, free: 420 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001405/0.005737, allocations: 48.89 kB / 278.2 MB, free: 372 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002945/0.006031, allocations: 311.5 kB / 278.5 MB, free: 60 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002796/0.006311, allocations: 207.5 kB / 278.7 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.554e-05/0.006376, allocations: 43.98 kB / 278.8 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001444/0.006521, allocations: 99.86 kB / 278.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.006657, allocations: 119.7 kB / 279 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.006776, allocations: 139.6 kB / 279.1 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004287/0.007205, allocations: 406.6 kB / 279.5 MB, free: 15.06 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.007207, allocations: 0 / 279.5 MB, free: 15.06 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.007208, allocations: 0 / 279.5 MB, free: 15.06 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.007217, allocations: 0 / 279.5 MB, free: 15.06 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.0008974/0.008114, allocations: 0.7255 MB / 280.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.008155, allocations: 15.98 kB / 280.3 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.008265, allocations: 64.7 kB / 280.3 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003056/0.008571, allocations: 244.8 kB / 280.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.189e-05/0.008603, allocations: 25.03 kB / 280.6 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.098e-05/0.008654, allocations: 32.31 kB / 280.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003852/0.009039, allocations: 278.5 kB / 280.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.009057, allocations: 4.141 kB / 280.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.284e-05/0.009089, allocations: 12.38 kB / 280.9 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.009099, allocations: 8.375 kB / 280.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002995/0.009399, allocations: 198.9 kB / 281.1 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.01055, allocations: 0.8936 MB / 282 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002861/0.01083, allocations: 211.5 kB / 282.2 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/0.01096, allocations: 95.64 kB / 282.3 MB, free: 12.13 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.545e-05/0.01099, allocations: 12 kB / 282.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.01102, allocations: 41.38 kB / 282.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.983e-06/0.01102, allocations: 4 kB / 282.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.002124/0.01314, allocations: 1.252 MB / 283.6 MB, free: 10.74 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.369e-05/0.01318, allocations: 59.91 kB / 283.7 MB, free: 10.67 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/0.01337, allocations: 280.2 kB / 284 MB, free: 10.38 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.971e-05/0.01341, allocations: 45.62 kB / 284 MB, free: 10.33 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.01351, allocations: 207.7 kB / 284.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.01362, allocations: 174.6 kB / 284.4 MB, free: 9.953 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.01374, allocations: 95.95 kB / 284.5 MB, free: 9.852 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.0139, allocations: 0.5117 MB / 285 MB, free: 9.328 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001419/0.01404, allocations: 97.23 kB / 285.1 MB, free: 9.23 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.01422, allocations: 196.4 kB / 285.3 MB, free: 9.008 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002569/0.01448, allocations: 253.2 kB / 285.5 MB, free: 8.727 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.01448, allocations: 4 kB / 285.5 MB, free: 8.723 MB / 266.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0005361/0.01502, allocations: 424.5 kB / 285.9 MB, free: 8.293 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.01503, allocations: 7.984 kB / 285.9 MB, free: 8.285 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.01504, allocations: 7.938 kB / 286 MB, free: 8.277 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003953/0.01544, allocations: 267.3 kB / 286.2 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001527/0.01559, allocations: 67.91 kB / 286.3 MB, free: 7.941 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008645/0.01646, allocations: 1.729 MB / 288 MB, free: 6.148 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001729/0.01663, allocations: 48.02 kB / 288.1 MB, free: 6.102 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.555e-05/0.01665, allocations: 19.98 kB / 288.1 MB, free: 6.082 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.000137/0.01679, allocations: 192.5 kB / 288.3 MB, free: 5.883 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.3e-05/0.01686, allocations: 51.77 kB / 288.3 MB, free: 5.832 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.307e-05/0.01693, allocations: 51.61 kB / 288.4 MB, free: 5.781 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.01693, allocations: 4 kB / 288.4 MB, free: 5.777 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.01693, allocations: 0 / 288.4 MB, free: 5.777 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.01694, allocations: 3.938 kB / 288.4 MB, free: 5.773 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001293/0.01823, allocations: 1.005 MB / 289.4 MB, free: 4.703 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.01823, allocations: 0 / 289.4 MB, free: 4.703 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001505/0.01838, allocations: 59.91 kB / 289.4 MB, free: 4.645 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003135/0.0187, allocations: 259.3 kB / 289.7 MB, free: 4.383 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.998e-05/0.01873, allocations: 27.91 kB / 289.7 MB, free: 4.355 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007645/0.01949, allocations: 1.713 MB / 291.4 MB, free: 2.578 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.01949, allocations: 4 kB / 291.4 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007948/0.02029, allocations: 0.7053 MB / 292.1 MB, free: 1.824 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.0204, allocations: 83.67 kB / 292.2 MB, free: 1.742 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.083e-05/0.02045, allocations: 16 kB / 292.2 MB, free: 1.727 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.02059, allocations: 27.97 kB / 292.3 MB, free: 1.699 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/0.02072, allocations: 95.77 kB / 292.4 MB, free: 1.605 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.572e-05/0.02074, allocations: 23.97 kB / 292.4 MB, free: 1.582 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.859e-05/0.02083, allocations: 185.1 kB / 292.6 MB, free: 1.398 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02083, allocations: 0 / 292.6 MB, free: 1.398 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002838/0.02111, allocations: 104 kB / 292.7 MB, free: 1.297 MB / 266.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.0007224/0.02184, allocations: 357.2 kB / 293 MB, free: 1.059 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000478/0.02231, allocations: 337.4 kB / 293.3 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.02232, allocations: 4 kB / 293.3 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002358/0.02255, allocations: 198 kB / 293.5 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003479/0.0229, allocations: 106.1 kB / 293.6 MB, free: 436 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001254/0.02415, allocations: 0.8882 MB / 294.5 MB, free: 15.48 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.985e-05/0.02422, allocations: 105.3 kB / 294.6 MB, free: 15.36 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.429e-05/0.02431, allocations: 30.97 kB / 294.7 MB, free: 15.32 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001526/0.02446, allocations: 138.2 kB / 294.8 MB, free: 15.19 MB / 282.7 MB Notification: Performance of SimCode: time 6.01e-07/0.02446, allocations: 0 / 294.8 MB, free: 15.19 MB / 282.7 MB Notification: Performance of Templates: time 0.009748/0.03421, allocations: 8.271 MB / 303.1 MB, free: 7.012 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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: 3.251931539736688]