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.001641/0.001641, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.00205/0.00205, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.561/1.561, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.001787/0.001787, allocations: 55.91 kB / 373.5 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1075, allocations: 53.32 MB / 426.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004991/0.1125, allocations: 2.584 MB / 429.4 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.1139, allocations: 0.5772 MB / 429.9 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002258/0.1141, allocations: 7.938 kB / 430 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003443/0.1145, allocations: 75.36 kB / 430 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000498/0.115, allocations: 131.1 kB / 430.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004808/0.1155, allocations: 163.7 kB / 430.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007454/0.1162, allocations: 0.5186 MB / 430.8 MB, free: 212 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001853/0.1164, allocations: 48.66 kB / 430.9 MB, free: 160 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2174/0.3338, allocations: 225.3 kB / 431.1 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005324/0.3344, allocations: 253.5 kB / 431.4 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001065/0.3345, allocations: 40.84 kB / 431.4 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002356/0.3347, allocations: 93.39 kB / 431.5 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001531/0.3349, allocations: 110.6 kB / 431.6 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.335, allocations: 202.9 kB / 431.8 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006028/0.3356, allocations: 0.5034 MB / 432.3 MB, free: 8.039 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3357, allocations: 0 / 432.3 MB, free: 8.039 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3357, allocations: 2.156 kB / 432.3 MB, free: 8.039 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.445e-05/0.3357, allocations: 0 / 432.3 MB, free: 8.039 MB / 350.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.001272/0.3369, allocations: 0.7155 MB / 433 MB, free: 7.547 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.337, allocations: 8.781 kB / 433 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001046/0.3371, allocations: 40.61 kB / 433.1 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003639/0.3375, allocations: 301.5 kB / 433.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.636e-05/0.3375, allocations: 24.38 kB / 433.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.258e-05/0.3376, allocations: 30.94 kB / 433.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006728/0.3382, allocations: 376.2 kB / 433.8 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.3382, allocations: 11.2 kB / 433.8 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.115e-05/0.3383, allocations: 15.06 kB / 433.8 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.3383, allocations: 6.094 kB / 433.8 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008008/0.3391, allocations: 387.3 kB / 434.2 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002162/0.3413, allocations: 1.134 MB / 435.3 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006839/0.3419, allocations: 312 kB / 435.6 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003728/0.3423, allocations: 181.6 kB / 435.8 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.008e-05/0.3424, allocations: 4.25 kB / 435.8 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.3424, allocations: 40.86 kB / 435.8 MB, free: 6.727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.114e-06/0.3424, allocations: 3.281 kB / 435.8 MB, free: 6.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004921/0.3473, allocations: 1.998 MB / 437.8 MB, free: 5.852 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.981e-05/0.3473, allocations: 57.09 kB / 437.9 MB, free: 5.789 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002927/0.3476, allocations: 249.1 kB / 438.1 MB, free: 5.645 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.202e-05/0.3477, allocations: 53.11 kB / 438.2 MB, free: 5.598 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.224e-05/0.3478, allocations: 156.4 kB / 438.3 MB, free: 5.457 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.3479, allocations: 175.8 kB / 438.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/0.3481, allocations: 97 kB / 438.6 MB, free: 5.273 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.165e-05/0.3481, allocations: 339.3 kB / 438.9 MB, free: 4.949 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004066/0.3485, allocations: 191.7 kB / 439.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004451/0.349, allocations: 269.6 kB / 439.4 MB, free: 4.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006116/0.3496, allocations: 357.6 kB / 439.7 MB, free: 4.523 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3496, allocations: 1.219 kB / 439.7 MB, free: 4.523 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001209/0.3508, allocations: 0.5961 MB / 440.3 MB, free: 4.262 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.3508, allocations: 5.688 kB / 440.3 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.3508, allocations: 2.969 kB / 440.4 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007523/0.3516, allocations: 352.4 kB / 440.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002726/0.3519, allocations: 69.48 kB / 440.8 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001103/0.353, allocations: 1.368 MB / 442.1 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005027/0.3535, allocations: 70.48 kB / 442.2 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.352e-05/0.3535, allocations: 19.69 kB / 442.2 MB, free: 2.926 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.0001808/0.3537, allocations: 167.1 kB / 442.4 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.82e-05/0.3538, allocations: 37.08 kB / 442.4 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001224/0.3539, allocations: 52.69 kB / 442.5 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.3539, allocations: 5.625 kB / 442.5 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.3539, allocations: 0 / 442.5 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.3539, allocations: 2.25 kB / 442.5 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00276/0.3567, allocations: 1.335 MB / 443.8 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.3567, allocations: 2.156 kB / 443.8 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002806/0.357, allocations: 61.69 kB / 443.9 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005937/0.3576, allocations: 304.9 kB / 444.2 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.397e-05/0.3576, allocations: 18.69 kB / 444.2 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000965/0.3586, allocations: 1.316 MB / 445.5 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.3586, allocations: 2.281 kB / 445.5 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001905/0.3605, allocations: 0.9073 MB / 446.4 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002147/0.3607, allocations: 160.9 kB / 446.6 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.651e-05/0.3608, allocations: 18.06 kB / 446.6 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003453/0.3611, allocations: 42.94 kB / 446.6 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002671/0.3614, allocations: 94.09 kB / 446.7 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.094e-05/0.3615, allocations: 21 kB / 446.7 MB, free: 80 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002602/0.3617, allocations: 179.2 kB / 446.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3617, allocations: 0 / 446.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005646/0.3623, allocations: 99.77 kB / 447 MB, free: 15.96 MB / 366.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.001516/0.3638, allocations: 397.6 kB / 447.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001313/0.3651, allocations: 469.9 kB / 447.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3651, allocations: 320 / 447.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006685/0.3658, allocations: 284.2 kB / 448.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005826/0.3664, allocations: 63.08 kB / 448.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002863/0.3692, allocations: 1.05 MB / 449.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005054/0.3697, allocations: 0.7874 MB / 450 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001557/0.3699, allocations: 36.75 kB / 450.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/0.37, allocations: 36.77 kB / 450.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.37, allocations: 0 / 450.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of Templates: time 0.01654/0.3865, allocations: 8.708 MB / 458.8 MB, free: 11.27 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/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: 5.001584995537996]