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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007668/0.0007669, allocations: 92.22 kB / 17.31 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008205/0.0008205, allocations: 175.1 kB / 18.21 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.102/1.102, allocations: 223.3 MB / 242.3 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002047/0.0002047, allocations: 5.828 kB / 302.1 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.068/0.06822, allocations: 50.42 MB / 352.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.001953/0.07018, allocations: 2.114 MB / 354.6 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007917/0.07098, allocations: 499.3 kB / 355.1 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.07111, allocations: 7.938 kB / 355.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001456/0.07126, allocations: 31.77 kB / 355.1 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000138/0.07141, allocations: 75.45 kB / 355.2 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003478/0.07176, allocations: 167.7 kB / 355.4 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003609/0.07213, allocations: 463.1 kB / 355.8 MB, free: 368 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.07226, allocations: 68.56 kB / 355.9 MB, free: 296 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001928/0.07246, allocations: 187.3 kB / 356.1 MB, free: 108 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002406/0.07271, allocations: 219.2 kB / 356.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.787e-05/0.07277, allocations: 20 kB / 356.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001212/0.07289, allocations: 67.95 kB / 356.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.431e-05/0.07298, allocations: 79.66 kB / 356.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001424/0.07313, allocations: 188.8 kB / 356.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002671/0.0734, allocations: 323.3 kB / 356.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.07341, allocations: 4 kB / 356.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.07342, allocations: 4 kB / 357 MB, free: 15.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.07343, allocations: 0 / 357 MB, free: 15.21 MB / 302.1 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.0009574/0.0744, allocations: 0.6237 MB / 357.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.822e-05/0.07443, allocations: 8.031 kB / 357.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.988e-05/0.07451, allocations: 36.56 kB / 357.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002463/0.07476, allocations: 276.6 kB / 357.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.814e-05/0.07479, allocations: 24.88 kB / 357.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.13e-05/0.07486, allocations: 32.36 kB / 357.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006016/0.07547, allocations: 377.2 kB / 358.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.07549, allocations: 192 / 358.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.611e-05/0.07553, allocations: 15.94 kB / 358.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.809e-06/0.07555, allocations: 12 kB / 358.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006517/0.0762, allocations: 406 kB / 358.7 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001607/0.07782, allocations: 1.15 MB / 359.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004401/0.07827, allocations: 304.4 kB / 360.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003072/0.07859, allocations: 197.8 kB / 360.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.875e-05/0.07863, allocations: 7.938 kB / 360.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.07866, allocations: 38.5 kB / 360.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 1.373e-06/0.07866, allocations: 0 / 360.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003935/0.0826, allocations: 2.107 MB / 362.5 MB, free: 9.309 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.041e-05/0.08264, allocations: 55.41 kB / 362.6 MB, free: 9.242 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001901/0.08284, allocations: 248.8 kB / 362.8 MB, free: 8.984 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.427e-05/0.08289, allocations: 37.7 kB / 362.9 MB, free: 8.941 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.802e-05/0.08298, allocations: 156.8 kB / 363 MB, free: 8.785 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.08309, allocations: 157.9 kB / 363.2 MB, free: 8.629 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.239e-05/0.08316, allocations: 45.64 kB / 363.2 MB, free: 8.578 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.68e-05/0.08326, allocations: 342.8 kB / 363.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003461/0.08361, allocations: 209 kB / 363.8 MB, free: 8.027 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003729/0.08399, allocations: 288.8 kB / 364 MB, free: 7.723 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005469/0.08455, allocations: 381.7 kB / 364.4 MB, free: 7.328 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.08456, allocations: 0 / 364.4 MB, free: 7.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001259/0.08582, allocations: 0.6964 MB / 365.1 MB, free: 6.621 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.08585, allocations: 8 kB / 365.1 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.08586, allocations: 0 / 365.1 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007081/0.08657, allocations: 0.4897 MB / 365.6 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002458/0.08682, allocations: 79.91 kB / 365.7 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001015/0.08785, allocations: 1.39 MB / 367.1 MB, free: 4.598 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003966/0.08826, allocations: 96.03 kB / 367.2 MB, free: 4.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.463e-05/0.0883, allocations: 23.94 kB / 367.2 MB, free: 4.48 MB / 302.1 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.0001559/0.08846, allocations: 165.6 kB / 367.4 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.258e-05/0.08853, allocations: 35.56 kB / 367.4 MB, free: 4.273 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.08864, allocations: 47.25 kB / 367.4 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.08865, allocations: 7.984 kB / 367.4 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.08866, allocations: 0 / 367.4 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.08867, allocations: 7.984 kB / 367.4 MB, free: 4.211 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002297/0.09097, allocations: 1.38 MB / 368.8 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.09098, allocations: 0 / 368.8 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002386/0.09123, allocations: 63.91 kB / 368.9 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005963/0.09183, allocations: 461.5 kB / 369.3 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.343e-05/0.09188, allocations: 19.97 kB / 369.4 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000919/0.0928, allocations: 1.343 MB / 370.7 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.09282, allocations: 4.031 kB / 370.7 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1186/0.2114, allocations: 0.943 MB / 371.7 MB, free: 25.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001839/0.2116, allocations: 148.9 kB / 371.8 MB, free: 25.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.832e-05/0.2117, allocations: 21 kB / 371.8 MB, free: 25.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002958/0.212, allocations: 50.3 kB / 371.9 MB, free: 25.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001641/0.2122, allocations: 83.5 kB / 371.9 MB, free: 25.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.651e-05/0.2122, allocations: 22.5 kB / 372 MB, free: 25.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001339/0.2124, allocations: 171.3 kB / 372.1 MB, free: 25.72 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2124, allocations: 0 / 372.1 MB, free: 25.72 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004001/0.2128, allocations: 102.9 kB / 372.2 MB, free: 25.72 MB / 302.1 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.000173/0.2129, allocations: 139.5 kB / 372.4 MB, free: 25.63 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009206/0.2139, allocations: 0.5261 MB / 372.9 MB, free: 25.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2139, allocations: 0 / 372.9 MB, free: 25.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004972/0.2144, allocations: 288.6 kB / 373.2 MB, free: 25.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000451/0.2148, allocations: 49.98 kB / 373.2 MB, free: 25.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001851/0.2167, allocations: 1.238 MB / 374.5 MB, free: 25.03 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001576/0.2169, allocations: 0.779 MB / 375.2 MB, free: 24.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.316e-05/0.217, allocations: 34.56 kB / 375.3 MB, free: 24.32 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.217, allocations: 1.969 kB / 375.3 MB, free: 24.32 MB / 302.1 MB Notification: Performance of Templates: time 0.007281/0.2242, allocations: 6.58 MB / 381.9 MB, free: 22.89 MB / 302.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches