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.001278/0.001279, allocations: 110.2 kB / 17.06 MB, free: 5.793 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.001248/0.001248, allocations: 197.3 kB / 18.01 MB, free: 4.918 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.421/1.421, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 55.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3118, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.005178/0.3171, allocations: 2.444 MB / 402.7 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001272/0.3184, allocations: 495.2 kB / 403.1 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001957/0.3186, allocations: 7.938 kB / 403.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000265/0.3189, allocations: 51.56 kB / 403.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002177/0.3191, allocations: 87.27 kB / 403.3 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006661/0.3198, allocations: 187.7 kB / 403.5 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005934/0.3204, allocations: 491 kB / 404 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001943/0.3206, allocations: 68.7 kB / 404 MB, free: 4.988 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002837/0.3209, allocations: 211.4 kB / 404.2 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003581/0.3213, allocations: 235.2 kB / 404.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.621e-05/0.3214, allocations: 36 kB / 404.5 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000193/0.3216, allocations: 95.94 kB / 404.6 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001347/0.3217, allocations: 99.7 kB / 404.7 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002114/0.3219, allocations: 183.1 kB / 404.9 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007779/0.3227, allocations: 465.4 kB / 405.3 MB, free: 3.691 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.568e-06/0.3227, allocations: 7.922 kB / 405.3 MB, free: 3.684 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3228, allocations: 0 / 405.3 MB, free: 3.684 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.176e-06/0.3228, allocations: 0 / 405.3 MB, free: 3.684 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.001445/0.3242, allocations: 0.6701 MB / 406 MB, free: 2.961 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.3243, allocations: 8.031 kB / 406 MB, free: 2.953 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.613e-05/0.3244, allocations: 58.73 kB / 406.1 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.464e-05/0.3245, allocations: 44.64 kB / 406.1 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004978/0.325, allocations: 296.6 kB / 406.4 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.263e-05/0.325, allocations: 24.94 kB / 406.4 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.062e-05/0.3251, allocations: 28.38 kB / 406.4 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007509/0.3259, allocations: 377.2 kB / 406.8 MB, free: 2.09 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.457e-05/0.3259, allocations: 3.938 kB / 406.8 MB, free: 2.086 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.889e-05/0.3259, allocations: 15.94 kB / 406.8 MB, free: 2.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.326, allocations: 8 kB / 406.8 MB, free: 2.062 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009147/0.3269, allocations: 402 kB / 407.2 MB, free: 1.672 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002043/0.3289, allocations: 1.104 MB / 408.3 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005561/0.3295, allocations: 299.3 kB / 408.6 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004054/0.3299, allocations: 197.8 kB / 408.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.132e-05/0.33, allocations: 4 kB / 408.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.37e-05/0.33, allocations: 42.48 kB / 408.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 2.284e-06/0.3301, allocations: 0 / 408.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004894/0.335, allocations: 2.038 MB / 410.9 MB, free: 13.76 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.562e-05/0.335, allocations: 63.34 kB / 411 MB, free: 13.69 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002734/0.3353, allocations: 237 kB / 411.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.731e-05/0.3354, allocations: 37.7 kB / 411.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.3355, allocations: 153 kB / 411.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/0.3357, allocations: 162.7 kB / 411.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001834/0.3359, allocations: 98.19 kB / 411.6 MB, free: 12.99 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000187/0.3361, allocations: 350.7 kB / 412 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004217/0.3365, allocations: 205 kB / 412.2 MB, free: 12.44 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004803/0.337, allocations: 284.8 kB / 412.5 MB, free: 12.14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006967/0.3377, allocations: 373.7 kB / 412.8 MB, free: 11.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3377, allocations: 4 kB / 412.8 MB, free: 11.74 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001508/0.3392, allocations: 0.7003 MB / 413.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.3393, allocations: 4 kB / 413.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.3393, allocations: 4 kB / 413.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000931/0.3402, allocations: 497.5 kB / 414 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002933/0.3405, allocations: 71.91 kB / 414.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001422/0.3419, allocations: 1.386 MB / 415.5 MB, free: 9.023 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004547/0.3424, allocations: 72.03 kB / 415.6 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.382e-05/0.3425, allocations: 16 kB / 415.6 MB, free: 8.938 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.0002317/0.3427, allocations: 174.1 kB / 415.7 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.036e-05/0.3428, allocations: 31.81 kB / 415.8 MB, free: 8.727 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000124/0.3429, allocations: 47.3 kB / 415.8 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.3429, allocations: 4 kB / 415.8 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.343, allocations: 7.938 kB / 415.8 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.343, allocations: 0 / 415.8 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002946/0.3459, allocations: 1.338 MB / 417.2 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.346, allocations: 4.031 kB / 417.2 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002858/0.3462, allocations: 63.84 kB / 417.2 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000803/0.3471, allocations: 469.3 kB / 417.7 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.852e-05/0.3471, allocations: 15.98 kB / 417.7 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001351/0.3485, allocations: 1.339 MB / 419 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.3485, allocations: 11.91 kB / 419.1 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001868/0.3504, allocations: 0.9326 MB / 420 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002052/0.3506, allocations: 160.8 kB / 420.1 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.379e-05/0.3507, allocations: 24.11 kB / 420.2 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002923/0.351, allocations: 35.97 kB / 420.2 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002013/0.3512, allocations: 83.86 kB / 420.3 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.281e-05/0.3512, allocations: 23.97 kB / 420.3 MB, free: 3.992 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002099/0.3515, allocations: 172.5 kB / 420.5 MB, free: 3.824 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3515, allocations: 0 / 420.5 MB, free: 3.824 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004687/0.3519, allocations: 103.9 kB / 420.6 MB, free: 3.723 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.002464/0.3544, allocations: 1.542 MB / 422.1 MB, free: 2.137 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.3557, allocations: 0.5139 MB / 422.6 MB, free: 1.625 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3557, allocations: 0 / 422.6 MB, free: 1.625 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006664/0.3564, allocations: 287.7 kB / 422.9 MB, free: 1.344 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005739/0.357, allocations: 55.23 kB / 423 MB, free: 1.293 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007523/0.3645, allocations: 4.129 MB / 427.1 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005009/0.365, allocations: 0.78 MB / 427.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001649/0.3652, allocations: 34.95 kB / 427.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001675/0.3654, allocations: 95.34 kB / 428 MB, free: 12.06 MB / 350.1 MB Notification: Performance of SimCode: time 1.252e-06/0.3654, allocations: 0 / 428 MB, free: 12.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03996/0.4054, allocations: 11.67 MB / 439.7 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.41, allocations: 3.125 kB / 439.7 MB, free: 0.5391 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