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.001081/0.001081, allocations: 115 kB / 17.07 MB, free: 6 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.001148/0.001148, allocations: 192 kB / 18 MB, free: 5.082 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.333/1.333, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001762/0.001762, allocations: 39.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3398, allocations: 49.44 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003877/0.3437, allocations: 2.438 MB / 403.1 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.3447, allocations: 0.4953 MB / 403.6 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001422/0.3449, allocations: 4 kB / 403.6 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002411/0.3451, allocations: 51.52 kB / 403.7 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001509/0.3453, allocations: 83.27 kB / 403.8 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004777/0.3458, allocations: 191.7 kB / 404 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004404/0.3463, allocations: 495.1 kB / 404.4 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001709/0.3464, allocations: 64.72 kB / 404.5 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002156/0.3467, allocations: 211.4 kB / 404.7 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002742/0.3469, allocations: 239.2 kB / 404.9 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.634e-05/0.347, allocations: 36 kB / 405 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00016/0.3472, allocations: 95.88 kB / 405.1 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.3473, allocations: 99.72 kB / 405.2 MB, free: 4.387 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001644/0.3475, allocations: 179.1 kB / 405.4 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004565/0.3479, allocations: 471.6 kB / 405.8 MB, free: 3.754 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3479, allocations: 0 / 405.8 MB, free: 3.754 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3479, allocations: 0 / 405.8 MB, free: 3.754 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.348, allocations: 0 / 405.8 MB, free: 3.754 MB / 318.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.001201/0.3492, allocations: 0.6588 MB / 406.5 MB, free: 3.043 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.3492, allocations: 12.02 kB / 406.5 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.262e-05/0.3493, allocations: 40.47 kB / 406.5 MB, free: 2.992 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000408/0.3497, allocations: 280.6 kB / 406.8 MB, free: 2.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.619e-05/0.3498, allocations: 20.94 kB / 406.8 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.037e-05/0.3499, allocations: 36.36 kB / 406.9 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006725/0.3505, allocations: 377.2 kB / 407.2 MB, free: 2.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.595e-05/0.3506, allocations: 8.031 kB / 407.2 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.057e-05/0.3506, allocations: 15.94 kB / 407.2 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.3506, allocations: 4 kB / 407.2 MB, free: 2.223 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007296/0.3514, allocations: 406 kB / 407.6 MB, free: 1.828 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001812/0.3532, allocations: 1.108 MB / 408.8 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004961/0.3537, allocations: 291.6 kB / 409 MB, free: 356 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003397/0.3541, allocations: 201.8 kB / 409.2 MB, free: 152 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.718e-05/0.3541, allocations: 4 kB / 409.2 MB, free: 148 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/0.3541, allocations: 38.5 kB / 409.3 MB, free: 100 kB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.345e-06/0.3541, allocations: 0 / 409.3 MB, free: 100 kB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004212/0.3584, allocations: 2.033 MB / 411.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.271e-05/0.3584, allocations: 59.41 kB / 411.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002258/0.3587, allocations: 240.9 kB / 411.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.172e-05/0.3587, allocations: 37.7 kB / 411.6 MB, free: 13.56 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.333e-05/0.3588, allocations: 152.7 kB / 411.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/0.3589, allocations: 157.9 kB / 411.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.3591, allocations: 94.14 kB / 412 MB, free: 13.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.3592, allocations: 342.8 kB / 412.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003688/0.3596, allocations: 213 kB / 412.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004072/0.36, allocations: 288.8 kB / 412.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005982/0.3606, allocations: 377.7 kB / 413.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3606, allocations: 0 / 413.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001355/0.362, allocations: 0.6924 MB / 413.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.362, allocations: 4 kB / 413.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.3621, allocations: 4 kB / 413.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000821/0.3629, allocations: 489.5 kB / 414.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002836/0.3632, allocations: 79.84 kB / 414.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001218/0.3644, allocations: 1.394 MB / 415.9 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003577/0.3648, allocations: 67.91 kB / 415.9 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-05/0.3648, allocations: 16 kB / 416 MB, free: 9.105 MB / 334.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.000203/0.365, allocations: 166.4 kB / 416.1 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.635e-05/0.3651, allocations: 35.56 kB / 416.2 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001128/0.3653, allocations: 47.3 kB / 416.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.3653, allocations: 7.984 kB / 416.2 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.3653, allocations: 0 / 416.2 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3653, allocations: 0 / 416.2 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002518/0.3678, allocations: 1.345 MB / 417.6 MB, free: 7.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.3678, allocations: 0 / 417.6 MB, free: 7.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002635/0.3681, allocations: 63.91 kB / 417.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006708/0.3688, allocations: 469.5 kB / 418.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.611e-05/0.3688, allocations: 15.98 kB / 418.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001073/0.3699, allocations: 1.347 MB / 419.4 MB, free: 5.48 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3699, allocations: 0 / 419.4 MB, free: 5.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001632/0.3716, allocations: 0.9402 MB / 420.4 MB, free: 4.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001802/0.3718, allocations: 156.7 kB / 420.5 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.918e-05/0.3718, allocations: 27.86 kB / 420.6 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002554/0.3721, allocations: 31.97 kB / 420.6 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/0.3723, allocations: 87.86 kB / 420.7 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.381e-05/0.3724, allocations: 23.97 kB / 420.7 MB, free: 4.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001648/0.3725, allocations: 168.5 kB / 420.9 MB, free: 3.996 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3726, allocations: 0 / 420.9 MB, free: 3.996 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004626/0.373, allocations: 108 kB / 421 MB, free: 3.891 MB / 334.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.0002305/0.3733, allocations: 135.2 kB / 421.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001013/0.3743, allocations: 0.5222 MB / 421.6 MB, free: 3.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3743, allocations: 0 / 421.6 MB, free: 3.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005642/0.3749, allocations: 299.6 kB / 421.9 MB, free: 2.938 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004647/0.3753, allocations: 55.62 kB / 422 MB, free: 2.887 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002082/0.3774, allocations: 0.9722 MB / 422.9 MB, free: 1.875 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003372/0.3778, allocations: 0.78 MB / 423.7 MB, free: 1.07 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001258/0.3779, allocations: 34.95 kB / 423.8 MB, free: 1.035 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.435e-05/0.378, allocations: 31.44 kB / 423.8 MB, free: 1.004 MB / 334.1 MB Notification: Performance of SimCode: time 6.51e-07/0.378, allocations: 0 / 423.8 MB, free: 1.004 MB / 334.1 MB Notification: Performance of Templates: time 0.01278/0.3908, allocations: 8.788 MB / 432.6 MB, free: 8.246 MB / 350.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins/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