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.001399/0.001399, allocations: 75.75 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.0009431/0.0009431, allocations: 166.2 kB / 25.33 MB, free: 8.602 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.9055/0.9055, allocations: 158.6 MB / 187.2 MB, free: 2.922 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 9.12e-07/9.12e-07, allocations: 0 / 251 MB, free: 7.531 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.578e-06/1.049e-05, allocations: 6.25 kB / 251 MB, free: 7.523 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002232/0.002242, allocations: 2.425 MB / 253.5 MB, free: 5.078 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006629/0.002905, allocations: 0.5078 MB / 254 MB, free: 4.566 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.972e-05/0.002985, allocations: 3.938 kB / 254 MB, free: 4.562 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.003128, allocations: 43.58 kB / 254 MB, free: 4.52 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000105/0.003233, allocations: 95.19 kB / 254.1 MB, free: 4.426 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003379/0.003571, allocations: 199.6 kB / 254.3 MB, free: 4.23 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002953/0.003866, allocations: 0.4949 MB / 254.8 MB, free: 3.734 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.367e-05/0.00396, allocations: 36.92 kB / 254.8 MB, free: 3.695 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002032/0.004163, allocations: 299.4 kB / 255.1 MB, free: 3.402 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001841/0.004347, allocations: 199.5 kB / 255.3 MB, free: 3.207 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.293e-05/0.00439, allocations: 40 kB / 255.4 MB, free: 3.168 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001029/0.004493, allocations: 91.92 kB / 255.4 MB, free: 3.078 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.187e-05/0.004565, allocations: 95.7 kB / 255.5 MB, free: 2.984 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.344e-05/0.004658, allocations: 131.7 kB / 255.7 MB, free: 2.855 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002917/0.00495, allocations: 382.7 kB / 256 MB, free: 2.48 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.593e-06/0.004951, allocations: 0 / 256 MB, free: 2.48 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.004953, allocations: 4 kB / 256 MB, free: 2.477 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.004957, allocations: 0 / 256 MB, free: 2.477 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.0006293/0.005586, allocations: 0.6675 MB / 256.7 MB, free: 1.766 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.77e-05/0.005614, allocations: 12.03 kB / 256.7 MB, free: 1.754 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.963e-05/0.005693, allocations: 60.7 kB / 256.8 MB, free: 1.695 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002058/0.005899, allocations: 229 kB / 257 MB, free: 1.445 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.33e-05/0.005923, allocations: 21.03 kB / 257 MB, free: 1.426 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.124e-05/0.005964, allocations: 32.33 kB / 257.1 MB, free: 1.395 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003774/0.006341, allocations: 327.2 kB / 257.4 MB, free: 1.062 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.006352, allocations: 8.188 kB / 257.4 MB, free: 1.055 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.216e-05/0.006374, allocations: 8.375 kB / 257.4 MB, free: 1.047 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.036e-06/0.006382, allocations: 8.375 kB / 257.4 MB, free: 1.039 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003332/0.006715, allocations: 279.6 kB / 257.7 MB, free: 0.7695 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009608/0.007676, allocations: 0.9401 MB / 258.6 MB, free: 15.77 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002628/0.007939, allocations: 216.6 kB / 258.8 MB, free: 15.54 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001546/0.008093, allocations: 136.6 kB / 259 MB, free: 15.41 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.035e-05/0.008124, allocations: 4 kB / 259 MB, free: 15.4 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.882e-05/0.008143, allocations: 41.33 kB / 259 MB, free: 15.35 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 1.182e-06/0.008144, allocations: 0 / 259 MB, free: 15.35 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.002028/0.01017, allocations: 1.471 MB / 260.5 MB, free: 13.81 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.319e-05/0.0102, allocations: 59.41 kB / 260.5 MB, free: 13.74 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.01034, allocations: 272.3 kB / 260.8 MB, free: 13.46 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.004e-05/0.01037, allocations: 41.69 kB / 260.8 MB, free: 13.41 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.726e-05/0.01045, allocations: 211.6 kB / 261 MB, free: 13.2 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.054e-05/0.01053, allocations: 158.7 kB / 261.2 MB, free: 13.04 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.01063, allocations: 99.78 kB / 261.3 MB, free: 12.94 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.01074, allocations: 0.5079 MB / 261.8 MB, free: 12.42 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001885/0.01093, allocations: 144.9 kB / 261.9 MB, free: 12.28 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002161/0.01115, allocations: 242.8 kB / 262.2 MB, free: 12 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003048/0.01145, allocations: 321.3 kB / 262.5 MB, free: 11.66 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.01146, allocations: 0 / 262.5 MB, free: 11.66 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007172/0.01217, allocations: 0.5745 MB / 263.1 MB, free: 11.07 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.01218, allocations: 4 kB / 263.1 MB, free: 11.07 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.01219, allocations: 4 kB / 263.1 MB, free: 11.06 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004659/0.01265, allocations: 439.2 kB / 263.5 MB, free: 10.62 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001481/0.0128, allocations: 71.84 kB / 263.6 MB, free: 10.55 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000767/0.01357, allocations: 1.799 MB / 265.4 MB, free: 8.691 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001486/0.01372, allocations: 56 kB / 265.4 MB, free: 8.637 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.329e-05/0.01374, allocations: 16 kB / 265.5 MB, free: 8.621 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.0001064/0.01385, allocations: 180.5 kB / 265.6 MB, free: 8.434 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.737e-05/0.0139, allocations: 47.81 kB / 265.7 MB, free: 8.387 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.342e-05/0.01395, allocations: 43.31 kB / 265.7 MB, free: 8.348 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.01395, allocations: 15.92 kB / 265.7 MB, free: 8.332 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.758e-06/0.01396, allocations: 0 / 265.7 MB, free: 8.332 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.01396, allocations: 0 / 265.7 MB, free: 8.332 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001298/0.01526, allocations: 1.136 MB / 266.9 MB, free: 7.125 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.01526, allocations: 4 kB / 266.9 MB, free: 7.121 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000135/0.0154, allocations: 51.92 kB / 266.9 MB, free: 7.07 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003974/0.01579, allocations: 423.2 kB / 267.3 MB, free: 6.648 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.62e-05/0.01582, allocations: 19.98 kB / 267.4 MB, free: 6.629 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007191/0.01654, allocations: 1.791 MB / 269.1 MB, free: 4.773 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.01654, allocations: 0 / 269.1 MB, free: 4.773 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008677/0.01741, allocations: 0.8354 MB / 270 MB, free: 3.887 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001071/0.01752, allocations: 83.75 kB / 270.1 MB, free: 3.805 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.235e-05/0.01756, allocations: 23.94 kB / 270.1 MB, free: 3.781 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.01767, allocations: 23.97 kB / 270.1 MB, free: 3.758 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.01778, allocations: 91.77 kB / 270.2 MB, free: 3.668 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.29e-05/0.01781, allocations: 19.98 kB / 270.2 MB, free: 3.648 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.781e-05/0.01789, allocations: 193.1 kB / 270.4 MB, free: 3.461 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01789, allocations: 0 / 270.4 MB, free: 3.461 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002556/0.01815, allocations: 103.9 kB / 270.5 MB, free: 3.359 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.0001596/0.01831, allocations: 139.2 kB / 270.6 MB, free: 3.211 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000562/0.01887, allocations: 409.5 kB / 271 MB, free: 2.809 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.01887, allocations: 0 / 271 MB, free: 2.809 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002698/0.01914, allocations: 241.5 kB / 271.3 MB, free: 2.57 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002889/0.01943, allocations: 69.06 kB / 271.3 MB, free: 2.504 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.02057, allocations: 0.847 MB / 272.2 MB, free: 1.605 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.503e-05/0.02063, allocations: 101.3 kB / 272.3 MB, free: 1.488 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.882e-05/0.02071, allocations: 34.97 kB / 272.3 MB, free: 1.457 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.041e-05/0.02078, allocations: 36.48 kB / 272.4 MB, free: 1.422 MB / 250.7 MB Notification: Performance of SimCode: time 4.01e-07/0.02078, allocations: 0 / 272.4 MB, free: 1.422 MB / 250.7 MB Notification: Performance of Templates: time 0.008034/0.02882, allocations: 7.346 MB / 279.7 MB, free: 10.1 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: 3.088492875918746]