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.0008023/0.0008023, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009354/0.001738, allocations: 449.7 kB / 10.37 MB, free: 328 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.0006889/0.0006889, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008808/0.00157, allocations: 455.6 kB / 11.71 MB, free: 2.461 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.9172/0.9172, allocations: 177.2 MB / 189.6 MB, free: 5.301 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09952/1.017, allocations: 53.65 MB / 243.3 MB, free: 15.57 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.373e-06/1.373e-06, allocations: 0 / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.984e-05/2.121e-05, allocations: 2.312 kB / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002707/0.002728, allocations: 2.608 MB / 247.1 MB, free: 11.7 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007416/0.003469, allocations: 0.6004 MB / 247.7 MB, free: 11.1 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001002/0.00357, allocations: 7.938 kB / 247.7 MB, free: 11.09 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001855/0.003755, allocations: 67.36 kB / 247.8 MB, free: 11.02 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002016/0.003957, allocations: 143 kB / 247.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002134/0.00417, allocations: 167.8 kB / 248.1 MB, free: 10.72 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003475/0.004518, allocations: 0.5069 MB / 248.6 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.004637, allocations: 54.77 kB / 248.7 MB, free: 10.16 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002747/0.004911, allocations: 347.2 kB / 249 MB, free: 9.82 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002188/0.00513, allocations: 211.5 kB / 249.2 MB, free: 9.613 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.966e-05/0.00518, allocations: 40 kB / 249.2 MB, free: 9.574 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001194/0.005299, allocations: 91.92 kB / 249.3 MB, free: 9.484 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.758e-05/0.005397, allocations: 83.78 kB / 249.4 MB, free: 9.402 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.515e-05/0.005492, allocations: 107.8 kB / 249.5 MB, free: 9.297 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003337/0.005826, allocations: 350.8 kB / 249.9 MB, free: 8.953 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.307e-05/0.005839, allocations: 0 / 249.9 MB, free: 8.953 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.00584, allocations: 0 / 249.9 MB, free: 8.953 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.15e-05/0.005851, allocations: 0 / 249.9 MB, free: 8.953 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.0007681/0.006619, allocations: 0.667 MB / 250.5 MB, free: 8.258 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.924e-05/0.006648, allocations: 11.98 kB / 250.5 MB, free: 8.246 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.317e-05/0.006722, allocations: 48.89 kB / 250.6 MB, free: 8.199 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002511/0.006973, allocations: 213.9 kB / 250.8 MB, free: 7.961 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.645e-05/0.006999, allocations: 25.03 kB / 250.8 MB, free: 7.934 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.158e-05/0.007041, allocations: 28.38 kB / 250.8 MB, free: 7.906 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002983/0.007339, allocations: 274.4 kB / 251.1 MB, free: 7.633 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.007353, allocations: 8.172 kB / 251.1 MB, free: 7.625 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.509e-05/0.007378, allocations: 12.38 kB / 251.1 MB, free: 7.613 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.007385, allocations: 8.375 kB / 251.1 MB, free: 7.605 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002337/0.007618, allocations: 178.9 kB / 251.3 MB, free: 7.43 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009135/0.008532, allocations: 0.7092 MB / 252 MB, free: 6.68 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002203/0.008752, allocations: 175.2 kB / 252.2 MB, free: 6.496 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.696e-05/0.008849, allocations: 92.72 kB / 252.3 MB, free: 6.402 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/0.008878, allocations: 4 kB / 252.3 MB, free: 6.398 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.9e-05/0.008897, allocations: 38.56 kB / 252.3 MB, free: 6.352 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 1.383e-06/0.008899, allocations: 0 / 252.3 MB, free: 6.352 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.001798/0.0107, allocations: 1.209 MB / 253.5 MB, free: 5.086 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.502e-05/0.01072, allocations: 55.91 kB / 253.6 MB, free: 5.02 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001321/0.01085, allocations: 226.7 kB / 253.8 MB, free: 4.785 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.092e-05/0.01088, allocations: 37.7 kB / 253.9 MB, free: 4.742 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.974e-05/0.01094, allocations: 148.9 kB / 254 MB, free: 4.594 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.739e-05/0.01103, allocations: 170.6 kB / 254.2 MB, free: 4.426 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.263e-05/0.01112, allocations: 98.23 kB / 254.3 MB, free: 4.324 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.081e-05/0.01122, allocations: 350.7 kB / 254.6 MB, free: 3.973 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/0.01132, allocations: 81.28 kB / 254.7 MB, free: 3.895 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001268/0.01145, allocations: 157.8 kB / 254.8 MB, free: 3.715 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002198/0.01167, allocations: 229.5 kB / 255.1 MB, free: 3.465 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.01167, allocations: 0 / 255.1 MB, free: 3.465 MB / 250.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0003698/0.01204, allocations: 344.1 kB / 255.4 MB, free: 3.113 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.01205, allocations: 8.031 kB / 255.4 MB, free: 3.105 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.01206, allocations: 4 kB / 255.4 MB, free: 3.102 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003363/0.01239, allocations: 261.4 kB / 255.7 MB, free: 2.84 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001565/0.01255, allocations: 75.91 kB / 255.7 MB, free: 2.766 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005488/0.0131, allocations: 1.159 MB / 256.9 MB, free: 1.551 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001481/0.01325, allocations: 59.94 kB / 257 MB, free: 1.492 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.094e-05/0.01327, allocations: 12 kB / 257 MB, free: 1.48 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.0001051/0.01337, allocations: 144.5 kB / 257.1 MB, free: 1.328 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.7e-05/0.01343, allocations: 35.97 kB / 257.1 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.81e-05/0.01349, allocations: 47.62 kB / 257.2 MB, free: 1.242 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.706e-06/0.01349, allocations: 8 kB / 257.2 MB, free: 1.234 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.01349, allocations: 0 / 257.2 MB, free: 1.234 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.0135, allocations: 11.92 kB / 257.2 MB, free: 1.223 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001004/0.0145, allocations: 0.7829 MB / 258 MB, free: 400 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.01451, allocations: 4.062 kB / 258 MB, free: 396 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001519/0.01466, allocations: 63.97 kB / 258.1 MB, free: 332 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.672e-05/0.01475, allocations: 59.86 kB / 258.1 MB, free: 272 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002765/0.01502, allocations: 245.5 kB / 258.4 MB, free: 20 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/0.01505, allocations: 15.98 kB / 258.4 MB, free: 4 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005329/0.01558, allocations: 1.165 MB / 259.5 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.01558, allocations: 0 / 259.5 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005654/0.01615, allocations: 0.5523 MB / 260.1 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.789e-05/0.01619, allocations: 23.94 kB / 260.1 MB, free: 14.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.01631, allocations: 27.97 kB / 260.1 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.01643, allocations: 95.77 kB / 260.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.971e-05/0.01645, allocations: 15.98 kB / 260.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.527e-05/0.0165, allocations: 74.78 kB / 260.3 MB, free: 13.96 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.0165, allocations: 0 / 260.3 MB, free: 13.96 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002331/0.01673, allocations: 99.98 kB / 260.4 MB, free: 13.86 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.00102/0.01775, allocations: 0.495 MB / 260.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003703/0.01812, allocations: 286.9 kB / 261.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/0.01814, allocations: 12 kB / 261.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001823/0.01832, allocations: 183.1 kB / 261.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.0186, allocations: 132.2 kB / 261.5 MB, free: 12.99 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001572/0.02017, allocations: 0.8276 MB / 262.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.866e-05/0.02023, allocations: 105.3 kB / 262.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.54e-05/0.02032, allocations: 26.98 kB / 262.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001308/0.02045, allocations: 111.3 kB / 262.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of SimCode: time 7.41e-07/0.02045, allocations: 4 kB / 262.6 MB, free: 11.85 MB / 266.7 MB Notification: Performance of Templates: time 0.008991/0.02944, allocations: 8.163 MB / 270.7 MB, free: 3.777 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7024639043956995]