Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001435/0.001435, allocations: 96.25 kB / 20.96 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001633/0.001633, allocations: 156.9 kB / 24.27 MB, free: 164 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 177 MB / 204.4 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 272.2 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.975e-05/3.158e-05, allocations: 5.266 kB / 272.2 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00465/0.004681, allocations: 2.428 MB / 274.6 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001437/0.006118, allocations: 0.5694 MB / 275.2 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002169/0.006335, allocations: 3.938 kB / 275.2 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003587/0.006694, allocations: 63.48 kB / 275.2 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005169/0.007211, allocations: 143 kB / 275.4 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004699/0.00768, allocations: 171.6 kB / 275.6 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008013/0.008482, allocations: 0.5224 MB / 276.1 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.008668, allocations: 48.89 kB / 276.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000565/0.009233, allocations: 307.5 kB / 276.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003865/0.009619, allocations: 219.5 kB / 276.6 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.385e-05/0.009713, allocations: 40 kB / 276.7 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002215/0.009935, allocations: 99.86 kB / 276.8 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001737/0.01011, allocations: 115.7 kB / 276.9 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002062/0.01031, allocations: 139.6 kB / 277 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001146/0.01146, allocations: 0.5452 MB / 277.6 MB, free: 12.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.01146, allocations: 0 / 277.6 MB, free: 12.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.01147, allocations: 0 / 277.6 MB, free: 12.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.67e-05/0.01148, allocations: 0 / 277.6 MB, free: 12.43 MB / 266.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.00169/0.01317, allocations: 0.6336 MB / 278.2 MB, free: 11.76 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.01322, allocations: 12.03 kB / 278.2 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001978/0.01342, allocations: 60.7 kB / 278.3 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000564/0.01398, allocations: 241.1 kB / 278.5 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.239e-05/0.01402, allocations: 32.91 kB / 278.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.173e-05/0.0141, allocations: 28.38 kB / 278.6 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008808/0.01498, allocations: 374.5 kB / 278.9 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.766e-05/0.01501, allocations: 12.14 kB / 278.9 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.841e-05/0.01506, allocations: 8.375 kB / 279 MB, free: 10.97 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.01507, allocations: 8.375 kB / 279 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009505/0.01602, allocations: 390.3 kB / 279.3 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002238/0.01826, allocations: 0.9641 MB / 280.3 MB, free: 9.562 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007017/0.01896, allocations: 311.1 kB / 280.6 MB, free: 9.246 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004109/0.01937, allocations: 176.8 kB / 280.8 MB, free: 9.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.237e-05/0.01943, allocations: 11.98 kB / 280.8 MB, free: 9.059 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.326e-05/0.01947, allocations: 38.56 kB / 280.8 MB, free: 9.012 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.743e-06/0.01947, allocations: 0 / 280.8 MB, free: 9.012 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.005275/0.02475, allocations: 1.721 MB / 282.6 MB, free: 7.227 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.805e-05/0.0248, allocations: 59.91 kB / 282.6 MB, free: 7.156 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003392/0.02514, allocations: 249.7 kB / 282.9 MB, free: 6.906 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.39e-05/0.02521, allocations: 37.7 kB / 282.9 MB, free: 6.863 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001512/0.02536, allocations: 157 kB / 283.1 MB, free: 6.707 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001867/0.02555, allocations: 170.6 kB / 283.2 MB, free: 6.539 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002088/0.02575, allocations: 98.28 kB / 283.3 MB, free: 6.438 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001972/0.02595, allocations: 342.8 kB / 283.6 MB, free: 6.094 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004381/0.02639, allocations: 189.2 kB / 283.8 MB, free: 5.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005165/0.02691, allocations: 269.8 kB / 284.1 MB, free: 5.621 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008648/0.02777, allocations: 358.6 kB / 284.4 MB, free: 5.246 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.02777, allocations: 0 / 284.4 MB, free: 5.246 MB / 266.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001441/0.02921, allocations: 0.624 MB / 285.1 MB, free: 4.613 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.665e-05/0.02924, allocations: 15.94 kB / 285.1 MB, free: 4.598 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.006e-06/0.02925, allocations: 48 / 285.1 MB, free: 4.598 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008591/0.03011, allocations: 349.4 kB / 285.4 MB, free: 4.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002974/0.03041, allocations: 67.91 kB / 285.5 MB, free: 4.184 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001707/0.03211, allocations: 1.362 MB / 286.9 MB, free: 2.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004779/0.03259, allocations: 72.06 kB / 286.9 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.422e-05/0.03265, allocations: 23.94 kB / 286.9 MB, free: 2.676 MB / 266.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.0002523/0.0329, allocations: 165.5 kB / 287.1 MB, free: 2.504 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001368/0.03303, allocations: 47.77 kB / 287.2 MB, free: 2.457 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001375/0.03317, allocations: 51.62 kB / 287.2 MB, free: 2.402 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.824e-06/0.03318, allocations: 4 kB / 287.2 MB, free: 2.398 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/0.03319, allocations: 11.92 kB / 287.2 MB, free: 2.387 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.0332, allocations: 0 / 287.2 MB, free: 2.387 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003084/0.03628, allocations: 1.201 MB / 288.4 MB, free: 1.125 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.03629, allocations: 4.062 kB / 288.4 MB, free: 1.121 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003066/0.03659, allocations: 59.91 kB / 288.5 MB, free: 1.062 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006979/0.03729, allocations: 309.6 kB / 288.8 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.2e-05/0.03734, allocations: 19.98 kB / 288.8 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001563/0.03891, allocations: 1.319 MB / 290.1 MB, free: 15.36 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.03891, allocations: 0 / 290.1 MB, free: 15.36 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002036/0.04095, allocations: 0.9161 MB / 291 MB, free: 14.4 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002034/0.04115, allocations: 79.78 kB / 291.1 MB, free: 14.32 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.924e-05/0.04124, allocations: 19.98 kB / 291.1 MB, free: 14.3 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003415/0.04158, allocations: 35.97 kB / 291.2 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002299/0.04181, allocations: 95.77 kB / 291.3 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.197e-05/0.04186, allocations: 19.98 kB / 291.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000444/0.04231, allocations: 181.2 kB / 291.5 MB, free: 13.98 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04231, allocations: 0 / 291.5 MB, free: 13.98 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005061/0.04281, allocations: 103.9 kB / 291.6 MB, free: 13.88 MB / 282.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.001807/0.04462, allocations: 417.3 kB / 292 MB, free: 13.6 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001246/0.04587, allocations: 468.3 kB / 292.4 MB, free: 13.14 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.04587, allocations: 0 / 292.4 MB, free: 13.14 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007109/0.04658, allocations: 282 kB / 292.7 MB, free: 12.87 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006608/0.04724, allocations: 102.8 kB / 292.8 MB, free: 12.77 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00356/0.0508, allocations: 0.9389 MB / 293.7 MB, free: 11.79 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.05111, allocations: 185.8 kB / 293.9 MB, free: 11.59 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001511/0.05126, allocations: 30.97 kB / 294 MB, free: 11.55 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.05138, allocations: 36.48 kB / 294 MB, free: 11.52 MB / 282.7 MB Notification: Performance of SimCode: time 5.21e-07/0.05138, allocations: 0 / 294 MB, free: 11.52 MB / 282.7 MB Notification: Performance of Templates: time 0.01547/0.06685, allocations: 7.427 MB / 301.4 MB, free: 4.156 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.569338449975476]