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.0008304/0.0008304, allocations: 81.81 kB / 21.42 MB, free: 3.07 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.0009458/0.0009458, allocations: 170.8 kB / 24.82 MB, free: 8.922 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 0.9929/0.9929, allocations: 177 MB / 205.1 MB, free: 5.477 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.402e-06/1.402e-06, allocations: 0 / 273.3 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.208e-05/1.349e-05, allocations: 5.266 kB / 273.3 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003538/0.003551, allocations: 2.554 MB / 275.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001005/0.004556, allocations: 0.5733 MB / 276.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.004681, allocations: 0 / 276.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002732/0.004955, allocations: 71.3 kB / 276.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003064/0.005261, allocations: 139 kB / 276.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002869/0.005548, allocations: 175.6 kB / 276.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004727/0.006021, allocations: 0.5224 MB / 277.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/0.00616, allocations: 44.89 kB / 277.4 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003474/0.006508, allocations: 319.5 kB / 277.7 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002827/0.00679, allocations: 207.5 kB / 277.9 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.931e-05/0.006859, allocations: 40 kB / 277.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001626/0.007022, allocations: 103.8 kB / 278 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001287/0.007151, allocations: 111.7 kB / 278.2 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001429/0.007294, allocations: 147.6 kB / 278.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004481/0.007742, allocations: 406.6 kB / 278.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.007744, allocations: 0 / 278.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.007745, allocations: 0 / 278.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.00775, allocations: 0 / 278.7 MB, free: 11.84 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.0009896/0.008739, allocations: 0.7216 MB / 279.4 MB, free: 11.08 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.008774, allocations: 8.031 kB / 279.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.008899, allocations: 64.7 kB / 279.5 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003317/0.00923, allocations: 256.7 kB / 279.7 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.267e-05/0.009263, allocations: 21.03 kB / 279.8 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.971e-05/0.009323, allocations: 28.38 kB / 279.8 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004626/0.009785, allocations: 270.5 kB / 280.1 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.009804, allocations: 8.141 kB / 280.1 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.348e-05/0.009838, allocations: 8.375 kB / 280.1 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.009847, allocations: 8.375 kB / 280.1 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003962/0.01024, allocations: 202.9 kB / 280.3 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001431/0.01167, allocations: 0.9014 MB / 281.2 MB, free: 9.234 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000355/0.01203, allocations: 203.5 kB / 281.4 MB, free: 9.02 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/0.0122, allocations: 107.6 kB / 281.5 MB, free: 8.91 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.738e-05/0.01224, allocations: 4 kB / 281.5 MB, free: 8.906 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.388e-05/0.01226, allocations: 37.39 kB / 281.5 MB, free: 8.859 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 2.214e-06/0.01226, allocations: 0 / 281.5 MB, free: 8.859 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.002781/0.01504, allocations: 1.259 MB / 282.8 MB, free: 7.527 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.245e-05/0.01508, allocations: 55.91 kB / 282.8 MB, free: 7.461 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002171/0.01529, allocations: 280.2 kB / 283.1 MB, free: 7.172 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.615e-05/0.01534, allocations: 41.7 kB / 283.1 MB, free: 7.125 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.01545, allocations: 207.7 kB / 283.4 MB, free: 6.918 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.01558, allocations: 182.5 kB / 283.5 MB, free: 6.738 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.01574, allocations: 99.89 kB / 283.6 MB, free: 6.633 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.0159, allocations: 0.5156 MB / 284.1 MB, free: 6.105 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.01609, allocations: 93.25 kB / 284.2 MB, free: 6.012 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002394/0.01633, allocations: 196.4 kB / 284.4 MB, free: 5.789 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003454/0.01668, allocations: 249.3 kB / 284.7 MB, free: 5.512 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.01668, allocations: 0 / 284.7 MB, free: 5.512 MB / 266.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007303/0.01741, allocations: 436.6 kB / 285.1 MB, free: 5.074 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.01742, allocations: 4 kB / 285.1 MB, free: 5.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.01743, allocations: 7.938 kB / 285.1 MB, free: 5.062 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000505/0.01794, allocations: 267.3 kB / 285.4 MB, free: 4.793 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002116/0.01815, allocations: 67.91 kB / 285.4 MB, free: 4.727 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001013/0.01916, allocations: 1.725 MB / 287.2 MB, free: 2.938 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002627/0.01942, allocations: 48.02 kB / 287.2 MB, free: 2.891 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.512e-05/0.01946, allocations: 15.98 kB / 287.2 MB, free: 2.875 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.0001553/0.01961, allocations: 188.5 kB / 287.4 MB, free: 2.68 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.01971, allocations: 51.77 kB / 287.5 MB, free: 2.629 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.039e-05/0.01979, allocations: 47.61 kB / 287.5 MB, free: 2.582 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.0198, allocations: 8 kB / 287.5 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.023e-06/0.0198, allocations: 0 / 287.5 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.01981, allocations: 7.922 kB / 287.5 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001838/0.02165, allocations: 1.013 MB / 288.5 MB, free: 1.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/0.02165, allocations: 0 / 288.5 MB, free: 1.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002174/0.02187, allocations: 59.92 kB / 288.6 MB, free: 1.422 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004382/0.02231, allocations: 255.2 kB / 288.8 MB, free: 1.164 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.826e-05/0.02235, allocations: 19.97 kB / 288.9 MB, free: 1.145 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009979/0.02334, allocations: 1.729 MB / 290.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.02335, allocations: 0 / 290.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.02444, allocations: 0.7054 MB / 291.3 MB, free: 14.6 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001659/0.02461, allocations: 87.61 kB / 291.4 MB, free: 14.52 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.617e-05/0.02467, allocations: 16 kB / 291.4 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002238/0.0249, allocations: 31.97 kB / 291.4 MB, free: 14.47 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.02506, allocations: 83.83 kB / 291.5 MB, free: 14.39 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.825e-05/0.0251, allocations: 19.97 kB / 291.5 MB, free: 14.37 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001268/0.02523, allocations: 197.1 kB / 291.7 MB, free: 14.18 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.02523, allocations: 0 / 291.7 MB, free: 14.18 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004372/0.02567, allocations: 100 kB / 291.8 MB, free: 14.08 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.0009387/0.02661, allocations: 362.8 kB / 292.2 MB, free: 13.82 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006077/0.02721, allocations: 329.1 kB / 292.5 MB, free: 13.49 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.02722, allocations: 0 / 292.5 MB, free: 13.49 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003333/0.02755, allocations: 202 kB / 292.7 MB, free: 13.29 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005078/0.02806, allocations: 100.9 kB / 292.8 MB, free: 13.2 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00168/0.02974, allocations: 0.8863 MB / 293.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.187e-05/0.02982, allocations: 101.3 kB / 293.8 MB, free: 12.14 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001275/0.02995, allocations: 38.97 kB / 293.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000201/0.03015, allocations: 134.2 kB / 293.9 MB, free: 11.96 MB / 282.7 MB Notification: Performance of SimCode: time 7.71e-07/0.03015, allocations: 4 kB / 293.9 MB, free: 11.96 MB / 282.7 MB Notification: Performance of Templates: time 0.01281/0.04296, allocations: 8.086 MB / 302 MB, free: 3.941 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=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.9014821220189333]