Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001313/0.001313, allocations: 178.1 kB / 17.36 MB, free: 4.191 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.471/1.471, allocations: 205.6 MB / 223.7 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007385/0.0007386, allocations: 90.7 kB / 272.1 MB, free: 8.109 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002704/0.0002705, allocations: 8 kB / 329 MB, free: 15.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2429, allocations: 47.58 MB / 376.6 MB, free: 45.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002246/0.2452, allocations: 2.04 MB / 378.6 MB, free: 43.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000862/0.2461, allocations: 0.5727 MB / 379.2 MB, free: 43.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001212/0.2462, allocations: 3.281 kB / 379.2 MB, free: 43.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001967/0.2464, allocations: 43.39 kB / 379.3 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001295/0.2466, allocations: 64.62 kB / 379.3 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003644/0.2469, allocations: 166.6 kB / 379.5 MB, free: 43.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004796/0.2474, allocations: 472 kB / 379.9 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002093/0.2476, allocations: 57.31 kB / 380 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002506/0.2479, allocations: 192.5 kB / 380.2 MB, free: 42.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002923/0.2482, allocations: 216.5 kB / 380.4 MB, free: 42.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.426e-05/0.2483, allocations: 20.53 kB / 380.4 MB, free: 42.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001798/0.2485, allocations: 69.58 kB / 380.5 MB, free: 42.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001136/0.2486, allocations: 74.38 kB / 380.6 MB, free: 42.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001882/0.2488, allocations: 188.7 kB / 380.7 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004694/0.2493, allocations: 432.4 kB / 381.2 MB, free: 42.15 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.2493, allocations: 0 / 381.2 MB, free: 42.15 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2493, allocations: 1.281 kB / 381.2 MB, free: 42.15 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.2493, allocations: 0 / 381.2 MB, free: 42.15 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.001117/0.2504, allocations: 0.6212 MB / 381.8 MB, free: 41.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.2505, allocations: 9.344 kB / 381.8 MB, free: 41.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.91e-05/0.2506, allocations: 34.66 kB / 381.8 MB, free: 41.6 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002633/0.2508, allocations: 280.5 kB / 382.1 MB, free: 41.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.596e-05/0.2509, allocations: 20.88 kB / 382.1 MB, free: 41.31 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.27e-05/0.251, allocations: 38.44 kB / 382.2 MB, free: 41.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006532/0.2516, allocations: 374 kB / 382.5 MB, free: 41.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.2517, allocations: 1.25 kB / 382.5 MB, free: 41.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.786e-05/0.2517, allocations: 19.47 kB / 382.5 MB, free: 41.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.2517, allocations: 6.031 kB / 382.6 MB, free: 41.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000718/0.2524, allocations: 405.9 kB / 383 MB, free: 40.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001715/0.2542, allocations: 1.135 MB / 384.1 MB, free: 39.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005196/0.2547, allocations: 292 kB / 384.4 MB, free: 39.82 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003433/0.2551, allocations: 204.6 kB / 384.6 MB, free: 39.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.591e-05/0.2551, allocations: 3.719 kB / 384.6 MB, free: 39.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.086e-05/0.2551, allocations: 45.12 kB / 384.6 MB, free: 39.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 1.623e-06/0.2551, allocations: 0 / 384.6 MB, free: 39.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.003958/0.2591, allocations: 2.108 MB / 386.7 MB, free: 38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.431e-05/0.2591, allocations: 55.41 kB / 386.8 MB, free: 37.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001708/0.2593, allocations: 236.9 kB / 387 MB, free: 37.69 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.429e-05/0.2594, allocations: 41.7 kB / 387.1 MB, free: 37.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.305e-05/0.2594, allocations: 148.7 kB / 387.2 MB, free: 37.49 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.038e-05/0.2595, allocations: 158 kB / 387.4 MB, free: 37.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.456e-05/0.2596, allocations: 8 kB / 387.4 MB, free: 37.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.452e-05/0.2596, allocations: 346.8 kB / 387.7 MB, free: 36.98 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003107/0.2599, allocations: 205 kB / 387.9 MB, free: 36.78 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003349/0.2603, allocations: 292.8 kB / 388.2 MB, free: 36.46 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004922/0.2608, allocations: 381.7 kB / 388.6 MB, free: 36.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2608, allocations: 4 kB / 388.6 MB, free: 36.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001202/0.262, allocations: 0.6886 MB / 389.3 MB, free: 35.36 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.262, allocations: 8 kB / 389.3 MB, free: 35.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.2621, allocations: 11.92 kB / 389.3 MB, free: 35.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007978/0.2629, allocations: 489.4 kB / 389.7 MB, free: 34.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002658/0.2631, allocations: 79.84 kB / 389.8 MB, free: 34.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009069/0.2641, allocations: 1.39 MB / 391.2 MB, free: 33.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000357/0.2644, allocations: 91.98 kB / 391.3 MB, free: 33.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.956e-05/0.2645, allocations: 19.98 kB / 391.3 MB, free: 33.23 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 (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 () * 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.0001481/0.2646, allocations: 161.7 kB / 391.5 MB, free: 33.06 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.856e-05/0.2647, allocations: 35.56 kB / 391.5 MB, free: 33.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.543e-05/0.2648, allocations: 55.3 kB / 391.6 MB, free: 32.97 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.2648, allocations: 4 kB / 391.6 MB, free: 32.97 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.463e-06/0.2648, allocations: 0 / 391.6 MB, free: 32.97 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.2648, allocations: 3.984 kB / 391.6 MB, free: 32.96 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002236/0.2671, allocations: 1.396 MB / 393 MB, free: 31.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.2671, allocations: 0 / 393 MB, free: 31.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002454/0.2673, allocations: 68.06 kB / 393 MB, free: 31.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005518/0.2679, allocations: 461.4 kB / 393.5 MB, free: 30.97 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.813e-05/0.2679, allocations: 27.91 kB / 393.5 MB, free: 30.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008198/0.2688, allocations: 1.331 MB / 394.9 MB, free: 29.56 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.2688, allocations: 3.938 kB / 394.9 MB, free: 29.55 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001396/0.2702, allocations: 0.9549 MB / 395.8 MB, free: 28.56 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.2703, allocations: 152.7 kB / 396 MB, free: 28.39 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.606e-05/0.2704, allocations: 16 kB / 396 MB, free: 28.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003007/0.2707, allocations: 59.89 kB / 396 MB, free: 28.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/0.2709, allocations: 79.84 kB / 396.1 MB, free: 28.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.561e-05/0.2709, allocations: 23.98 kB / 396.1 MB, free: 28.22 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001188/0.2711, allocations: 168.5 kB / 396.3 MB, free: 28.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2711, allocations: 0 / 396.3 MB, free: 28.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003929/0.2715, allocations: 100 kB / 396.4 MB, free: 27.95 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.0002071/0.2717, allocations: 140.7 kB / 396.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008829/0.2726, allocations: 0.5104 MB / 397 MB, free: 27.3 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2726, allocations: 0 / 397 MB, free: 27.3 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004782/0.2731, allocations: 292.1 kB / 397.3 MB, free: 27.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004819/0.2736, allocations: 63.72 kB / 397.4 MB, free: 26.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001943/0.2755, allocations: 1.202 MB / 398.6 MB, free: 25.72 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002166/0.2758, allocations: 0.7803 MB / 399.4 MB, free: 24.91 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.00013/0.2759, allocations: 38.97 kB / 399.4 MB, free: 24.87 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.698e-05/0.276, allocations: 23.44 kB / 399.4 MB, free: 24.85 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.276, allocations: 0 / 399.4 MB, free: 24.85 MB / 298.7 MB Notification: Performance of Templates: time 0.0101/0.2861, allocations: 8.117 MB / 407.6 MB, free: 16.75 MB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches