Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_FixedResistances_Examples_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_FixedResistances_Examples_CheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.5/1.5, allocations: 252 MB / 267 MB, free: 10.97 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001796/0.001796, allocations: 184 kB / 326.6 MB, free: 2.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.893/1.893, allocations: 205.4 MB / 0.5776 GB, free: 20.26 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008857/0.0008859, allocations: 84.12 kB / 0.6822 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005949/0.0005952, allocations: 12.84 kB / 0.7964 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2843, allocations: 106.3 MB / 0.9003 GB, free: 63.85 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.0143/0.2987, allocations: 19.04 MB / 0.9189 GB, free: 44.74 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.00654/0.3052, allocations: 4.592 MB / 0.9234 GB, free: 40.14 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008156/0.3061, allocations: 15.81 kB / 0.9234 GB, free: 40.12 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0008149/0.3069, allocations: 198.7 kB / 0.9236 GB, free: 39.93 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.001908/0.3089, allocations: 0.6513 MB / 0.9242 GB, free: 39.27 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.001821/0.3107, allocations: 0.5977 MB / 0.9248 GB, free: 38.68 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.001508/0.3122, allocations: 1.547 MB / 0.9263 GB, free: 37.13 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004759/0.3127, allocations: 340.3 kB / 0.9266 GB, free: 36.8 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007727/0.3135, allocations: 0.4979 MB / 0.9271 GB, free: 36.3 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005233/0.314, allocations: 430.2 kB / 0.9275 GB, free: 35.88 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 6.306e-05/0.3141, allocations: 20 kB / 0.9276 GB, free: 35.86 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001072/0.3152, allocations: 0.5184 MB / 0.9281 GB, free: 35.34 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001011/0.3153, allocations: 99.56 kB / 0.9282 GB, free: 35.24 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.3154, allocations: 125.4 kB / 0.9283 GB, free: 35.11 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0006364/0.316, allocations: 0.5653 MB / 0.9288 GB, free: 34.54 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3161, allocations: 0 / 0.9288 GB, free: 34.54 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.834e-06/0.3161, allocations: 3.938 kB / 0.9288 GB, free: 34.54 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.747e-06/0.3161, allocations: 0 / 0.9288 GB, free: 34.54 MB / 0.6042 GB 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.001264/0.3174, allocations: 0.837 MB / 0.9296 GB, free: 33.65 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.3174, allocations: 8.031 kB / 0.9297 GB, free: 33.64 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.423e-05/0.3175, allocations: 66.53 kB / 0.9297 GB, free: 33.57 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.242e-05/0.3176, allocations: 63.25 kB / 0.9298 GB, free: 33.51 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000571/0.3182, allocations: 442.8 kB / 0.9302 GB, free: 33.04 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.041e-05/0.3182, allocations: 24.66 kB / 0.9302 GB, free: 33.01 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.81e-05/0.3183, allocations: 36 kB / 0.9303 GB, free: 32.97 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006691/0.3189, allocations: 314 kB / 0.9306 GB, free: 32.66 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.319, allocations: 0 / 0.9306 GB, free: 32.66 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.896e-05/0.319, allocations: 12 kB / 0.9306 GB, free: 32.65 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.3191, allocations: 12 kB / 0.9306 GB, free: 32.64 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005969/0.3197, allocations: 282.4 kB / 0.9309 GB, free: 32.37 MB / 0.6042 GB 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.002013/0.3217, allocations: 1.341 MB / 0.9322 GB, free: 30.91 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004786/0.3222, allocations: 270.5 kB / 0.9324 GB, free: 30.63 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003006/0.3225, allocations: 148.8 kB / 0.9326 GB, free: 30.48 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003397/0.3228, allocations: 498.6 kB / 0.933 GB, free: 29.89 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.3229, allocations: 38.55 kB / 0.9331 GB, free: 29.84 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=25): time 1.333e-06/0.3229, allocations: 4 kB / 0.9331 GB, free: 29.84 MB / 0.6042 GB Notification: Performance of matching and sorting (n=25): time 0.001717/0.3246, allocations: 0.5913 MB / 0.9337 GB, free: 29.22 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.644e-05/0.3246, allocations: 51.41 kB / 0.9337 GB, free: 29.16 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003878/0.325, allocations: 470 kB / 0.9342 GB, free: 28.69 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.3251, allocations: 33.7 kB / 0.9342 GB, free: 28.65 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.3252, allocations: 244.5 kB / 0.9344 GB, free: 28.4 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.861e-05/0.3253, allocations: 82.75 kB / 0.9345 GB, free: 28.32 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.644e-05/0.3253, allocations: 12 kB / 0.9345 GB, free: 28.31 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.129e-05/0.3254, allocations: 354.8 kB / 0.9348 GB, free: 27.95 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002695/0.3257, allocations: 127.7 kB / 0.935 GB, free: 27.83 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003119/0.326, allocations: 189.2 kB / 0.9351 GB, free: 27.62 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002962/0.3263, allocations: 144.9 kB / 0.9353 GB, free: 27.48 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.3263, allocations: 0 / 0.9353 GB, free: 27.48 MB / 0.6042 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009083/0.3272, allocations: 433.8 kB / 0.9357 GB, free: 27.05 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 4.548e-05/0.3273, allocations: 106.7 kB / 0.9358 GB, free: 26.94 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3273, allocations: 7.953 kB / 0.9358 GB, free: 26.93 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003337/0.3276, allocations: 60.75 kB / 0.9359 GB, free: 26.87 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003454/0.328, allocations: 71.89 kB / 0.9359 GB, free: 26.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000317/0.3283, allocations: 0.564 MB / 0.9365 GB, free: 26.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004903/0.3288, allocations: 67.73 kB / 0.9366 GB, free: 26.14 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.792e-05/0.3289, allocations: 16.08 kB / 0.9366 GB, free: 26.12 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.995e-06/0.3289, allocations: 6.5 kB / 0.9366 GB, free: 26.12 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006701/0.3295, allocations: 323.6 kB / 0.9369 GB, free: 25.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.096e-06/0.3296, allocations: 0 / 0.9369 GB, free: 25.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.338e-06/0.3296, allocations: 4 kB / 0.9369 GB, free: 25.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003806/0.33, allocations: 83.89 kB / 0.937 GB, free: 25.72 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.677e-06/0.33, allocations: 3.953 kB / 0.937 GB, free: 25.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004294/0.3304, allocations: 67.7 kB / 0.937 GB, free: 25.65 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.803e-05/0.3304, allocations: 19.98 kB / 0.9371 GB, free: 25.63 MB / 0.6042 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002044/0.3307, allocations: 241 kB / 0.9373 GB, free: 25.38 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.465e-05/0.3307, allocations: 51.34 kB / 0.9373 GB, free: 25.33 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008742/0.3316, allocations: 444.4 kB / 0.9378 GB, free: 24.89 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.758e-06/0.3316, allocations: 7.953 kB / 0.9378 GB, free: 24.88 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.3316, allocations: 0 / 0.9378 GB, free: 24.88 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3316, allocations: 0 / 0.9378 GB, free: 24.88 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001263/0.3329, allocations: 0.9655 MB / 0.9387 GB, free: 23.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.3329, allocations: 4.078 kB / 0.9387 GB, free: 23.84 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002258/0.3332, allocations: 55.91 kB / 0.9388 GB, free: 23.79 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000156/0.3333, allocations: 44.83 kB / 0.9388 GB, free: 23.74 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.997e-05/0.3334, allocations: 4 kB / 0.9388 GB, free: 23.73 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002407/0.3336, allocations: 0.5602 MB / 0.9394 GB, free: 23.15 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.3336, allocations: 4.031 kB / 0.9394 GB, free: 23.14 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006992/0.3343, allocations: 0.5088 MB / 0.9399 GB, free: 22.61 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001409/0.3345, allocations: 160.4 kB / 0.94 GB, free: 22.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.748e-05/0.3345, allocations: 8 kB / 0.94 GB, free: 22.42 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003749/0.3349, allocations: 43.89 kB / 0.9401 GB, free: 22.38 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.96e-05/0.335, allocations: 31.83 kB / 0.9401 GB, free: 22.35 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/0.3351, allocations: 15.88 kB / 0.9401 GB, free: 22.33 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002652/0.3353, allocations: 318.9 kB / 0.9404 GB, free: 22.02 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.5e-07/0.3353, allocations: 0 / 0.9404 GB, free: 22.02 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0006588/0.336, allocations: 255.5 kB / 0.9407 GB, free: 21.77 MB / 0.6042 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001218/0.3372, allocations: 1.174 MB / 0.9418 GB, free: 20.57 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001047/0.3383, allocations: 494.8 kB / 0.9423 GB, free: 20.09 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3383, allocations: 4 kB / 0.9423 GB, free: 20.08 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003575/0.3387, allocations: 175.8 kB / 0.9424 GB, free: 19.91 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001378/0.3401, allocations: 250.8 kB / 0.9427 GB, free: 19.67 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003644/0.3437, allocations: 2.691 MB / 0.9453 GB, free: 16.9 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002312/0.344, allocations: 0.8665 MB / 0.9462 GB, free: 16.01 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0004553/0.3444, allocations: 120.2 kB / 0.9463 GB, free: 15.89 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001969/0.3446, allocations: 171.4 kB / 0.9464 GB, free: 15.72 MB / 0.6042 GB Notification: Performance of SimCode: time 1.963e-06/0.3446, allocations: 0 / 0.9464 GB, free: 15.72 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02876/0.3734, allocations: 14.44 MB / 0.9605 GB, free: 1.57 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001777/0.3736, allocations: 266 kB / 0.9608 GB, free: 1.211 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.514/2.888, allocations: 2.812 kB / 0.9608 GB, free: 1.211 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_FixedResistances_Examples_CheckValve_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_FixedResistances_Examples_CheckValve.fmu > Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1)