Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.CheckValve.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) 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(IBPSA.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_FixedResistances_Examples_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_FixedResistances_Examples_CheckValve",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.001244/0.001244, allocations: 104.6 kB / 16.27 MB, free: 5.93 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.001182/0.001182, allocations: 187.4 kB / 17.2 MB, free: 5.574 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.247/1.247, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7092/0.7092, allocations: 122.9 MB / 413.9 MB, free: 15.87 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 63.91 kB / 0.4912 GB, free: 7.344 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3017, allocations: 77.93 MB / 0.5673 GB, free: 32.72 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.FixedResistances.Examples.CheckValve): time 0.01673/0.3184, allocations: 20.72 MB / 0.5875 GB, free: 17.82 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.006225/0.3247, allocations: 4.961 MB / 0.5924 GB, free: 13.8 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00106/0.3258, allocations: 18.06 kB / 0.5924 GB, free: 13.79 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009272/0.3267, allocations: 268.6 kB / 0.5926 GB, free: 13.57 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001868/0.3287, allocations: 0.8184 MB / 0.5934 GB, free: 12.93 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001505/0.3302, allocations: 0.7107 MB / 0.5941 GB, free: 12.41 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00142/0.3316, allocations: 1.38 MB / 0.5955 GB, free: 11.63 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005413/0.3322, allocations: 447.1 kB / 0.5959 GB, free: 11.36 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007787/0.333, allocations: 0.561 MB / 0.5964 GB, free: 11.04 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004841/0.3335, allocations: 453.4 kB / 0.5969 GB, free: 10.78 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.753e-05/0.3336, allocations: 37.91 kB / 0.5969 GB, free: 10.78 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001059/0.3346, allocations: 0.6305 MB / 0.5975 GB, free: 10.43 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.3347, allocations: 122.4 kB / 0.5976 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002349/0.335, allocations: 291.4 kB / 0.5979 GB, free: 10.15 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000901/0.3359, allocations: 0.8315 MB / 0.5987 GB, free: 9.617 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3359, allocations: 0 / 0.5987 GB, free: 9.617 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3359, allocations: 0 / 0.5987 GB, free: 9.617 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.3359, allocations: 1.219 kB / 0.5987 GB, free: 9.617 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001284/0.3372, allocations: 0.9262 MB / 0.5996 GB, free: 8.852 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.3373, allocations: 9.438 kB / 0.5996 GB, free: 8.852 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.758e-05/0.3373, allocations: 64.72 kB / 0.5997 GB, free: 8.789 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/0.3374, allocations: 63.53 kB / 0.5998 GB, free: 8.758 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004683/0.3379, allocations: 447.5 kB / 0.6002 GB, free: 8.371 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/0.3379, allocations: 30.41 kB / 0.6002 GB, free: 8.352 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.105e-05/0.338, allocations: 35.75 kB / 0.6003 GB, free: 8.34 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005571/0.3386, allocations: 306.6 kB / 0.6005 GB, free: 8.16 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.3386, allocations: 0.9375 kB / 0.6006 GB, free: 8.16 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.882e-05/0.3386, allocations: 10.19 kB / 0.6006 GB, free: 8.152 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.3386, allocations: 6.938 kB / 0.6006 GB, free: 8.152 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005699/0.3392, allocations: 262.9 kB / 0.6008 GB, free: 8.035 MB / 446.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001751/0.341, allocations: 1.353 MB / 0.6021 GB, free: 6.859 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004237/0.3414, allocations: 262.4 kB / 0.6024 GB, free: 6.594 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002457/0.3417, allocations: 133.4 kB / 0.6025 GB, free: 6.461 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002594/0.3419, allocations: 0.4947 MB / 0.603 GB, free: 5.855 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.886e-05/0.342, allocations: 38.56 kB / 0.603 GB, free: 5.809 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 1.522e-06/0.342, allocations: 4 kB / 0.603 GB, free: 5.805 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.001555/0.3435, allocations: 0.5592 MB / 0.6036 GB, free: 5.219 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.228e-05/0.3436, allocations: 55.41 kB / 0.6036 GB, free: 5.152 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003551/0.3439, allocations: 474 kB / 0.6041 GB, free: 4.68 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.584e-05/0.344, allocations: 29.7 kB / 0.6041 GB, free: 4.645 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.3441, allocations: 248.5 kB / 0.6044 GB, free: 4.395 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.523e-05/0.3441, allocations: 82.75 kB / 0.6044 GB, free: 4.312 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.595e-05/0.3442, allocations: 77.59 kB / 0.6045 GB, free: 4.23 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.645e-05/0.3443, allocations: 354.8 kB / 0.6048 GB, free: 3.875 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002655/0.3446, allocations: 124.8 kB / 0.605 GB, free: 3.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003037/0.3449, allocations: 181 kB / 0.6051 GB, free: 3.555 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005286/0.3454, allocations: 268.7 kB / 0.6054 GB, free: 3.285 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3454, allocations: 0 / 0.6054 GB, free: 3.285 MB / 446.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001404/0.3468, allocations: 495.1 kB / 0.6059 GB, free: 2.793 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.3469, allocations: 4 kB / 0.6059 GB, free: 2.789 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.3469, allocations: 0 / 0.6059 GB, free: 2.789 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003417/0.3472, allocations: 56.75 kB / 0.6059 GB, free: 2.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003305/0.3476, allocations: 67.95 kB / 0.606 GB, free: 2.664 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003109/0.3479, allocations: 0.564 MB / 0.6065 GB, free: 2.074 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003951/0.3483, allocations: 59.67 kB / 0.6066 GB, free: 2.016 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.539e-05/0.3483, allocations: 11.98 kB / 0.6066 GB, free: 2.004 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003402/0.3487, allocations: 247.9 kB / 0.6068 GB, free: 1.758 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002782/0.349, allocations: 177.7 kB / 0.607 GB, free: 1.566 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004754/0.3494, allocations: 272.6 kB / 0.6073 GB, free: 1.297 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.172e-06/0.3495, allocations: 0 / 0.6073 GB, free: 1.297 MB / 446.1 MB Notification: Performance of matching and sorting (n=37) (initialization_lambda0): time 0.0006429/0.3501, allocations: 364.8 kB / 0.6076 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.643e-06/0.3501, allocations: 4 kB / 0.6076 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.504e-06/0.3501, allocations: 4 kB / 0.6076 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.905e-06/0.3501, allocations: 3.938 kB / 0.6076 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003512/0.3505, allocations: 87.88 kB / 0.6077 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.685e-06/0.3505, allocations: 0 / 0.6077 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003803/0.3509, allocations: 47.73 kB / 0.6078 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.542e-05/0.3509, allocations: 12 kB / 0.6078 GB, free: 0.7773 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * 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: 1 * 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): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 9.702e-05/0.351, allocations: 207.7 kB / 0.608 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.388e-05/0.3511, allocations: 55.34 kB / 0.608 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008206/0.3519, allocations: 423.9 kB / 0.6084 GB, free: 88 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.3519, allocations: 4 kB / 0.6084 GB, free: 84 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.352, allocations: 0 / 0.6084 GB, free: 84 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.352, allocations: 0 / 0.6084 GB, free: 84 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/0.3534, allocations: 0.9479 MB / 0.6094 GB, free: 15.06 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3534, allocations: 0 / 0.6094 GB, free: 15.06 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002291/0.3536, allocations: 55.89 kB / 0.6094 GB, free: 15 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000154/0.3538, allocations: 44.95 kB / 0.6095 GB, free: 14.96 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.3538, allocations: 4 kB / 0.6095 GB, free: 14.95 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003022/0.3541, allocations: 0.5563 MB / 0.61 GB, free: 14.37 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.3541, allocations: 3.938 kB / 0.61 GB, free: 14.37 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007391/0.3549, allocations: 487.1 kB / 0.6105 GB, free: 13.86 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001457/0.355, allocations: 156.4 kB / 0.6106 GB, free: 13.69 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.05e-05/0.3551, allocations: 4 kB / 0.6106 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003227/0.3554, allocations: 31.91 kB / 0.6107 GB, free: 13.65 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.786e-05/0.3555, allocations: 27.91 kB / 0.6107 GB, free: 13.62 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.433e-05/0.3555, allocations: 15.98 kB / 0.6107 GB, free: 13.61 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003039/0.3558, allocations: 318.9 kB / 0.611 GB, free: 13.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3558, allocations: 0 / 0.611 GB, free: 13.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0006917/0.3565, allocations: 247.5 kB / 0.6112 GB, free: 13.06 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00135/0.3579, allocations: 1.192 MB / 0.6124 GB, free: 11.84 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001123/0.359, allocations: 483.8 kB / 0.6129 GB, free: 11.37 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.359, allocations: 4 kB / 0.6129 GB, free: 11.36 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000377/0.3594, allocations: 168.4 kB / 0.613 GB, free: 11.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001049/0.3605, allocations: 213.2 kB / 0.6132 GB, free: 11 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005803/0.3663, allocations: 4.072 MB / 0.6172 GB, free: 6.809 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.3667, allocations: 0.8626 MB / 0.618 GB, free: 5.914 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003954/0.3671, allocations: 120.1 kB / 0.6182 GB, free: 5.797 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002007/0.3673, allocations: 171.4 kB / 0.6183 GB, free: 5.633 MB / 462.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3673, allocations: 0 / 0.6183 GB, free: 5.633 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03155/0.3988, allocations: 14.86 MB / 0.6328 GB, free: 7.074 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/10.96, allocations: 10.31 kB / 0.6329 GB, free: 7.066 MB / 478.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.CheckValve.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.CheckValve_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Fluid_FixedResistances_Examples_CheckValve.fmu > IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1)