Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001817/0.001818, allocations: 109.3 kB / 18.4 MB, free: 4.699 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.002205/0.002205, allocations: 189.2 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.615/1.615, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 51.94 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1124, allocations: 46.62 MB / 375.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004339/0.1168, allocations: 2.424 MB / 378.2 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001493/0.1183, allocations: 0.5 MB / 378.7 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003164/0.1187, allocations: 4 kB / 378.7 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003162/0.119, allocations: 51.52 kB / 378.8 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003021/0.1193, allocations: 87.27 kB / 378.9 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007628/0.1201, allocations: 195.7 kB / 379 MB, free: 1.316 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007832/0.1209, allocations: 487.1 kB / 379.5 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002321/0.1211, allocations: 72.66 kB / 379.6 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004102/0.1216, allocations: 219.4 kB / 379.8 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004729/0.122, allocations: 235.2 kB / 380 MB, free: 328 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001122/0.1222, allocations: 36 kB / 380.1 MB, free: 292 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002519/0.1224, allocations: 95.88 kB / 380.2 MB, free: 196 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001525/0.1226, allocations: 95.72 kB / 380.3 MB, free: 100 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2281/0.3507, allocations: 180.5 kB / 380.4 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000764/0.3515, allocations: 461.2 kB / 380.9 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3515, allocations: 1.156 kB / 380.9 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3515, allocations: 0 / 380.9 MB, free: 10.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.3515, allocations: 0 / 380.9 MB, free: 10.27 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.001272/0.3528, allocations: 0.6648 MB / 381.6 MB, free: 9.816 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.3528, allocations: 11.72 kB / 381.6 MB, free: 9.816 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.874e-05/0.353, allocations: 34.09 kB / 381.6 MB, free: 9.801 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000412/0.3534, allocations: 288 kB / 381.9 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.933e-05/0.3534, allocations: 19.11 kB / 381.9 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.944e-05/0.3535, allocations: 29.03 kB / 381.9 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000799/0.3543, allocations: 379.6 kB / 382.3 MB, free: 9.543 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.776e-05/0.3543, allocations: 2.359 kB / 382.3 MB, free: 9.543 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.399e-05/0.3544, allocations: 13.62 kB / 382.3 MB, free: 9.539 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.3544, allocations: 6.875 kB / 382.3 MB, free: 9.539 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008332/0.3552, allocations: 409 kB / 382.7 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002018/0.3573, allocations: 1.105 MB / 383.8 MB, free: 9.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005289/0.3578, allocations: 299.7 kB / 384.1 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00033/0.3581, allocations: 197.5 kB / 384.3 MB, free: 9.055 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.37e-05/0.3582, allocations: 3.812 kB / 384.3 MB, free: 9.055 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.13e-05/0.3582, allocations: 37.84 kB / 384.4 MB, free: 9.016 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.553e-06/0.3582, allocations: 1.688 kB / 384.4 MB, free: 9.016 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004348/0.3626, allocations: 2.034 MB / 386.4 MB, free: 8.102 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.713e-05/0.3626, allocations: 56.09 kB / 386.4 MB, free: 8.039 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002394/0.3629, allocations: 241.6 kB / 386.7 MB, free: 7.891 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.81e-05/0.3629, allocations: 40.55 kB / 386.7 MB, free: 7.852 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.531e-05/0.363, allocations: 147.1 kB / 386.9 MB, free: 7.719 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.3631, allocations: 161.9 kB / 387 MB, free: 7.598 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.3633, allocations: 99.72 kB / 387.1 MB, free: 7.547 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.398e-05/0.3634, allocations: 343.8 kB / 387.5 MB, free: 7.219 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003782/0.3638, allocations: 205.9 kB / 387.7 MB, free: 7.148 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004406/0.3642, allocations: 284.5 kB / 387.9 MB, free: 6.996 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005906/0.3648, allocations: 379.1 kB / 388.3 MB, free: 6.812 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3648, allocations: 0 / 388.3 MB, free: 6.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001408/0.3662, allocations: 0.6964 MB / 389 MB, free: 6.547 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.3663, allocations: 8.281 kB / 389 MB, free: 6.547 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.3663, allocations: 4.094 kB / 389 MB, free: 6.547 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008637/0.3672, allocations: 497.3 kB / 389.5 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000298/0.3675, allocations: 77.09 kB / 389.6 MB, free: 6.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001039/0.3685, allocations: 1.382 MB / 391 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004643/0.369, allocations: 68.91 kB / 391 MB, free: 5.227 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.549e-05/0.369, allocations: 20.83 kB / 391 MB, free: 5.223 MB / 318.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.0001961/0.3692, allocations: 156.9 kB / 391.2 MB, free: 5.082 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.801e-05/0.3693, allocations: 35.62 kB / 391.2 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001077/0.3694, allocations: 54.73 kB / 391.3 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.3695, allocations: 4.484 kB / 391.3 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.3695, allocations: 0 / 391.3 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.3695, allocations: 5.828 kB / 391.3 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002679/0.3722, allocations: 1.358 MB / 392.6 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.3722, allocations: 3.781 kB / 392.7 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000267/0.3725, allocations: 61.08 kB / 392.7 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006812/0.3731, allocations: 465.5 kB / 393.2 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.928e-05/0.3732, allocations: 20.36 kB / 393.2 MB, free: 4.203 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008965/0.3741, allocations: 1.335 MB / 394.5 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.3741, allocations: 1.656 kB / 394.5 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00166/0.3758, allocations: 0.9431 MB / 395.5 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001674/0.376, allocations: 158.9 kB / 395.6 MB, free: 2.457 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.638e-05/0.376, allocations: 19.92 kB / 395.6 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002994/0.3764, allocations: 37.89 kB / 395.7 MB, free: 2.438 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001919/0.3766, allocations: 84.59 kB / 395.8 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.382e-05/0.3766, allocations: 22.67 kB / 395.8 MB, free: 2.418 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001591/0.3768, allocations: 172.7 kB / 396 MB, free: 2.316 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3768, allocations: 4 kB / 396 MB, free: 2.312 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004992/0.3773, allocations: 105.5 kB / 396.1 MB, free: 2.297 MB / 318.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.0002102/0.3775, allocations: 133.8 kB / 396.2 MB, free: 2.199 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009953/0.3785, allocations: 0.5 MB / 396.7 MB, free: 2.051 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3785, allocations: 5.594 kB / 396.7 MB, free: 2.047 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000562/0.3791, allocations: 303.8 kB / 397 MB, free: 1.945 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004519/0.3795, allocations: 53.81 kB / 397 MB, free: 1.926 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002144/0.3817, allocations: 1.001 MB / 398 MB, free: 1.328 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/0.382, allocations: 0.7775 MB / 398.8 MB, free: 0.625 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.3821, allocations: 35.56 kB / 398.9 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3821, allocations: 4 kB / 398.9 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of Templates: time 0.01137/0.3935, allocations: 6.651 MB / 405.5 MB, free: 14.17 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches