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.002588/0.002588, allocations: 99.53 kB / 20.96 MB, free: 3.453 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.002729/0.002729, allocations: 160.8 kB / 24.27 MB, free: 152 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.535/1.535, allocations: 177 MB / 204.4 MB, free: 5.625 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.363e-06/1.363e-06, allocations: 0 / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.421e-05/2.557e-05, allocations: 2.312 kB / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004577/0.004602, allocations: 2.55 MB / 274.7 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001259/0.005861, allocations: 0.5772 MB / 275.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.005982, allocations: 7.938 kB / 275.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002937/0.006276, allocations: 51.5 kB / 275.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003578/0.006633, allocations: 142.9 kB / 275.5 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00037/0.007003, allocations: 183.6 kB / 275.7 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006344/0.007638, allocations: 0.5185 MB / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001616/0.007799, allocations: 44.89 kB / 276.2 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004442/0.008244, allocations: 319.4 kB / 276.6 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000372/0.008616, allocations: 207.5 kB / 276.8 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.324e-05/0.008709, allocations: 40 kB / 276.8 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002013/0.00891, allocations: 99.89 kB / 276.9 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00018/0.00909, allocations: 115.6 kB / 277 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002044/0.009295, allocations: 147.7 kB / 277.1 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000758/0.01005, allocations: 0.5413 MB / 277.7 MB, free: 12.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.01006, allocations: 0 / 277.7 MB, free: 12.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.01006, allocations: 0 / 277.7 MB, free: 12.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.01006, allocations: 3.938 kB / 277.7 MB, free: 12.29 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.001477/0.01154, allocations: 0.7371 MB / 278.4 MB, free: 11.51 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.01158, allocations: 8.031 kB / 278.4 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001642/0.01174, allocations: 64.7 kB / 278.5 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004629/0.0122, allocations: 247.9 kB / 278.7 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.315e-05/0.01224, allocations: 21.03 kB / 278.8 MB, free: 11.15 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.747e-05/0.01231, allocations: 32.38 kB / 278.8 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007786/0.01309, allocations: 366.5 kB / 279.2 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.01311, allocations: 8.141 kB / 279.2 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.441e-05/0.01316, allocations: 12.38 kB / 279.2 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.01317, allocations: 4.375 kB / 279.2 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008885/0.01405, allocations: 370.3 kB / 279.5 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002207/0.01626, allocations: 1.033 MB / 280.6 MB, free: 9.273 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006759/0.01694, allocations: 315.6 kB / 280.9 MB, free: 8.945 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003777/0.01732, allocations: 163.6 kB / 281 MB, free: 8.781 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.375e-05/0.01738, allocations: 8 kB / 281 MB, free: 8.773 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.798e-05/0.01742, allocations: 45.33 kB / 281.1 MB, free: 8.719 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.874e-06/0.01742, allocations: 0 / 281.1 MB, free: 8.719 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.004864/0.02228, allocations: 1.677 MB / 282.8 MB, free: 6.973 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.865e-05/0.02234, allocations: 55.91 kB / 282.8 MB, free: 6.906 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003704/0.02271, allocations: 316.3 kB / 283.1 MB, free: 6.578 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.022e-05/0.02277, allocations: 41.7 kB / 283.2 MB, free: 6.531 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001694/0.02294, allocations: 207.7 kB / 283.4 MB, free: 6.324 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001964/0.02314, allocations: 186.6 kB / 283.6 MB, free: 6.141 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002173/0.02336, allocations: 111.9 kB / 283.7 MB, free: 6.023 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003154/0.02367, allocations: 0.5274 MB / 284.2 MB, free: 5.484 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004326/0.0241, allocations: 185.2 kB / 284.4 MB, free: 5.301 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005293/0.02463, allocations: 300.5 kB / 284.7 MB, free: 4.977 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007183/0.02535, allocations: 377.3 kB / 285 MB, free: 4.578 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.02535, allocations: 4 kB / 285 MB, free: 4.574 MB / 266.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001368/0.02672, allocations: 0.6294 MB / 285.7 MB, free: 3.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.02674, allocations: 7.938 kB / 285.7 MB, free: 3.922 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.02675, allocations: 4 kB / 285.7 MB, free: 3.918 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008186/0.02757, allocations: 339.3 kB / 286 MB, free: 3.578 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002835/0.02786, allocations: 75.97 kB / 286.1 MB, free: 3.504 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001919/0.02978, allocations: 1.889 MB / 288 MB, free: 1.551 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000371/0.03015, allocations: 51.89 kB / 288 MB, free: 1.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-05/0.0302, allocations: 19.98 kB / 288 MB, free: 1.48 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.0002574/0.03046, allocations: 208.6 kB / 288.3 MB, free: 1.266 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002461/0.03071, allocations: 47.81 kB / 288.3 MB, free: 1.219 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001463/0.03085, allocations: 51.55 kB / 288.3 MB, free: 1.168 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.689e-06/0.03086, allocations: 8 kB / 288.4 MB, free: 1.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/0.03087, allocations: 3.938 kB / 288.4 MB, free: 1.156 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.03088, allocations: 0 / 288.4 MB, free: 1.156 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002966/0.03384, allocations: 1.266 MB / 289.6 MB, free: 15.81 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.778e-06/0.03385, allocations: 3.938 kB / 289.6 MB, free: 15.81 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002898/0.03414, allocations: 60.12 kB / 289.7 MB, free: 15.75 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006835/0.03482, allocations: 311.1 kB / 290 MB, free: 15.44 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.163e-05/0.03487, allocations: 15.98 kB / 290 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001956/0.03683, allocations: 1.834 MB / 291.8 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.03683, allocations: 4 kB / 291.8 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001971/0.0388, allocations: 0.9632 MB / 292.8 MB, free: 12.51 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002144/0.03902, allocations: 91.61 kB / 292.9 MB, free: 12.42 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.355e-05/0.03911, allocations: 20 kB / 292.9 MB, free: 12.4 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002801/0.03939, allocations: 27.97 kB / 292.9 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002257/0.03962, allocations: 99.78 kB / 293 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.989e-05/0.03967, allocations: 23.97 kB / 293.1 MB, free: 12.25 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002297/0.0399, allocations: 217.1 kB / 293.3 MB, free: 12.04 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0399, allocations: 0 / 293.3 MB, free: 12.04 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000474/0.04037, allocations: 96 kB / 293.4 MB, free: 11.95 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.002532/0.0429, allocations: 410.2 kB / 293.8 MB, free: 11.67 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001188/0.04409, allocations: 497.3 kB / 294.3 MB, free: 11.18 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.0441, allocations: 0 / 294.3 MB, free: 11.18 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006247/0.04472, allocations: 282.7 kB / 294.5 MB, free: 10.9 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006116/0.04533, allocations: 98.02 kB / 294.6 MB, free: 10.81 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002519/0.04785, allocations: 0.9349 MB / 295.6 MB, free: 9.82 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002266/0.04808, allocations: 181.8 kB / 295.7 MB, free: 9.621 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001383/0.04822, allocations: 34.95 kB / 295.8 MB, free: 9.586 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.04834, allocations: 40.42 kB / 295.8 MB, free: 9.543 MB / 282.7 MB Notification: Performance of SimCode: time 9.21e-07/0.04834, allocations: 0 / 295.8 MB, free: 9.543 MB / 282.7 MB Notification: Performance of Templates: time 0.01501/0.06335, allocations: 7.429 MB / 303.2 MB, free: 2.172 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","/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.800971977994777]