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.00181/0.00181, allocations: 107 kB / 21.18 MB, free: 0.6445 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.002196/0.002196, allocations: 209 kB / 24.48 MB, free: 3.938 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.643/1.643, allocations: 230.6 MB / 258.2 MB, free: 7.746 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.001621/0.001621, allocations: 43.94 kB / 378.9 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3464, allocations: 53.37 MB / 432.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00576/0.3522, allocations: 2.43 MB / 434.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001806/0.354, allocations: 0.5694 MB / 435.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002118/0.3542, allocations: 7.938 kB / 435.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004634/0.3546, allocations: 63.44 kB / 435.4 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005089/0.3552, allocations: 139 kB / 435.5 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005654/0.3557, allocations: 175.7 kB / 435.7 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009723/0.3567, allocations: 0.5109 MB / 436.2 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002123/0.3569, allocations: 51.86 kB / 436.3 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005176/0.3574, allocations: 231.4 kB / 436.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005005/0.3579, allocations: 259.1 kB / 436.7 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.673e-05/0.358, allocations: 40 kB / 436.8 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002656/0.3583, allocations: 95.98 kB / 436.9 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001852/0.3585, allocations: 111.6 kB / 437 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001941/0.3587, allocations: 175.2 kB / 437.1 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008613/0.3595, allocations: 0.5057 MB / 437.7 MB, free: 1.355 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3595, allocations: 0 / 437.7 MB, free: 1.355 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3595, allocations: 0 / 437.7 MB, free: 1.355 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.3595, allocations: 0 / 437.7 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.001852/0.3614, allocations: 0.6375 MB / 438.3 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.3614, allocations: 11.97 kB / 438.3 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000162/0.3616, allocations: 40.7 kB / 438.3 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008223/0.3624, allocations: 241.9 kB / 438.6 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.913e-05/0.3625, allocations: 25.03 kB / 438.6 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.3626, allocations: 32.38 kB / 438.6 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/0.3639, allocations: 374.5 kB / 439 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.72e-05/0.3639, allocations: 8.078 kB / 439 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.938e-05/0.364, allocations: 19.94 kB / 439 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.364, allocations: 4 kB / 439 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001169/0.3652, allocations: 390.2 kB / 439.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00232/0.3675, allocations: 0.9556 MB / 440.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007547/0.3683, allocations: 315.1 kB / 440.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004031/0.3687, allocations: 180.8 kB / 440.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.252e-05/0.3687, allocations: 11.94 kB / 440.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/0.3687, allocations: 30.56 kB / 440.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 5.019e-06/0.3688, allocations: 4 kB / 440.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.005049/0.3738, allocations: 1.712 MB / 442.6 MB, free: 12.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.3739, allocations: 55.84 kB / 442.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003896/0.3742, allocations: 244.9 kB / 442.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.936e-05/0.3743, allocations: 45.69 kB / 442.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.3745, allocations: 153 kB / 443.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001867/0.3746, allocations: 178.6 kB / 443.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000338/0.375, allocations: 94.28 kB / 443.4 MB, free: 11.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.3752, allocations: 338.8 kB / 443.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004123/0.3756, allocations: 193.2 kB / 443.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000573/0.3762, allocations: 273.7 kB / 444.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000692/0.3768, allocations: 353.7 kB / 444.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.3768, allocations: 0 / 444.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001303/0.3782, allocations: 0.6106 MB / 445.1 MB, free: 9.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.3782, allocations: 4 kB / 445.1 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.3782, allocations: 4 kB / 445.1 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009316/0.3791, allocations: 337.6 kB / 445.4 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000288/0.3794, allocations: 71.91 kB / 445.5 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001773/0.3812, allocations: 1.366 MB / 446.9 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004789/0.3817, allocations: 71.86 kB / 447 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.638e-05/0.3817, allocations: 19.94 kB / 447 MB, free: 7.668 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.0002649/0.382, allocations: 169.6 kB / 447.1 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.3821, allocations: 43.81 kB / 447.2 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001348/0.3822, allocations: 51.61 kB / 447.2 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.3822, allocations: 4 kB / 447.2 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.3822, allocations: 0 / 447.2 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.3822, allocations: 0 / 447.2 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002881/0.3851, allocations: 1.184 MB / 448.4 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3851, allocations: 4.156 kB / 448.4 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000283/0.3854, allocations: 59.91 kB / 448.5 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006711/0.3861, allocations: 301.5 kB / 448.8 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.189e-05/0.3861, allocations: 23.97 kB / 448.8 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001405/0.3875, allocations: 1.308 MB / 450.1 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3875, allocations: 0 / 450.1 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001898/0.3894, allocations: 0.9182 MB / 451 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002175/0.3896, allocations: 79.86 kB / 451.1 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.869e-05/0.3897, allocations: 23.98 kB / 451.1 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000315/0.39, allocations: 39.95 kB / 451.2 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000215/0.3903, allocations: 87.77 kB / 451.2 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.741e-05/0.3903, allocations: 23.97 kB / 451.3 MB, free: 3.199 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002111/0.3905, allocations: 180.5 kB / 451.4 MB, free: 3.023 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3905, allocations: 0 / 451.4 MB, free: 3.023 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000488/0.391, allocations: 92 kB / 451.5 MB, free: 2.934 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.001522/0.3925, allocations: 412.5 kB / 451.9 MB, free: 2.684 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001218/0.3937, allocations: 473.2 kB / 452.4 MB, free: 2.223 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/0.3937, allocations: 320 / 452.4 MB, free: 2.223 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006485/0.3944, allocations: 283.6 kB / 452.7 MB, free: 1.945 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005614/0.395, allocations: 68.31 kB / 452.7 MB, free: 1.879 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002595/0.3976, allocations: 1.044 MB / 453.8 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002004/0.3978, allocations: 181.8 kB / 454 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001463/0.3979, allocations: 38.89 kB / 454 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.398, allocations: 35.42 kB / 454 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.398, allocations: 0 / 454 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of Templates: time 0.01502/0.413, allocations: 7.816 MB / 461.9 MB, free: 8.77 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 -s cvode -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: 5.3478587129939115]