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.001276/0.001276, allocations: 112.2 kB / 21.19 MB, free: 0.7578 MB / 14.72 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.001401/0.001401, allocations: 205.9 kB / 24.49 MB, free: 4.145 MB / 14.72 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.465/1.465, allocations: 230.6 MB / 258.3 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001516/0.001516, allocations: 51.92 kB / 379 MB, free: 2.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2536, allocations: 53.36 MB / 432.4 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.0042/0.2578, allocations: 2.601 MB / 435 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001138/0.259, allocations: 0.6004 MB / 435.6 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001179/0.2591, allocations: 7.938 kB / 435.6 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002857/0.2594, allocations: 63.44 kB / 435.6 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002978/0.2597, allocations: 143 kB / 435.8 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003276/0.26, allocations: 155.8 kB / 435.9 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005783/0.2606, allocations: 0.5187 MB / 436.5 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.2607, allocations: 47.58 kB / 436.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002812/0.261, allocations: 239.3 kB / 436.7 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003658/0.2614, allocations: 251.2 kB / 437 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.947e-05/0.2614, allocations: 40 kB / 437 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001743/0.2616, allocations: 95.95 kB / 437.1 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001607/0.2618, allocations: 115.6 kB / 437.2 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001994/0.262, allocations: 195.1 kB / 437.4 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006086/0.2626, allocations: 0.5072 MB / 437.9 MB, free: 1.363 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.2626, allocations: 4 kB / 437.9 MB, free: 1.359 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2626, allocations: 3.938 kB / 437.9 MB, free: 1.355 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.2626, allocations: 0 / 437.9 MB, free: 1.355 MB / 334.1 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.001326/0.2639, allocations: 0.6336 MB / 438.6 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.264, allocations: 8.031 kB / 438.6 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.2641, allocations: 44.7 kB / 438.6 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004576/0.2645, allocations: 241.9 kB / 438.9 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.292e-05/0.2645, allocations: 25.03 kB / 438.9 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.745e-05/0.2646, allocations: 28.38 kB / 438.9 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007432/0.2654, allocations: 374.5 kB / 439.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.401e-05/0.2654, allocations: 12.14 kB / 439.3 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.914e-05/0.2654, allocations: 11.94 kB / 439.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.2654, allocations: 8 kB / 439.3 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008016/0.2662, allocations: 390.4 kB / 439.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002078/0.2683, allocations: 1.103 MB / 440.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006224/0.2689, allocations: 313.2 kB / 441.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003658/0.2693, allocations: 172.8 kB / 441.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.728e-05/0.2693, allocations: 8 kB / 441.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.2694, allocations: 38.5 kB / 441.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.683e-06/0.2694, allocations: 0 / 441.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.00452/0.2739, allocations: 1.712 MB / 443 MB, free: 12.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.2739, allocations: 55.84 kB / 443.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003043/0.2742, allocations: 253 kB / 443.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.153e-05/0.2743, allocations: 41.7 kB / 443.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.2744, allocations: 161 kB / 443.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001557/0.2746, allocations: 170.6 kB / 443.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002078/0.2748, allocations: 102.2 kB / 443.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002093/0.275, allocations: 338.8 kB / 444.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004105/0.2754, allocations: 197.1 kB / 444.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004637/0.2759, allocations: 269.8 kB / 444.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006512/0.2765, allocations: 365.6 kB / 444.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.2765, allocations: 0 / 444.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001208/0.2777, allocations: 0.599 MB / 445.5 MB, free: 9.438 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.2778, allocations: 8 kB / 445.5 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.2778, allocations: 0 / 445.5 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007447/0.2785, allocations: 349.7 kB / 445.9 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002696/0.2788, allocations: 67.84 kB / 445.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001418/0.2802, allocations: 1.362 MB / 447.3 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004334/0.2806, allocations: 68.05 kB / 447.4 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.38e-05/0.2807, allocations: 19.98 kB / 447.4 MB, free: 7.516 MB / 350.1 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.0002263/0.2809, allocations: 170.3 kB / 447.6 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.672e-05/0.281, allocations: 39.7 kB / 447.6 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001246/0.2811, allocations: 55.61 kB / 447.7 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.2811, allocations: 4 kB / 447.7 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.2811, allocations: 4 kB / 447.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.2811, allocations: 3.984 kB / 447.7 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002883/0.284, allocations: 1.293 MB / 449 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.284, allocations: 0 / 449 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002808/0.2843, allocations: 67.84 kB / 449 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006167/0.2849, allocations: 301.7 kB / 449.3 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.696e-05/0.285, allocations: 23.92 kB / 449.3 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001433/0.2864, allocations: 1.319 MB / 450.7 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.2864, allocations: 0 / 450.7 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00191/0.2883, allocations: 0.9142 MB / 451.6 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002173/0.2885, allocations: 79.73 kB / 451.7 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.298e-05/0.2886, allocations: 19.98 kB / 451.7 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003047/0.2889, allocations: 35.97 kB / 451.7 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.2891, allocations: 91.75 kB / 451.8 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.985e-05/0.2892, allocations: 23.98 kB / 451.8 MB, free: 2.902 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000198/0.2894, allocations: 184.5 kB / 452 MB, free: 2.723 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2894, allocations: 0 / 452 MB, free: 2.723 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004595/0.2898, allocations: 99.94 kB / 452.1 MB, free: 2.625 MB / 350.1 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.001384/0.2912, allocations: 379.9 kB / 452.5 MB, free: 2.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001111/0.2923, allocations: 469.2 kB / 452.9 MB, free: 1.922 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.2923, allocations: 4 kB / 452.9 MB, free: 1.918 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006027/0.2929, allocations: 276.1 kB / 453.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005322/0.2935, allocations: 71.03 kB / 453.3 MB, free: 1.582 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002531/0.296, allocations: 1.08 MB / 454.4 MB, free: 464 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004549/0.2964, allocations: 0.7879 MB / 455.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/0.2966, allocations: 39.42 kB / 455.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2966, allocations: 0 / 455.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of Templates: time 0.01068/0.3072, allocations: 7.13 MB / 462.3 MB, free: 8.473 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.7647024830803275]