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.0009697/0.0009697, allocations: 84.73 kB / 21.5 MB, free: 2.984 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.001061/0.001061, allocations: 162.5 kB / 24.91 MB, free: 9.203 MB / 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.036/1.036, allocations: 177 MB / 205.2 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] 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.232e-06/1.232e-06, allocations: 0 / 273.4 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.028e-05/2.151e-05, allocations: 6.312 kB / 273.4 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002737/0.002758, allocations: 2.552 MB / 275.9 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007257/0.003484, allocations: 0.5887 MB / 276.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.182e-05/0.003576, allocations: 7.938 kB / 276.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002524/0.003828, allocations: 67.38 kB / 276.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002248/0.004053, allocations: 143 kB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002172/0.00427, allocations: 167.7 kB / 276.9 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003452/0.004615, allocations: 0.5224 MB / 277.4 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.004739, allocations: 58.84 kB / 277.5 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002404/0.00498, allocations: 311.4 kB / 277.8 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002163/0.005196, allocations: 211.5 kB / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.174e-05/0.005248, allocations: 40 kB / 278 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001121/0.00536, allocations: 99.86 kB / 278.1 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.005463, allocations: 111.7 kB / 278.2 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.903e-05/0.005562, allocations: 143.6 kB / 278.4 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003368/0.005899, allocations: 410.6 kB / 278.8 MB, free: 11.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.005901, allocations: 0 / 278.8 MB, free: 11.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.005901, allocations: 0 / 278.8 MB, free: 11.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.005905, allocations: 3.938 kB / 278.8 MB, free: 11.83 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.0006623/0.006567, allocations: 0.5892 MB / 279.4 MB, free: 11.21 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.968e-05/0.006597, allocations: 8.031 kB / 279.4 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.301e-05/0.00667, allocations: 44.91 kB / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002275/0.006898, allocations: 217.9 kB / 279.6 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.079e-05/0.006928, allocations: 25.03 kB / 279.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.874e-05/0.006977, allocations: 36.36 kB / 279.7 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002978/0.007275, allocations: 274.4 kB / 279.9 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.007288, allocations: 4.141 kB / 279.9 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.007312, allocations: 12.38 kB / 280 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.00732, allocations: 8.375 kB / 280 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002281/0.007548, allocations: 171 kB / 280.1 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.008682, allocations: 0.7013 MB / 280.8 MB, free: 9.652 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003232/0.009005, allocations: 187.1 kB / 281 MB, free: 9.457 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.00916, allocations: 96.75 kB / 281.1 MB, free: 9.359 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.46e-05/0.009195, allocations: 8 kB / 281.1 MB, free: 9.352 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.57e-05/0.009221, allocations: 38.56 kB / 281.2 MB, free: 9.305 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.923e-06/0.009223, allocations: 0 / 281.2 MB, free: 9.305 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.002251/0.01147, allocations: 1.198 MB / 282.4 MB, free: 8.043 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.394e-05/0.0115, allocations: 55.91 kB / 282.4 MB, free: 7.977 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.01164, allocations: 226.6 kB / 282.6 MB, free: 7.742 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.272e-05/0.01167, allocations: 41.7 kB / 282.7 MB, free: 7.695 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.119e-05/0.01172, allocations: 149 kB / 282.8 MB, free: 7.547 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.53e-05/0.01181, allocations: 170.6 kB / 283 MB, free: 7.379 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.328e-05/0.0119, allocations: 94.23 kB / 283.1 MB, free: 7.281 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.53e-05/0.01198, allocations: 342.8 kB / 283.4 MB, free: 6.938 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.01208, allocations: 81.28 kB / 283.5 MB, free: 6.859 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001268/0.01221, allocations: 157.8 kB / 283.6 MB, free: 6.68 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.01241, allocations: 241.4 kB / 283.9 MB, free: 6.418 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.01241, allocations: 0 / 283.9 MB, free: 6.418 MB / 266.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0003761/0.01279, allocations: 340.1 kB / 284.2 MB, free: 6.074 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.0128, allocations: 10.8 kB / 284.2 MB, free: 6.066 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.01281, allocations: 4 kB / 284.2 MB, free: 6.062 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003315/0.01314, allocations: 257.5 kB / 284.5 MB, free: 5.805 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.01327, allocations: 71.84 kB / 284.6 MB, free: 5.734 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005621/0.01383, allocations: 1.17 MB / 285.7 MB, free: 4.508 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001469/0.01398, allocations: 47.89 kB / 285.8 MB, free: 4.461 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.103e-05/0.014, allocations: 19.92 kB / 285.8 MB, free: 4.441 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.0001042/0.0141, allocations: 152.5 kB / 285.9 MB, free: 4.281 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.061e-05/0.01416, allocations: 35.97 kB / 286 MB, free: 4.246 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.63e-05/0.0142, allocations: 55.61 kB / 286 MB, free: 4.191 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.0142, allocations: 4 kB / 286 MB, free: 4.188 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/0.01421, allocations: 0 / 286 MB, free: 4.188 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.01421, allocations: 7.922 kB / 286 MB, free: 4.18 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009947/0.01521, allocations: 0.7721 MB / 286.8 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.01521, allocations: 0 / 286.8 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/0.01534, allocations: 59.92 kB / 286.9 MB, free: 3.301 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002725/0.01562, allocations: 241.6 kB / 287.1 MB, free: 3.059 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.01564, allocations: 15.98 kB / 287.1 MB, free: 3.043 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005245/0.01616, allocations: 1.173 MB / 288.3 MB, free: 1.812 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.01616, allocations: 4 kB / 288.3 MB, free: 1.809 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005691/0.01673, allocations: 0.5633 MB / 288.9 MB, free: 1.211 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.569e-05/0.01682, allocations: 51.81 kB / 288.9 MB, free: 1.16 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.525e-05/0.01686, allocations: 19.94 kB / 288.9 MB, free: 1.141 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/0.01698, allocations: 27.97 kB / 289 MB, free: 1.113 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.01709, allocations: 87.81 kB / 289 MB, free: 1.027 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.037e-05/0.01711, allocations: 15.98 kB / 289.1 MB, free: 1.012 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.557e-05/0.01716, allocations: 74.78 kB / 289.1 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01716, allocations: 0 / 289.1 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002244/0.01739, allocations: 99.98 kB / 289.2 MB, free: 0.8359 MB / 266.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.0008448/0.01823, allocations: 453.9 kB / 289.7 MB, free: 0.543 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003774/0.01861, allocations: 294.6 kB / 290 MB, free: 260 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.01861, allocations: 4 kB / 290 MB, free: 256 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000185/0.0188, allocations: 191.1 kB / 290.2 MB, free: 64 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.08771/0.1065, allocations: 92.34 kB / 290.2 MB, free: 26.61 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.1079, allocations: 0.8024 MB / 291 MB, free: 26.26 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.369e-05/0.1079, allocations: 106.8 kB / 291.1 MB, free: 26.19 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001067/0.108, allocations: 39.89 kB / 291.2 MB, free: 26.19 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.1082, allocations: 107.9 kB / 291.3 MB, free: 26.15 MB / 266.7 MB Notification: Performance of SimCode: time 1.272e-06/0.1082, allocations: 0 / 291.3 MB, free: 26.15 MB / 266.7 MB Notification: Performance of Templates: time 0.009827/0.118, allocations: 8.052 MB / 299.3 MB, free: 24.21 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.948834407143295]