Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,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.0.0_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,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.0.0_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001275/0.001281, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 222.9 MB / 240.9 MB, free: 10.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009566/0.0009566, allocations: 98.53 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 35.95 kB / 350 MB, free: 68 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2391, allocations: 49.44 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002917/0.2421, allocations: 2.476 MB / 401.9 MB, free: 30.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007628/0.2429, allocations: 0.4899 MB / 402.4 MB, free: 30.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.243, allocations: 11.88 kB / 402.4 MB, free: 30.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001931/0.2432, allocations: 39.77 kB / 402.5 MB, free: 30.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001336/0.2434, allocations: 67.45 kB / 402.5 MB, free: 30.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003579/0.2437, allocations: 167.7 kB / 402.7 MB, free: 30.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003159/0.2441, allocations: 467.1 kB / 403.2 MB, free: 29.65 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000146/0.2442, allocations: 68.55 kB / 403.2 MB, free: 29.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001585/0.2444, allocations: 191.3 kB / 403.4 MB, free: 29.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002095/0.2446, allocations: 223.2 kB / 403.6 MB, free: 29.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.808e-05/0.2447, allocations: 20 kB / 403.7 MB, free: 29.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001348/0.2448, allocations: 67.95 kB / 403.7 MB, free: 29.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.786e-05/0.2449, allocations: 87.7 kB / 403.8 MB, free: 29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001148/0.245, allocations: 167.1 kB / 404 MB, free: 28.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002992/0.2453, allocations: 440.1 kB / 404.4 MB, free: 28.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2453, allocations: 0 / 404.4 MB, free: 28.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2453, allocations: 0 / 404.4 MB, free: 28.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.368e-06/0.2454, allocations: 0 / 404.4 MB, free: 28.41 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001014/0.2464, allocations: 0.6665 MB / 405.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.2464, allocations: 8.031 kB / 405.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.182e-05/0.2465, allocations: 40.47 kB / 405.1 MB, free: 27.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002361/0.2467, allocations: 276.7 kB / 405.4 MB, free: 27.33 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.2468, allocations: 16.94 kB / 405.4 MB, free: 27.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.188e-05/0.2468, allocations: 40.22 kB / 405.4 MB, free: 27.28 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005704/0.2474, allocations: 373.2 kB / 405.8 MB, free: 26.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.2474, allocations: 12.17 kB / 405.8 MB, free: 26.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.519e-05/0.2475, allocations: 11.94 kB / 405.8 MB, free: 26.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.2475, allocations: 8 kB / 405.8 MB, free: 26.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005936/0.2481, allocations: 402 kB / 406.2 MB, free: 26.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001436/0.2495, allocations: 1.112 MB / 407.3 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003945/0.2499, allocations: 296.2 kB / 407.6 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000274/0.2502, allocations: 205.4 kB / 407.8 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.51e-05/0.2503, allocations: 11.88 kB / 407.8 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.373e-05/0.2503, allocations: 30.56 kB / 407.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 1.573e-06/0.2503, allocations: 8 kB / 407.9 MB, free: 24.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.003597/0.2539, allocations: 2.014 MB / 409.9 MB, free: 22.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.794e-05/0.254, allocations: 59.41 kB / 410 MB, free: 22.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001733/0.2541, allocations: 233 kB / 410.2 MB, free: 22.28 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.439e-05/0.2542, allocations: 41.7 kB / 410.2 MB, free: 22.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.573e-05/0.2543, allocations: 160.7 kB / 410.4 MB, free: 22.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.143e-05/0.2543, allocations: 158 kB / 410.5 MB, free: 21.92 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.2545, allocations: 94.14 kB / 410.6 MB, free: 21.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.096e-05/0.2546, allocations: 346.7 kB / 411 MB, free: 21.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00031/0.2549, allocations: 209 kB / 411.2 MB, free: 21.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000331/0.2552, allocations: 288.8 kB / 411.5 MB, free: 20.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005278/0.2557, allocations: 377.7 kB / 411.8 MB, free: 20.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2558, allocations: 8 kB / 411.8 MB, free: 20.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00114/0.2569, allocations: 0.6924 MB / 412.5 MB, free: 19.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.2569, allocations: 8.094 kB / 412.5 MB, free: 19.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.257, allocations: 11.98 kB / 412.5 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007249/0.2577, allocations: 493.4 kB / 413 MB, free: 19.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002551/0.2579, allocations: 75.89 kB / 413.1 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008974/0.2589, allocations: 1.382 MB / 414.5 MB, free: 17.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003871/0.2593, allocations: 68.05 kB / 414.5 MB, free: 17.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.789e-05/0.2593, allocations: 19.98 kB / 414.6 MB, free: 17.75 MB / 298.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 (49): * Single equations (assignments): 47 * 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,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001829/0.2595, allocations: 157.8 kB / 414.7 MB, free: 17.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.658e-05/0.2596, allocations: 39.56 kB / 414.8 MB, free: 17.55 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001066/0.2597, allocations: 47.3 kB / 414.8 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.2597, allocations: 7.938 kB / 414.8 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.2597, allocations: 0 / 414.8 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.2597, allocations: 7.984 kB / 414.8 MB, free: 17.49 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00217/0.2619, allocations: 1.336 MB / 416.2 MB, free: 16.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.2619, allocations: 4 kB / 416.2 MB, free: 16.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002421/0.2622, allocations: 59.91 kB / 416.2 MB, free: 16.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005575/0.2627, allocations: 461.5 kB / 416.7 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.582e-05/0.2628, allocations: 23.98 kB / 416.7 MB, free: 15.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008123/0.2636, allocations: 1.339 MB / 418 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.2636, allocations: 4.031 kB / 418 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01106/0.2747, allocations: 8.323 MB / 426.4 MB, free: 5.316 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001427/0.2749, allocations: 156.7 kB / 426.5 MB, free: 5.145 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.863e-05/0.2749, allocations: 16 kB / 426.5 MB, free: 5.129 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002687/0.2752, allocations: 43.89 kB / 426.6 MB, free: 5.086 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/0.2754, allocations: 83.78 kB / 426.7 MB, free: 5.004 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-05/0.2754, allocations: 19.98 kB / 426.7 MB, free: 4.984 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001108/0.2756, allocations: 168.5 kB / 426.8 MB, free: 4.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2756, allocations: 4 kB / 426.8 MB, free: 4.816 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005678/0.2761, allocations: 168 kB / 427 MB, free: 4.652 MB / 298.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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002546/0.2764, allocations: 175.1 kB / 427.2 MB, free: 4.473 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008969/0.2773, allocations: 0.5136 MB / 427.7 MB, free: 3.961 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2773, allocations: 4.062 kB / 427.7 MB, free: 3.957 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004895/0.2778, allocations: 287.8 kB / 428 MB, free: 3.676 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004681/0.2783, allocations: 59.38 kB / 428 MB, free: 3.621 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002253/0.2806, allocations: 1.618 MB / 429.6 MB, free: 1.922 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001911/0.2808, allocations: 0.7917 MB / 430.4 MB, free: 1.102 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001464/0.2809, allocations: 34.97 kB / 430.5 MB, free: 1.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.395e-05/0.281, allocations: 27.42 kB / 430.5 MB, free: 1.043 MB / 298.7 MB Notification: Performance of SimCode: time 1.132e-06/0.281, allocations: 0 / 430.5 MB, free: 1.043 MB / 298.7 MB Notification: Performance of Templates: time 0.01555/0.2966, allocations: 10.86 MB / 441.4 MB, free: 6.215 MB / 314.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches