Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001371/0.001371, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 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.001655/0.001655, allocations: 212.4 kB / 22.24 MB, free: 5.262 MB / 14.72 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 1.493/1.493, allocations: 230.6 MB / 256 MB, free: 7.746 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1533/0.1533, allocations: 23.89 MB / 336.3 MB, free: 10.93 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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_Chemical_Examples_Definitions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.Definitions,fileNamePrefix="Chemical_Chemical_Examples_Definitions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 67.91 kB / 471.1 MB, free: 7.477 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4214/0.4234, allocations: 59.86 MB / 0.5185 GB, free: 9.512 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Interfaces.mo:465:5-465: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 2.0.0/Interfaces.mo:465:5-465: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.07615/0.4995, allocations: 23.65 MB / 0.5416 GB, free: 15.7 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.1759/0.6754, allocations: 122.1 MB / 0.6609 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004353/0.6759, allocations: 7.938 kB / 0.6609 GB, free: 7.77 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002285/0.6781, allocations: 0.6608 MB / 0.6615 GB, free: 7.105 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003454/0.6816, allocations: 1.916 MB / 0.6634 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001524/0.6831, allocations: 0.5166 MB / 0.6639 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003369/0.6865, allocations: 2.01 MB / 0.6658 GB, free: 2.648 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.133e-05/0.6866, allocations: 25.95 kB / 0.6659 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004671/0.687, allocations: 382.8 kB / 0.6662 GB, free: 2.238 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007145/0.6877, allocations: 490.5 kB / 0.6667 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.271e-05/0.6878, allocations: 20 kB / 0.6667 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001456/0.6893, allocations: 0.6668 MB / 0.6674 GB, free: 1.07 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000173/0.6894, allocations: 163.3 kB / 0.6675 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002265/0.6897, allocations: 230.3 kB / 0.6678 GB, free: 0.6836 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001993/0.6917, allocations: 1.662 MB / 0.6694 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.6917, allocations: 0 / 0.6694 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.134e-06/0.6917, allocations: 3.938 kB / 0.6694 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.009e-05/0.6917, allocations: 0 / 0.6694 GB, free: 15.01 MB / 0.5137 GB 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.001476/0.6932, allocations: 1.013 MB / 0.6704 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.6932, allocations: 8.031 kB / 0.6704 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001188/0.6933, allocations: 98.69 kB / 0.6705 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006687/0.694, allocations: 292 kB / 0.6707 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005447/0.6945, allocations: 366 kB / 0.6711 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.175e-05/0.6946, allocations: 37.36 kB / 0.6711 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.254e-05/0.6946, allocations: 40.38 kB / 0.6712 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002769/0.6974, allocations: 2.628 MB / 0.6737 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.6974, allocations: 0 / 0.6737 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.567e-05/0.6975, allocations: 24 kB / 0.6738 GB, free: 10.4 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000106/0.6976, allocations: 85.27 kB / 0.6738 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004349/0.7019, allocations: 4.238 MB / 0.678 GB, free: 6.078 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004828/0.7068, allocations: 3.323 MB / 0.6812 GB, free: 2.695 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009871/0.7077, allocations: 494 kB / 0.6817 GB, free: 2.207 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002057/0.7079, allocations: 108.8 kB / 0.6818 GB, free: 2.098 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004448/0.7124, allocations: 1.842 MB / 0.6836 GB, free: 236 kB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.7124, allocations: 34.56 kB / 0.6836 GB, free: 192 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=25): time 1.633e-06/0.7124, allocations: 0 / 0.6836 GB, free: 192 kB / 0.5137 GB Notification: Performance of matching and sorting (n=25): time 0.0008447/0.7133, allocations: 469.7 kB / 0.6841 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/0.7133, allocations: 59.41 kB / 0.6841 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00108/0.7144, allocations: 0.9109 MB / 0.685 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 4.467e-05/0.7144, allocations: 29.7 kB / 0.6851 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003589/0.7148, allocations: 491 kB / 0.6855 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.7149, allocations: 103.2 kB / 0.6856 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003482/0.7153, allocations: 302.4 kB / 0.6859 GB, free: 13.81 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002012/0.7155, allocations: 354.8 kB / 0.6863 GB, free: 13.45 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003702/0.7158, allocations: 234.5 kB / 0.6865 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001073/0.7169, allocations: 0.8843 MB / 0.6873 GB, free: 12.01 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001598/0.7185, allocations: 1.219 MB / 0.6885 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.358e-06/0.7185, allocations: 12 kB / 0.6885 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.001861/0.7204, allocations: 1.123 MB / 0.6896 GB, free: 9.32 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.531e-05/0.7204, allocations: 16 kB / 0.6897 GB, free: 9.305 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.064e-05/0.7204, allocations: 24 kB / 0.6897 GB, free: 9.281 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.055e-05/0.7205, allocations: 35.98 kB / 0.6897 GB, free: 9.246 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007441/0.7212, allocations: 303.5 kB / 0.69 GB, free: 8.949 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-05/0.7213, allocations: 43.86 kB / 0.69 GB, free: 8.906 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005705/0.7218, allocations: 143.4 kB / 0.6902 GB, free: 8.766 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001755/0.722, allocations: 132 kB / 0.6903 GB, free: 8.637 MB / 0.5294 GB 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.0004254/0.7224, allocations: 337.1 kB / 0.6906 GB, free: 8.297 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.7226, allocations: 95.38 kB / 0.6907 GB, free: 8.203 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001619/0.7242, allocations: 0.7823 MB / 0.6915 GB, free: 7.41 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.7242, allocations: 4 kB / 0.6915 GB, free: 7.406 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.7242, allocations: 0 / 0.6915 GB, free: 7.406 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.7242, allocations: 0 / 0.6915 GB, free: 7.406 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005857/0.7248, allocations: 472.2 kB / 0.6919 GB, free: 6.902 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.7248, allocations: 4 kB / 0.6919 GB, free: 6.898 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002695/0.7251, allocations: 99.95 kB / 0.692 GB, free: 6.801 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.205e-06/0.7251, allocations: 4 kB / 0.692 GB, free: 6.797 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.442e-05/0.7251, allocations: 31.98 kB / 0.6921 GB, free: 6.766 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.7251, allocations: 4 kB / 0.6921 GB, free: 6.762 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.7251, allocations: 0 / 0.6921 GB, free: 6.762 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006239/0.7257, allocations: 486.9 kB / 0.6925 GB, free: 6.27 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005187/0.7263, allocations: 249.2 kB / 0.6928 GB, free: 6.016 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.304e-05/0.7263, allocations: 7.984 kB / 0.6928 GB, free: 6.008 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002176/0.7266, allocations: 8 kB / 0.6928 GB, free: 6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.654e-05/0.7266, allocations: 43.95 kB / 0.6928 GB, free: 5.957 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.7268, allocations: 87.98 kB / 0.6929 GB, free: 5.871 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006711/0.7274, allocations: 0.5654 MB / 0.6935 GB, free: 5.309 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.7274, allocations: 4 kB / 0.6935 GB, free: 5.305 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008056/0.7282, allocations: 175.8 kB / 0.6936 GB, free: 5.133 MB / 0.5294 GB 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.001234/0.7295, allocations: 1.149 MB / 0.6948 GB, free: 3.957 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0009266/0.7304, allocations: 0.583 MB / 0.6953 GB, free: 3.379 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.7304, allocations: 0 / 0.6953 GB, free: 3.379 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002221/0.7306, allocations: 140.6 kB / 0.6955 GB, free: 3.242 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000562/0.7312, allocations: 85.55 kB / 0.6955 GB, free: 3.156 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007298/0.7385, allocations: 6.157 MB / 0.7016 GB, free: 12.23 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004119/0.7389, allocations: 359.6 kB / 0.7019 GB, free: 11.85 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001447/0.7403, allocations: 0.5083 MB / 0.7024 GB, free: 11.34 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005036/0.7408, allocations: 255.2 kB / 0.7026 GB, free: 11.09 MB / 0.545 GB Notification: Performance of SimCode: time 5.51e-07/0.7408, allocations: 0 / 0.7026 GB, free: 11.09 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04715/0.788, allocations: 14.64 MB / 0.7169 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/13.29, allocations: 19.08 kB / 0.717 GB, free: 12.62 MB / 0.5606 GB " [Timeout remaining time 647] (rm -f Chemical_Chemical.Examples.Definitions.pipe ; mkfifo Chemical_Chemical.Examples.Definitions.pipe ; head -c 1048576 < Chemical_Chemical.Examples.Definitions.pipe >> ../files/Chemical_Chemical.Examples.Definitions.sim & python3 -m fmpy simulate --output-file Chemical_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_Chemical_Examples_Definitions.fmu > Chemical_Chemical.Examples.Definitions.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.50045707495883] Failed to read output from testmodel.py, exit status != 0: 13.425080346874893 13.703663846 12.747729942 Calling exit ...