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.0007361/0.0007361, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001184/0.00192, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0006966/0.0006966, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001058/0.001755, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 0.9908/0.9908, allocations: 177.2 MB / 189.8 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08392/1.075, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.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.343e-06/1.343e-06, allocations: 0 / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.653e-05/1.787e-05, allocations: 5.688 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002626/0.002644, allocations: 2.608 MB / 247.3 MB, free: 11.61 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009204/0.003564, allocations: 0.6003 MB / 247.9 MB, free: 11 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001119/0.003676, allocations: 7.938 kB / 247.9 MB, free: 11 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001844/0.00386, allocations: 67.36 kB / 248 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002344/0.004095, allocations: 138.9 kB / 248.1 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002833/0.004378, allocations: 175.7 kB / 248.3 MB, free: 10.62 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004037/0.004782, allocations: 0.5068 MB / 248.8 MB, free: 10.11 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.004899, allocations: 54.81 kB / 248.8 MB, free: 10.06 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003347/0.005233, allocations: 355.2 kB / 249.2 MB, free: 9.715 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002577/0.005491, allocations: 203.5 kB / 249.4 MB, free: 9.516 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.567e-05/0.005547, allocations: 40 kB / 249.4 MB, free: 9.477 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001404/0.005687, allocations: 99.86 kB / 249.5 MB, free: 9.379 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.719e-05/0.005784, allocations: 83.73 kB / 249.6 MB, free: 9.297 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.148e-05/0.005876, allocations: 99.81 kB / 249.7 MB, free: 9.199 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003334/0.006209, allocations: 350.8 kB / 250 MB, free: 8.855 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.588e-06/0.006219, allocations: 0 / 250 MB, free: 8.855 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.00622, allocations: 0 / 250 MB, free: 8.855 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.006229, allocations: 0 / 250 MB, free: 8.855 MB / 250.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.0007973/0.007027, allocations: 0.667 MB / 250.7 MB, free: 8.16 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.094e-05/0.007058, allocations: 11.98 kB / 250.7 MB, free: 8.148 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.545e-05/0.007143, allocations: 48.84 kB / 250.8 MB, free: 8.102 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002769/0.00742, allocations: 221.9 kB / 251 MB, free: 7.855 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.008e-05/0.00745, allocations: 28.97 kB / 251 MB, free: 7.824 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.735e-05/0.007497, allocations: 32.38 kB / 251 MB, free: 7.793 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003257/0.007823, allocations: 278.4 kB / 251.3 MB, free: 7.516 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.007835, allocations: 4.188 kB / 251.3 MB, free: 7.512 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.309e-05/0.007858, allocations: 8.375 kB / 251.3 MB, free: 7.504 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.007865, allocations: 8.375 kB / 251.3 MB, free: 7.496 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002268/0.008092, allocations: 171 kB / 251.5 MB, free: 7.328 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009422/0.009034, allocations: 0.7052 MB / 252.2 MB, free: 6.578 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002351/0.009269, allocations: 176 kB / 252.4 MB, free: 6.395 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.00937, allocations: 92.77 kB / 252.5 MB, free: 6.301 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.927e-05/0.009399, allocations: 7.938 kB / 252.5 MB, free: 6.293 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.00942, allocations: 38.56 kB / 252.5 MB, free: 6.246 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 1.493e-06/0.009422, allocations: 4 kB / 252.5 MB, free: 6.242 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.001947/0.01137, allocations: 1.242 MB / 253.8 MB, free: 4.941 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.574e-05/0.01139, allocations: 55.91 kB / 253.8 MB, free: 4.875 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.01153, allocations: 226.7 kB / 254 MB, free: 4.637 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.451e-05/0.01156, allocations: 45.69 kB / 254.1 MB, free: 4.586 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.362e-05/0.01162, allocations: 144.9 kB / 254.2 MB, free: 4.441 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.597e-05/0.0117, allocations: 174.6 kB / 254.4 MB, free: 4.27 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.4e-05/0.0118, allocations: 98.19 kB / 254.5 MB, free: 4.168 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.869e-05/0.01188, allocations: 342.7 kB / 254.8 MB, free: 3.824 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.01198, allocations: 81.28 kB / 254.9 MB, free: 3.746 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.01211, allocations: 157.8 kB / 255.1 MB, free: 3.566 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002079/0.01231, allocations: 241.4 kB / 255.3 MB, free: 3.305 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.01232, allocations: 0 / 255.3 MB, free: 3.305 MB / 250.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0003793/0.0127, allocations: 344.1 kB / 255.6 MB, free: 2.961 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.01271, allocations: 4 kB / 255.6 MB, free: 2.957 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.01271, allocations: 4 kB / 255.6 MB, free: 2.953 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000327/0.01304, allocations: 257.5 kB / 255.9 MB, free: 2.695 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.0132, allocations: 71.91 kB / 256 MB, free: 2.625 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005598/0.01376, allocations: 1.17 MB / 257.1 MB, free: 1.398 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001562/0.01392, allocations: 47.89 kB / 257.2 MB, free: 1.352 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.01394, allocations: 19.98 kB / 257.2 MB, free: 1.332 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 (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.0001043/0.01405, allocations: 140.5 kB / 257.3 MB, free: 1.184 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.117e-05/0.0141, allocations: 35.97 kB / 257.4 MB, free: 1.148 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.174e-05/0.01416, allocations: 59.64 kB / 257.4 MB, free: 1.086 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.01416, allocations: 4 kB / 257.4 MB, free: 1.082 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.01417, allocations: 4.062 kB / 257.4 MB, free: 1.078 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.01417, allocations: 3.938 kB / 257.4 MB, free: 1.074 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/0.01518, allocations: 0.7752 MB / 258.2 MB, free: 256 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.01518, allocations: 7.984 kB / 258.2 MB, free: 248 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.01533, allocations: 68.06 kB / 258.3 MB, free: 180 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.55e-05/0.01541, allocations: 51.78 kB / 258.3 MB, free: 128 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002755/0.01569, allocations: 241.5 kB / 258.6 MB, free: 15.88 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.805e-05/0.01572, allocations: 19.97 kB / 258.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007578/0.01648, allocations: 1.157 MB / 259.8 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.01648, allocations: 7.938 kB / 259.8 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005768/0.01706, allocations: 0.5596 MB / 260.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.162e-05/0.01711, allocations: 19.94 kB / 260.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.01722, allocations: 35.91 kB / 260.4 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.01734, allocations: 95.7 kB / 260.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.056e-05/0.01736, allocations: 19.98 kB / 260.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.014e-05/0.01742, allocations: 74.77 kB / 260.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01742, allocations: 0 / 260.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002351/0.01765, allocations: 96 kB / 260.7 MB, free: 13.71 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.00104/0.01869, allocations: 0.5033 MB / 261.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003954/0.01909, allocations: 299.5 kB / 261.5 MB, free: 13.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.199e-05/0.0191, allocations: 4 kB / 261.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002227/0.01932, allocations: 207.2 kB / 261.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004224/0.01975, allocations: 449.6 kB / 262.1 MB, free: 12.42 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/0.02163, allocations: 0.8115 MB / 262.9 MB, free: 11.55 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.034e-05/0.02169, allocations: 101.3 kB / 263 MB, free: 11.44 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.067e-05/0.02178, allocations: 34.97 kB / 263 MB, free: 11.41 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.02192, allocations: 111.3 kB / 263.2 MB, free: 11.3 MB / 266.7 MB Notification: Performance of SimCode: time 1.142e-06/0.02192, allocations: 3.938 kB / 263.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of Templates: time 0.009521/0.03144, allocations: 8.076 MB / 271.2 MB, free: 3.309 MB / 266.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.757029365748167]