Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 207.3 kB / 17.99 MB, free: 3.773 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001263/0.001263, allocations: 103.9 kB / 296.7 MB, free: 6.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 47.92 kB / 356.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2372, allocations: 50.45 MB / 407 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003165/0.2404, allocations: 2.606 MB / 409.7 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007988/0.2413, allocations: 0.561 MB / 410.2 MB, free: 24.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.2414, allocations: 4 kB / 410.2 MB, free: 24.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002591/0.2417, allocations: 51.67 kB / 410.3 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002189/0.2419, allocations: 118.6 kB / 410.4 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002086/0.2421, allocations: 143.8 kB / 410.5 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003365/0.2425, allocations: 487.1 kB / 411 MB, free: 23.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.2426, allocations: 60.69 kB / 411.1 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001613/0.2428, allocations: 207.3 kB / 411.3 MB, free: 23.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002137/0.243, allocations: 231.1 kB / 411.5 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.719e-05/0.2431, allocations: 24 kB / 411.5 MB, free: 23.37 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.2432, allocations: 75.97 kB / 411.6 MB, free: 23.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001184/0.2433, allocations: 99.62 kB / 411.7 MB, free: 23.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.2435, allocations: 183 kB / 411.9 MB, free: 23.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003487/0.2438, allocations: 472 kB / 412.3 MB, free: 22.56 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.2438, allocations: 4 kB / 412.3 MB, free: 22.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2438, allocations: 0 / 412.3 MB, free: 22.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.2439, allocations: 0 / 412.3 MB, free: 22.55 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001077/0.2449, allocations: 0.6978 MB / 413 MB, free: 21.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.245, allocations: 12.03 kB / 413 MB, free: 21.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.936e-05/0.2451, allocations: 36.56 kB / 413.1 MB, free: 21.75 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002735/0.2453, allocations: 303.4 kB / 413.4 MB, free: 21.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/0.2454, allocations: 21.03 kB / 413.4 MB, free: 21.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.804e-05/0.2454, allocations: 32.38 kB / 413.4 MB, free: 21.37 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005699/0.246, allocations: 366.5 kB / 413.8 MB, free: 21.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.2461, allocations: 12.02 kB / 413.8 MB, free: 21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.651e-05/0.2461, allocations: 15.94 kB / 413.8 MB, free: 20.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.2461, allocations: 8 kB / 413.8 MB, free: 20.97 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006356/0.2467, allocations: 374.4 kB / 414.2 MB, free: 20.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001558/0.2483, allocations: 1.116 MB / 415.3 MB, free: 19.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000466/0.2488, allocations: 318.7 kB / 415.6 MB, free: 19.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002867/0.2491, allocations: 196.7 kB / 415.8 MB, free: 18.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.638e-05/0.2491, allocations: 4.719 kB / 415.8 MB, free: 18.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.733e-05/0.2492, allocations: 38.56 kB / 415.8 MB, free: 18.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.993e-06/0.2492, allocations: 3.938 kB / 415.8 MB, free: 18.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.003785/0.253, allocations: 1.963 MB / 417.8 MB, free: 16.74 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.231e-05/0.253, allocations: 59.84 kB / 417.9 MB, free: 16.67 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001988/0.2532, allocations: 260.8 kB / 418.1 MB, free: 16.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.526e-05/0.2533, allocations: 41.7 kB / 418.2 MB, free: 16.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.263e-05/0.2533, allocations: 148.9 kB / 418.3 MB, free: 16.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.83e-05/0.2534, allocations: 169.7 kB / 418.5 MB, free: 16.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/0.2536, allocations: 90.25 kB / 418.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.03e-05/0.2536, allocations: 338.8 kB / 418.9 MB, free: 15.61 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003135/0.2539, allocations: 189 kB / 419.1 MB, free: 15.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003317/0.2543, allocations: 264.8 kB / 419.3 MB, free: 15.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004742/0.2548, allocations: 345.7 kB / 419.7 MB, free: 14.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2548, allocations: 3.938 kB / 419.7 MB, free: 14.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009293/0.2557, allocations: 0.5912 MB / 420.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.772e-05/0.2557, allocations: 11.97 kB / 420.3 MB, free: 14.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.2558, allocations: 7.984 kB / 420.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005922/0.2564, allocations: 281.6 kB / 420.6 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002411/0.2566, allocations: 71.84 kB / 420.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008973/0.2575, allocations: 1.358 MB / 422 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000395/0.2579, allocations: 72.06 kB / 422.1 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.385e-05/0.258, allocations: 20 kB / 422.1 MB, free: 12.29 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 (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 (47): * Single equations (assignments): 45 * 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,9), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001456/0.2581, allocations: 167.7 kB / 422.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.136e-05/0.2582, allocations: 35.56 kB / 422.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/0.2583, allocations: 47.62 kB / 422.3 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.2583, allocations: 8 kB / 422.3 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.2583, allocations: 48 / 422.3 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.2584, allocations: 7.969 kB / 422.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002187/0.2605, allocations: 1.334 MB / 423.7 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.2606, allocations: 0 / 423.7 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002476/0.2608, allocations: 55.97 kB / 423.7 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004332/0.2613, allocations: 261.6 kB / 424 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.833e-05/0.2613, allocations: 19.98 kB / 424 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008074/0.2621, allocations: 1.3 MB / 425.3 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.2621, allocations: 4 kB / 425.3 MB, free: 8.922 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007848/0.27, allocations: 6.913 MB / 432.2 MB, free: 1.543 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000141/0.2702, allocations: 148.7 kB / 432.4 MB, free: 1.379 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.297e-05/0.2702, allocations: 20 kB / 432.4 MB, free: 1.359 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002938/0.2705, allocations: 39.95 kB / 432.4 MB, free: 1.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001751/0.2707, allocations: 91.73 kB / 432.5 MB, free: 1.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.503e-05/0.2708, allocations: 19.98 kB / 432.5 MB, free: 1.211 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000138/0.2709, allocations: 196.5 kB / 432.7 MB, free: 1.016 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2709, allocations: 0 / 432.7 MB, free: 1.016 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005728/0.2715, allocations: 140 kB / 432.9 MB, free: 0.8789 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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009798/0.2725, allocations: 480.3 kB / 433.3 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008836/0.2734, allocations: 489.5 kB / 433.8 MB, free: 96 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2734, allocations: 0 / 433.8 MB, free: 96 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005835/0.274, allocations: 280.1 kB / 434.1 MB, free: 15.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005262/0.2745, allocations: 57.55 kB / 434.1 MB, free: 15.76 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002975/0.2775, allocations: 1.7 MB / 435.8 MB, free: 13.98 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003665/0.2779, allocations: 0.808 MB / 436.6 MB, free: 13.15 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001903/0.2781, allocations: 42.94 kB / 436.7 MB, free: 13.11 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.2782, allocations: 39.41 kB / 436.7 MB, free: 13.07 MB / 314.7 MB Notification: Performance of SimCode: time 7.62e-07/0.2782, allocations: 0 / 436.7 MB, free: 13.07 MB / 314.7 MB Notification: Performance of Templates: time 0.02641/0.3047, allocations: 10.17 MB / 446.9 MB, free: 2.953 MB / 314.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches