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.001619/0.001619, allocations: 84.3 kB / 20.68 MB, free: 1.035 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.001742/0.001742, allocations: 168.8 kB / 23.95 MB, free: 4.172 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.441/1.441, allocations: 177.1 MB / 204.3 MB, free: 9.176 MB / 190.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 1.793e-06/1.793e-06, allocations: 0 / 325 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.361e-05/2.541e-05, allocations: 5.375 kB / 325 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003849/0.003874, allocations: 2.444 MB / 327.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.005114, allocations: 0.5693 MB / 328.1 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001304/0.005245, allocations: 7.25 kB / 328.1 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002988/0.005544, allocations: 70.94 kB / 328.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003526/0.005896, allocations: 140.2 kB / 328.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004004/0.006297, allocations: 171.2 kB / 328.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005918/0.006888, allocations: 0.5154 MB / 329 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001488/0.007037, allocations: 54.73 kB / 329 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004348/0.007472, allocations: 310.2 kB / 329.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003565/0.007828, allocations: 215.4 kB / 329.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.612e-05/0.007914, allocations: 40.31 kB / 329.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002086/0.008123, allocations: 91.39 kB / 329.6 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001998/0.008323, allocations: 121.2 kB / 329.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002179/0.008541, allocations: 139 kB / 329.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00086/0.009401, allocations: 0.5486 MB / 330.4 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.009405, allocations: 0 / 330.4 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.009406, allocations: 0 / 330.4 MB, free: 13.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.074e-06/0.009413, allocations: 1.094 kB / 330.5 MB, free: 13.32 MB / 302.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.001558/0.01097, allocations: 0.6329 MB / 331.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.01101, allocations: 13.28 kB / 331.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.01113, allocations: 43.45 kB / 331.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004381/0.01157, allocations: 239.6 kB / 331.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.536e-05/0.01161, allocations: 22.47 kB / 331.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.318e-05/0.01169, allocations: 32.47 kB / 331.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008391/0.01253, allocations: 377.3 kB / 331.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/0.01255, allocations: 5.359 kB / 331.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.183e-05/0.0126, allocations: 14.8 kB / 331.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.01261, allocations: 7.562 kB / 331.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009355/0.01355, allocations: 388.1 kB / 332.2 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00213/0.01568, allocations: 0.9471 MB / 333.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006842/0.01636, allocations: 316.9 kB / 333.5 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003963/0.01676, allocations: 179.3 kB / 333.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.619e-05/0.01681, allocations: 9.25 kB / 333.6 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.249e-05/0.01685, allocations: 36.94 kB / 333.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 4.178e-06/0.01685, allocations: 3.984 kB / 333.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.005137/0.02199, allocations: 1.705 MB / 335.4 MB, free: 9.988 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.133e-05/0.02204, allocations: 61.31 kB / 335.4 MB, free: 9.922 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003149/0.02236, allocations: 249.5 kB / 335.7 MB, free: 9.746 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.707e-05/0.02242, allocations: 42.64 kB / 335.7 MB, free: 9.703 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.02255, allocations: 156.5 kB / 335.9 MB, free: 9.555 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/0.02271, allocations: 166.7 kB / 336 MB, free: 9.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001766/0.02288, allocations: 101.8 kB / 336.1 MB, free: 9.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.02305, allocations: 343 kB / 336.5 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004259/0.02348, allocations: 189.5 kB / 336.7 MB, free: 8.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005073/0.02398, allocations: 272.4 kB / 336.9 MB, free: 8.727 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007001/0.02468, allocations: 359.5 kB / 337.3 MB, free: 8.508 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.02469, allocations: 1.125 kB / 337.3 MB, free: 8.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001358/0.02604, allocations: 0.6066 MB / 337.9 MB, free: 8.031 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.02607, allocations: 7.938 kB / 337.9 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.02608, allocations: 4 kB / 337.9 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008013/0.02688, allocations: 337.6 kB / 338.2 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000292/0.02717, allocations: 71.91 kB / 338.3 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001557/0.02873, allocations: 1.358 MB / 339.7 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004783/0.0292, allocations: 72.03 kB / 339.7 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.68e-05/0.02925, allocations: 16 kB / 339.7 MB, free: 6.117 MB / 302.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.0002645/0.02952, allocations: 177.5 kB / 339.9 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.344e-05/0.02961, allocations: 35.7 kB / 340 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001255/0.02973, allocations: 51.62 kB / 340 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.02974, allocations: 4 kB / 340 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/0.02976, allocations: 7.922 kB / 340 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.02976, allocations: 0 / 340 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00291/0.03267, allocations: 1.188 MB / 341.2 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.03268, allocations: 0 / 341.2 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002838/0.03296, allocations: 68 kB / 341.3 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006738/0.03363, allocations: 301.5 kB / 341.6 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.836e-05/0.03368, allocations: 19.98 kB / 341.6 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001435/0.03512, allocations: 1.312 MB / 342.9 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.03512, allocations: 0 / 342.9 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001935/0.03705, allocations: 0.9125 MB / 343.8 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001891/0.03724, allocations: 75.78 kB / 343.9 MB, free: 1.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.148e-05/0.03733, allocations: 19.98 kB / 343.9 MB, free: 1.801 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003369/0.03767, allocations: 31.97 kB / 343.9 MB, free: 1.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002175/0.03789, allocations: 95.91 kB / 344 MB, free: 1.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.507e-05/0.03794, allocations: 20.05 kB / 344 MB, free: 1.656 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002209/0.03816, allocations: 181.2 kB / 344.2 MB, free: 1.477 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.03816, allocations: 3.938 kB / 344.2 MB, free: 1.473 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004906/0.03866, allocations: 99.94 kB / 344.3 MB, free: 1.375 MB / 302.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.001495/0.04015, allocations: 414.2 kB / 344.7 MB, free: 1.113 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001132/0.04128, allocations: 470 kB / 345.2 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.04129, allocations: 0 / 345.2 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000667/0.04195, allocations: 284.2 kB / 345.5 MB, free: 388 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005707/0.04252, allocations: 63.45 kB / 345.5 MB, free: 328 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002541/0.04506, allocations: 0.9411 MB / 346.5 MB, free: 15.34 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002143/0.04528, allocations: 189.6 kB / 346.7 MB, free: 15.13 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001314/0.04541, allocations: 42.89 kB / 346.7 MB, free: 15.09 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.04552, allocations: 36.48 kB / 346.7 MB, free: 15.05 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.04552, allocations: 7.938 kB / 346.7 MB, free: 15.04 MB / 318.1 MB Notification: Performance of Templates: time 0.01431/0.05984, allocations: 7.383 MB / 354.1 MB, free: 7.727 MB / 318.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins/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: 4.457250341773033]