Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Examples.Definitions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007121/0.0007121, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007318/0.0007318, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8184/0.8184, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.08217/0.08217, allocations: 17.46 MB / 276.6 MB, free: 11.76 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.Definitions,fileNamePrefix="Chemical_master_Chemical_Examples_Definitions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.Definitions,fileNamePrefix="Chemical_master_Chemical_Examples_Definitions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 411.6 MB, free: 256 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.421e-05/1.564e-05, allocations: 6.281 kB / 411.6 MB, free: 248 kB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Interfaces.mo:448:5-448:64:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Interfaces.mo:448:5-448:64:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.Definitions): time 0.01903/0.01904, allocations: 24.02 MB / 435.6 MB, free: 8.32 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.2468/0.2659, allocations: 122.8 MB / 0.5453 GB, free: 0.6914 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.266, allocations: 7.938 kB / 0.5453 GB, free: 0.6836 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001585/0.2676, allocations: 0.7203 MB / 0.546 GB, free: 15.97 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001913/0.2695, allocations: 2.376 MB / 0.5483 GB, free: 13.59 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006621/0.2702, allocations: 0.6219 MB / 0.549 GB, free: 12.96 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.00181/0.272, allocations: 2.11 MB / 0.551 GB, free: 10.86 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.414e-05/0.2721, allocations: 29.25 kB / 0.551 GB, free: 10.83 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003335/0.2724, allocations: 486.9 kB / 0.5515 GB, free: 10.36 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003915/0.2728, allocations: 491 kB / 0.552 GB, free: 9.875 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 3.187e-05/0.2728, allocations: 16 kB / 0.552 GB, free: 9.859 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00116/0.274, allocations: 0.8534 MB / 0.5528 GB, free: 9.004 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001143/0.2741, allocations: 187.3 kB / 0.553 GB, free: 8.82 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001197/0.2742, allocations: 191.4 kB / 0.5532 GB, free: 8.633 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001117/0.2753, allocations: 1.721 MB / 0.5549 GB, free: 6.906 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2753, allocations: 0 / 0.5549 GB, free: 6.906 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2753, allocations: 0 / 0.5549 GB, free: 6.906 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.2753, allocations: 0 / 0.5549 GB, free: 6.906 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.0009263/0.2763, allocations: 1.053 MB / 0.5559 GB, free: 5.82 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.2763, allocations: 12.03 kB / 0.5559 GB, free: 5.809 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.284e-05/0.2764, allocations: 98.69 kB / 0.556 GB, free: 5.703 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003524/0.2767, allocations: 301.6 kB / 0.5563 GB, free: 5.414 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.2771, allocations: 361.3 kB / 0.5566 GB, free: 5.031 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.696e-05/0.2771, allocations: 37.36 kB / 0.5567 GB, free: 4.996 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.118e-05/0.2771, allocations: 48.36 kB / 0.5567 GB, free: 4.949 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.2786, allocations: 2.629 MB / 0.5593 GB, free: 2.266 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.2786, allocations: 192 / 0.5593 GB, free: 2.266 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.842e-05/0.2786, allocations: 16.38 kB / 0.5593 GB, free: 2.25 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.46e-05/0.2787, allocations: 97.19 kB / 0.5594 GB, free: 2.152 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002535/0.2812, allocations: 4.23 MB / 0.5635 GB, free: 13.92 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002669/0.2839, allocations: 3.325 MB / 0.5668 GB, free: 10.54 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005634/0.2845, allocations: 479.6 kB / 0.5672 GB, free: 10.07 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.2846, allocations: 120.8 kB / 0.5673 GB, free: 9.945 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00205/0.2867, allocations: 1.846 MB / 0.5691 GB, free: 8.086 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.2867, allocations: 42.56 kB / 0.5692 GB, free: 8.035 MB / 458.7 MB Notification: Performance of pre-optimization done (n=25): time 1.473e-06/0.2867, allocations: 0 / 0.5692 GB, free: 8.035 MB / 458.7 MB Notification: Performance of matching and sorting (n=25): time 0.0005156/0.2872, allocations: 476.8 kB / 0.5696 GB, free: 7.562 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.644e-05/0.2872, allocations: 55.41 kB / 0.5697 GB, free: 7.496 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005928/0.2878, allocations: 0.9071 MB / 0.5706 GB, free: 6.578 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.2878, allocations: 29.7 kB / 0.5706 GB, free: 6.543 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001849/0.288, allocations: 490.9 kB / 0.5711 GB, free: 6.055 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.612e-05/0.2881, allocations: 103.2 kB / 0.5712 GB, free: 5.953 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001867/0.2883, allocations: 301.7 kB / 0.5715 GB, free: 5.656 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.055e-05/0.2884, allocations: 350.8 kB / 0.5718 GB, free: 5.305 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002144/0.2886, allocations: 230.5 kB / 0.572 GB, free: 5.078 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004751/0.289, allocations: 0.8921 MB / 0.5729 GB, free: 3.855 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.2901, allocations: 1.219 MB / 0.5741 GB, free: 2.305 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.2901, allocations: 8 kB / 0.5741 GB, free: 2.297 MB / 458.7 MB Notification: Performance of matching and sorting (n=132) (initialization): time 0.0009753/0.291, allocations: 1.129 MB / 0.5752 GB, free: 1.164 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.2911, allocations: 12.19 kB / 0.5752 GB, free: 1.152 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/0.2911, allocations: 31.94 kB / 0.5752 GB, free: 1.121 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.768e-05/0.2911, allocations: 32 kB / 0.5753 GB, free: 1.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000378/0.2915, allocations: 299.5 kB / 0.5755 GB, free: 0.7969 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.395e-05/0.2915, allocations: 47.78 kB / 0.5756 GB, free: 0.75 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002939/0.2918, allocations: 139 kB / 0.5757 GB, free: 0.6133 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.121e-05/0.2919, allocations: 128 kB / 0.5758 GB, free: 500 kB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 6 (H2O_vaporization_props.definition.SelfClustering,H2O_vaporization_props.definition.data.phase,H2O_formation_props.definition.SelfClustering,H2O_formation_props.definition.data.phase,O2_dissolving_props.definition.SelfClustering,O2_dissolving_props.definition.data.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (132): * Single equations (assignments): 132 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002425/0.2921, allocations: 341 kB / 0.5762 GB, free: 152 kB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.331e-05/0.2922, allocations: 107.3 kB / 0.5763 GB, free: 44 kB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009459/0.2931, allocations: 0.7757 MB / 0.577 GB, free: 15.27 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.2931, allocations: 7.938 kB / 0.577 GB, free: 15.26 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.2931, allocations: 0 / 0.577 GB, free: 15.26 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.2932, allocations: 3.984 kB / 0.577 GB, free: 15.26 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003556/0.2935, allocations: 468.4 kB / 0.5775 GB, free: 14.76 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.2935, allocations: 0 / 0.5775 GB, free: 14.76 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.2936, allocations: 107.9 kB / 0.5776 GB, free: 14.65 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2936, allocations: 0 / 0.5776 GB, free: 14.65 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.793e-05/0.2937, allocations: 35.92 kB / 0.5776 GB, free: 14.62 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.2937, allocations: 2.688 kB / 0.5776 GB, free: 14.62 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2937, allocations: 4 kB / 0.5776 GB, free: 14.61 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003712/0.2941, allocations: 494.8 kB / 0.5781 GB, free: 14.11 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002531/0.2943, allocations: 245.2 kB / 0.5783 GB, free: 13.86 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.582e-05/0.2944, allocations: 7.938 kB / 0.5783 GB, free: 13.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.2945, allocations: 7.984 kB / 0.5784 GB, free: 13.85 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.019e-05/0.2945, allocations: 43.97 kB / 0.5784 GB, free: 13.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.827e-05/0.2946, allocations: 87.97 kB / 0.5785 GB, free: 13.72 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003839/0.295, allocations: 0.5654 MB / 0.579 GB, free: 13.16 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.295, allocations: 0 / 0.579 GB, free: 13.16 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0004796/0.2954, allocations: 198.4 kB / 0.5792 GB, free: 12.97 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009829/0.2964, allocations: 1.16 MB / 0.5804 GB, free: 11.78 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0005217/0.2969, allocations: 0.5785 MB / 0.5809 GB, free: 11.21 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.297, allocations: 0 / 0.5809 GB, free: 11.21 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001211/0.2971, allocations: 139.9 kB / 0.5811 GB, free: 11.07 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00036/0.2974, allocations: 87.22 kB / 0.5811 GB, free: 10.99 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00432/0.3018, allocations: 6.104 MB / 0.5871 GB, free: 4.129 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002197/0.302, allocations: 363.6 kB / 0.5874 GB, free: 3.746 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0008131/0.3028, allocations: 0.5026 MB / 0.5879 GB, free: 3.262 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003068/0.3031, allocations: 260.3 kB / 0.5882 GB, free: 3.008 MB / 474.7 MB Notification: Performance of SimCode: time 3.9e-07/0.3031, allocations: 2.156 kB / 0.5882 GB, free: 3.008 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02236/0.3255, allocations: 14.72 MB / 0.6026 GB, free: 4.539 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.461/6.787, allocations: 2.922 kB / 0.6026 GB, free: 4.539 MB / 490.7 MB " [Timeout remaining time 653] (rm -f Chemical_master_Chemical.Examples.Definitions.pipe ; mkfifo Chemical_master_Chemical.Examples.Definitions.pipe ; head -c 1048576 < Chemical_master_Chemical.Examples.Definitions.pipe >> ../files/Chemical_master_Chemical.Examples.Definitions.sim & python3 -m fmpy simulate --output-file Chemical_master_Chemical.Examples.Definitions_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.8 Chemical_master_Chemical_Examples_Definitions.fmu > Chemical_master_Chemical.Examples.Definitions.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.563458519987762] Failed to read output from testmodel.py, exit status != 0: 6.869517267681658 6.876973747 6.600188899 Calling exit ...