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.001036/0.001036, allocations: 110.2 kB / 17.06 MB, free: 5.82 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.001084/0.001084, allocations: 195 kB / 18 MB, free: 4.965 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.468/1.468, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 47.92 kB / 350.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3295, allocations: 49.44 MB / 400.2 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004362/0.3339, allocations: 2.445 MB / 402.7 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001336/0.3353, allocations: 499.2 kB / 403.1 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000275/0.3356, allocations: 4 kB / 403.2 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002616/0.3359, allocations: 51.45 kB / 403.2 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002243/0.3361, allocations: 91.27 kB / 403.3 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005952/0.3367, allocations: 187.7 kB / 403.5 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005371/0.3373, allocations: 495.1 kB / 404 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.3375, allocations: 68.7 kB / 404 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002497/0.3378, allocations: 211.3 kB / 404.2 MB, free: 4.809 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003217/0.3381, allocations: 239.2 kB / 404.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.302e-05/0.3382, allocations: 36 kB / 404.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001806/0.3383, allocations: 95.88 kB / 404.6 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001388/0.3385, allocations: 95.72 kB / 404.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001826/0.3387, allocations: 187.1 kB / 404.9 MB, free: 4.168 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005716/0.3393, allocations: 465.5 kB / 405.3 MB, free: 3.715 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3393, allocations: 0 / 405.3 MB, free: 3.715 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3393, allocations: 0 / 405.3 MB, free: 3.715 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.368e-05/0.3393, allocations: 0 / 405.3 MB, free: 3.715 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.001447/0.3408, allocations: 0.6739 MB / 406 MB, free: 2.988 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001044/0.3409, allocations: 12.02 kB / 406 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001328/0.341, allocations: 58.73 kB / 406.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001283/0.3412, allocations: 40.7 kB / 406.1 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006222/0.3418, allocations: 292.6 kB / 406.4 MB, free: 2.547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.814e-05/0.3419, allocations: 28.94 kB / 406.4 MB, free: 2.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.741e-05/0.342, allocations: 32.38 kB / 406.5 MB, free: 2.488 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000763/0.3427, allocations: 377.2 kB / 406.8 MB, free: 2.113 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.217e-05/0.3428, allocations: 7.875 kB / 406.8 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.266e-05/0.3428, allocations: 12 kB / 406.8 MB, free: 2.094 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.3428, allocations: 8 kB / 406.8 MB, free: 2.086 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007545/0.3436, allocations: 402 kB / 407.2 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001965/0.3456, allocations: 1.104 MB / 408.3 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000551/0.3461, allocations: 295.3 kB / 408.6 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003565/0.3465, allocations: 201.8 kB / 408.8 MB, free: 16 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.747e-05/0.3466, allocations: 4 kB / 408.8 MB, free: 12 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.738e-05/0.3466, allocations: 38.5 kB / 408.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 2.144e-06/0.3466, allocations: 0 / 408.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004741/0.3514, allocations: 2.037 MB / 410.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.958e-05/0.3515, allocations: 63.41 kB / 411 MB, free: 13.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002748/0.3517, allocations: 233 kB / 411.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.465e-05/0.3518, allocations: 41.69 kB / 411.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.3519, allocations: 157 kB / 411.4 MB, free: 13.28 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001493/0.3521, allocations: 158.7 kB / 411.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001804/0.3523, allocations: 94.19 kB / 411.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.3524, allocations: 342.8 kB / 412 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004243/0.3529, allocations: 221 kB / 412.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004624/0.3533, allocations: 280.8 kB / 412.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000674/0.354, allocations: 377.7 kB / 412.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.354, allocations: 4 kB / 412.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001531/0.3556, allocations: 0.6925 MB / 413.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.3556, allocations: 4 kB / 413.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.3556, allocations: 4 kB / 413.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008886/0.3565, allocations: 493.5 kB / 414 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003048/0.3568, allocations: 75.84 kB / 414.1 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001509/0.3584, allocations: 1.39 MB / 415.5 MB, free: 9.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000468/0.3588, allocations: 67.91 kB / 415.5 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.957e-05/0.3589, allocations: 20.19 kB / 415.6 MB, free: 8.965 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.0002696/0.3592, allocations: 170.1 kB / 415.7 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/0.3593, allocations: 35.81 kB / 415.8 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001148/0.3594, allocations: 43.31 kB / 415.8 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.717e-06/0.3594, allocations: 4 kB / 415.8 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/0.3595, allocations: 3.984 kB / 415.8 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.667e-06/0.3595, allocations: 3.984 kB / 415.8 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003042/0.3625, allocations: 1.349 MB / 417.2 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.3625, allocations: 0 / 417.2 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000319/0.3629, allocations: 68 kB / 417.2 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000733/0.3636, allocations: 461.4 kB / 417.7 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.834e-05/0.3637, allocations: 23.97 kB / 417.7 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001227/0.3649, allocations: 1.339 MB / 419.1 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.3649, allocations: 128 / 419.1 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001944/0.3669, allocations: 0.9443 MB / 420 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002252/0.3671, allocations: 152.9 kB / 420.1 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.819e-05/0.3672, allocations: 23.94 kB / 420.2 MB, free: 4.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003261/0.3676, allocations: 31.95 kB / 420.2 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/0.3678, allocations: 87.86 kB / 420.3 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-05/0.3678, allocations: 23.97 kB / 420.3 MB, free: 4.02 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001738/0.368, allocations: 168.5 kB / 420.5 MB, free: 3.855 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.368, allocations: 0 / 420.5 MB, free: 3.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005026/0.3685, allocations: 107.9 kB / 420.6 MB, free: 3.75 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.002377/0.3709, allocations: 1.529 MB / 422.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001194/0.3721, allocations: 0.518 MB / 422.6 MB, free: 1.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.155e-06/0.3721, allocations: 4.062 kB / 422.6 MB, free: 1.656 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006466/0.3728, allocations: 291.7 kB / 422.9 MB, free: 1.371 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005553/0.3734, allocations: 52.59 kB / 423 MB, free: 1.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007519/0.3809, allocations: 4.129 MB / 427.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.3814, allocations: 0.78 MB / 427.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001789/0.3816, allocations: 38.95 kB / 427.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001632/0.3817, allocations: 91.41 kB / 428 MB, free: 12.09 MB / 350.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3817, allocations: 0 / 428 MB, free: 12.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03909/0.4208, allocations: 11.66 MB / 439.7 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.01, allocations: 7.078 kB / 439.7 MB, free: 0.5703 MB / 350.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