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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001624/0.001624, allocations: 105 kB / 16.92 MB, free: 5.855 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.001734/0.001734, allocations: 191.3 kB / 17.85 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.649/2.649, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002112/0.002112, allocations: 47.48 kB / 300.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2104/0.2126, allocations: 49.45 MB / 350.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.007055/0.2197, allocations: 2.431 MB / 352.6 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001877/0.2217, allocations: 0.4952 MB / 353.1 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002477/0.222, allocations: 4 kB / 353.1 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003493/0.2224, allocations: 47.52 kB / 353.1 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002801/0.2227, allocations: 83.28 kB / 353.2 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000837/0.2235, allocations: 187.7 kB / 353.4 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008971/0.2245, allocations: 495.1 kB / 353.9 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002654/0.2247, allocations: 64.58 kB / 354 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004524/0.2252, allocations: 215.4 kB / 354.2 MB, free: 320 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004997/0.2257, allocations: 235.2 kB / 354.4 MB, free: 84 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.682e-05/0.2258, allocations: 44 kB / 354.4 MB, free: 40 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003138/0.2262, allocations: 87.89 kB / 354.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001753/0.2263, allocations: 95.72 kB / 354.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002932/0.2266, allocations: 183.1 kB / 354.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008953/0.2276, allocations: 458.8 kB / 355.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.784e-06/0.2276, allocations: 0 / 355.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.2276, allocations: 0 / 355.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.2276, allocations: 0 / 355.2 MB, free: 15.23 MB / 302.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.002053/0.2297, allocations: 0.6627 MB / 355.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.54e-05/0.2298, allocations: 12.03 kB / 355.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001303/0.2299, allocations: 58.73 kB / 356 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001456/0.2301, allocations: 32.56 kB / 356 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000601/0.2307, allocations: 288.6 kB / 356.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.727e-05/0.2308, allocations: 20.94 kB / 356.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.2309, allocations: 36.28 kB / 356.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.2319, allocations: 377.2 kB / 356.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.373e-05/0.232, allocations: 3.938 kB / 356.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.494e-05/0.2321, allocations: 15.94 kB / 356.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.542e-05/0.2321, allocations: 11.94 kB / 356.7 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.2333, allocations: 402 kB / 357.1 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003171/0.2365, allocations: 1.115 MB / 358.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000807/0.2373, allocations: 295.5 kB / 358.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000576/0.2379, allocations: 197.4 kB / 358.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.62e-05/0.238, allocations: 11.94 kB / 358.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.864e-05/0.2381, allocations: 34.56 kB / 358.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 4.598e-06/0.2381, allocations: 0 / 358.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.007585/0.2457, allocations: 2.025 MB / 360.8 MB, free: 9.336 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.2458, allocations: 55.41 kB / 360.9 MB, free: 9.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004835/0.2463, allocations: 244.9 kB / 361.1 MB, free: 9.016 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.984e-05/0.2464, allocations: 41.69 kB / 361.1 MB, free: 8.969 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000223/0.2467, allocations: 152.8 kB / 361.3 MB, free: 8.816 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002162/0.2469, allocations: 153.8 kB / 361.4 MB, free: 8.664 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000305/0.2472, allocations: 94.23 kB / 361.5 MB, free: 8.566 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002465/0.2475, allocations: 342.8 kB / 361.9 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000661/0.2482, allocations: 213 kB / 362.1 MB, free: 8.012 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009117/0.2491, allocations: 284.8 kB / 362.3 MB, free: 7.711 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009826/0.2501, allocations: 377.7 kB / 362.7 MB, free: 7.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.2501, allocations: 0 / 362.7 MB, free: 7.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002312/0.2524, allocations: 0.6924 MB / 363.4 MB, free: 6.617 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.796e-05/0.2525, allocations: 10.81 kB / 363.4 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/0.2525, allocations: 0 / 363.4 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001633/0.2541, allocations: 493.5 kB / 363.9 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004691/0.2546, allocations: 75.84 kB / 364 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002203/0.2568, allocations: 1.397 MB / 365.4 MB, free: 4.598 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006382/0.2575, allocations: 63.91 kB / 365.4 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.225e-05/0.2576, allocations: 20 kB / 365.5 MB, free: 4.516 MB / 302.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.0003746/0.258, allocations: 169.7 kB / 365.6 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.2581, allocations: 27.62 kB / 365.6 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001725/0.2583, allocations: 51.3 kB / 365.7 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.2583, allocations: 4 kB / 365.7 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.807e-05/0.2583, allocations: 0 / 365.7 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/0.2584, allocations: 3.984 kB / 365.7 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004276/0.2626, allocations: 1.345 MB / 367.1 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.635e-06/0.2627, allocations: 4.031 kB / 367.1 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004314/0.2631, allocations: 67.91 kB / 367.1 MB, free: 2.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001183/0.2643, allocations: 461.4 kB / 367.6 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.994e-05/0.2644, allocations: 23.97 kB / 367.6 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001885/0.2663, allocations: 1.335 MB / 368.9 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.075e-06/0.2663, allocations: 3.984 kB / 368.9 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.33/0.5963, allocations: 0.9429 MB / 369.9 MB, free: 26.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004234/0.5968, allocations: 149.6 kB / 370 MB, free: 26.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001526/0.5969, allocations: 21.34 kB / 370 MB, free: 26.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004562/0.5974, allocations: 39.47 kB / 370.1 MB, free: 26.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002766/0.5977, allocations: 81.62 kB / 370.2 MB, free: 26.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.672e-05/0.5978, allocations: 23.39 kB / 370.2 MB, free: 26.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002353/0.598, allocations: 167 kB / 370.3 MB, free: 25.94 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5981, allocations: 1.906 kB / 370.4 MB, free: 25.94 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006555/0.5987, allocations: 106.7 kB / 370.5 MB, free: 25.94 MB / 302.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.002739/0.6015, allocations: 1.524 MB / 372 MB, free: 25.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.603, allocations: 0.5332 MB / 372.5 MB, free: 25.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.603, allocations: 0 / 372.5 MB, free: 25.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007797/0.6038, allocations: 289.8 kB / 372.8 MB, free: 25.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007084/0.6045, allocations: 55.64 kB / 372.8 MB, free: 25.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008244/0.6127, allocations: 4.131 MB / 377 MB, free: 22.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002789/0.6131, allocations: 0.7761 MB / 377.8 MB, free: 22.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001803/0.6132, allocations: 33.38 kB / 377.8 MB, free: 22.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001649/0.6134, allocations: 91.62 kB / 377.9 MB, free: 22 MB / 302.1 MB Notification: Performance of SimCode: time 1.743e-06/0.6134, allocations: 4 kB / 377.9 MB, free: 22 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05015/0.6636, allocations: 11.51 MB / 389.4 MB, free: 17.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.06/20.72, allocations: 11.33 kB / 389.4 MB, free: 17.94 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/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