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.00144/0.00144, allocations: 174.6 kB / 13.63 MB, free: 1.684 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.357/1.357, allocations: 221.3 MB / 235.5 MB, free: 2.871 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008828/0.0008829, allocations: 98.03 kB / 286.5 MB, free: 160 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.841e-05/2.843e-05, allocations: 0 / 343.8 MB, free: 4.293 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1099, allocations: 50.42 MB / 394.2 MB, free: 1.836 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3258/0.4357, allocations: 78.8 MB / 473 MB, free: 8.723 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/0.436, allocations: 77.55 kB / 473.1 MB, free: 8.652 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01588/0.4519, allocations: 5.652 MB / 478.8 MB, free: 2.984 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.452, allocations: 0 / 478.8 MB, free: 2.984 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.79e-05/0.452, allocations: 8 kB / 478.8 MB, free: 2.977 MB / 346.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.001028/0.453, allocations: 0.5924 MB / 479.4 MB, free: 2.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.4531, allocations: 8.031 kB / 479.4 MB, free: 2.332 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.804e-05/0.4532, allocations: 43.53 kB / 479.4 MB, free: 2.289 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000313/0.4535, allocations: 267.5 kB / 479.7 MB, free: 1.988 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.368e-05/0.4536, allocations: 20.56 kB / 479.7 MB, free: 1.965 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.515e-05/0.4537, allocations: 39.89 kB / 479.7 MB, free: 1.926 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005982/0.4543, allocations: 344.8 kB / 480.1 MB, free: 1.582 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.4543, allocations: 4 kB / 480.1 MB, free: 1.578 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.056e-05/0.4543, allocations: 8 kB / 480.1 MB, free: 1.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.4544, allocations: 11.95 kB / 480.1 MB, free: 1.559 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005569/0.4549, allocations: 338.1 kB / 480.4 MB, free: 1.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001997/0.4569, allocations: 1.127 MB / 481.6 MB, free: 24 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004485/0.4574, allocations: 286.5 kB / 481.8 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003009/0.4577, allocations: 172.8 kB / 482 MB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.348e-05/0.4578, allocations: 8.688 kB / 482 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.4578, allocations: 34.56 kB / 482 MB, free: 15.51 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 2.244e-06/0.4578, allocations: 0 / 482 MB, free: 15.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=47): time 0.002534/0.4604, allocations: 1.415 MB / 483.5 MB, free: 14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.64e-05/0.4604, allocations: 59.8 kB / 483.5 MB, free: 13.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.4606, allocations: 192.9 kB / 483.7 MB, free: 13.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.836e-05/0.4606, allocations: 37.7 kB / 483.7 MB, free: 13.69 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.193e-05/0.4607, allocations: 148.8 kB / 483.9 MB, free: 13.54 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.4609, allocations: 161.9 kB / 484.1 MB, free: 13.38 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-05/0.4609, allocations: 12.11 kB / 484.1 MB, free: 13.37 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.461, allocations: 338.8 kB / 484.4 MB, free: 13.03 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002924/0.4613, allocations: 177.1 kB / 484.6 MB, free: 12.86 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003715/0.4617, allocations: 244.9 kB / 484.8 MB, free: 12.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002331/0.4619, allocations: 149.5 kB / 485 MB, free: 12.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.462, allocations: 0 / 485 MB, free: 12.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001248/0.4632, allocations: 0.626 MB / 485.6 MB, free: 11.81 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.4632, allocations: 4 kB / 485.6 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.821e-05/0.4633, allocations: 7.953 kB / 485.6 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006762/0.464, allocations: 373.7 kB / 486 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002514/0.4642, allocations: 71.84 kB / 486 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001061/0.4653, allocations: 1.316 MB / 487.3 MB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000458/0.4658, allocations: 96.02 kB / 487.4 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.042e-05/0.4658, allocations: 23.98 kB / 487.5 MB, free: 9.871 MB / 362.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 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001462/0.466, allocations: 132.9 kB / 487.6 MB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.95e-05/0.4661, allocations: 31.62 kB / 487.6 MB, free: 9.703 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001336/0.4674, allocations: 0.6286 MB / 488.2 MB, free: 9.051 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.4674, allocations: 11.95 kB / 488.3 MB, free: 9.039 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.4674, allocations: 0 / 488.3 MB, free: 9.039 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.4674, allocations: 3.984 kB / 488.3 MB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002507/0.47, allocations: 1.29 MB / 489.6 MB, free: 7.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.47, allocations: 0 / 489.6 MB, free: 7.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002649/0.4703, allocations: 63.91 kB / 489.6 MB, free: 7.605 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005921/0.4709, allocations: 341.6 kB / 489.9 MB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.584e-05/0.4709, allocations: 23.97 kB / 490 MB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009981/0.4719, allocations: 1.265 MB / 491.2 MB, free: 5.926 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4719, allocations: 0 / 491.2 MB, free: 5.926 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001497/0.4734, allocations: 0.897 MB / 492.1 MB, free: 4.961 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000238/0.4737, allocations: 152.7 kB / 492.3 MB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.321e-05/0.4738, allocations: 16 kB / 492.3 MB, free: 4.777 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003118/0.4741, allocations: 55.95 kB / 492.4 MB, free: 4.723 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002024/0.4743, allocations: 95.91 kB / 492.4 MB, free: 4.629 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-05/0.4744, allocations: 31.92 kB / 492.5 MB, free: 4.598 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001683/0.4745, allocations: 161.4 kB / 492.6 MB, free: 4.438 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4745, allocations: 0 / 492.6 MB, free: 4.438 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004986/0.475, allocations: 108 kB / 492.7 MB, free: 4.332 MB / 362.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002553/0.4753, allocations: 144.2 kB / 492.9 MB, free: 4.184 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009414/0.4763, allocations: 0.4982 MB / 493.4 MB, free: 3.676 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.4763, allocations: 0 / 493.4 MB, free: 3.676 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005287/0.4768, allocations: 280.2 kB / 493.7 MB, free: 3.402 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004191/0.4772, allocations: 40.41 kB / 493.7 MB, free: 3.363 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002136/0.4794, allocations: 0.8542 MB / 494.5 MB, free: 2.473 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000343/0.4797, allocations: 0.7842 MB / 495.3 MB, free: 1.664 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001395/0.4799, allocations: 26.97 kB / 495.4 MB, free: 1.641 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.616e-05/0.48, allocations: 27.42 kB / 495.4 MB, free: 1.613 MB / 362.7 MB Notification: Performance of SimCode: time 1.313e-06/0.48, allocations: 0 / 495.4 MB, free: 1.613 MB / 362.7 MB Notification: Performance of Templates: time 0.01237/0.4924, allocations: 7.383 MB / 0.491 GB, free: 10.27 MB / 378.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/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