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.001485/0.001485, allocations: 103.6 kB / 18.95 MB, free: 2.652 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.00161/0.00161, allocations: 217.6 kB / 22.25 MB, free: 5.266 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.708/1.708, allocations: 230.6 MB / 256 MB, free: 7.785 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.1565/0.1565, allocations: 23.88 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.002077/0.002077, allocations: 63.91 kB / 471.1 MB, free: 7.484 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4168/0.4189, allocations: 59.85 MB / 0.5185 GB, free: 9.52 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.07075/0.4897, allocations: 23.55 MB / 0.5415 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.1996/0.6893, allocations: 122.1 MB / 0.6607 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007773/0.6901, allocations: 7.938 kB / 0.6608 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003702/0.6938, allocations: 0.6608 MB / 0.6614 GB, free: 7.242 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.005676/0.6994, allocations: 1.913 MB / 0.6633 GB, free: 5.32 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002665/0.7021, allocations: 0.5167 MB / 0.6638 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.005928/0.708, allocations: 2.014 MB / 0.6657 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001548/0.7082, allocations: 33.88 kB / 0.6658 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000779/0.709, allocations: 382.8 kB / 0.6661 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001217/0.7102, allocations: 494.6 kB / 0.6666 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.97e-05/0.7103, allocations: 19.94 kB / 0.6666 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002843/0.7131, allocations: 0.7019 MB / 0.6673 GB, free: 1.16 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002543/0.7134, allocations: 159.3 kB / 0.6675 GB, free: 1.004 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003482/0.7137, allocations: 222.4 kB / 0.6677 GB, free: 0.7852 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003626/0.7173, allocations: 1.666 MB / 0.6693 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.7174, allocations: 0 / 0.6693 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.455e-06/0.7174, allocations: 0 / 0.6693 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.909e-05/0.7174, allocations: 0 / 0.6693 GB, free: 15.11 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.002339/0.7197, allocations: 1.017 MB / 0.6703 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 6.946e-05/0.7198, allocations: 8.031 kB / 0.6703 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001942/0.72, allocations: 106.7 kB / 0.6704 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001173/0.7211, allocations: 288 kB / 0.6707 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009079/0.7221, allocations: 362 kB / 0.671 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.656e-05/0.7221, allocations: 37.31 kB / 0.6711 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001121/0.7222, allocations: 48.36 kB / 0.6711 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004165/0.7264, allocations: 2.625 MB / 0.6737 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.198e-05/0.7264, allocations: 3.938 kB / 0.6737 GB, free: 10.51 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.655e-05/0.7265, allocations: 19.98 kB / 0.6737 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001636/0.7267, allocations: 89.27 kB / 0.6738 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006502/0.7332, allocations: 4.234 MB / 0.6779 GB, free: 6.168 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007365/0.7405, allocations: 3.323 MB / 0.6812 GB, free: 2.785 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001606/0.7421, allocations: 490.8 kB / 0.6816 GB, free: 2.297 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003401/0.7425, allocations: 116.8 kB / 0.6817 GB, free: 2.18 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00704/0.7495, allocations: 1.838 MB / 0.6835 GB, free: 324 kB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.866e-05/0.7496, allocations: 38.56 kB / 0.6836 GB, free: 276 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=25): time 2.985e-06/0.7496, allocations: 0 / 0.6836 GB, free: 276 kB / 0.5137 GB Notification: Performance of matching and sorting (n=25): time 0.001417/0.751, allocations: 462 kB / 0.684 GB, free: 15.81 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.294e-05/0.751, allocations: 55.41 kB / 0.6841 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001793/0.7528, allocations: 0.9109 MB / 0.6849 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 6.723e-05/0.7529, allocations: 29.7 kB / 0.685 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004899/0.7534, allocations: 479.1 kB / 0.6854 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001551/0.7535, allocations: 107.2 kB / 0.6855 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005566/0.7541, allocations: 302.4 kB / 0.6858 GB, free: 13.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002437/0.7543, allocations: 358.8 kB / 0.6862 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005718/0.7549, allocations: 230.5 kB / 0.6864 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/0.7563, allocations: 0.8961 MB / 0.6873 GB, free: 12.09 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002174/0.7584, allocations: 1.215 MB / 0.6884 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.778e-05/0.7585, allocations: 8 kB / 0.6885 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.002765/0.7612, allocations: 1.13 MB / 0.6896 GB, free: 9.402 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.179e-05/0.7613, allocations: 20.25 kB / 0.6896 GB, free: 9.383 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.991e-05/0.7613, allocations: 24 kB / 0.6896 GB, free: 9.359 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.759e-05/0.7614, allocations: 31.98 kB / 0.6896 GB, free: 9.328 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.7626, allocations: 299.5 kB / 0.6899 GB, free: 9.035 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.658e-05/0.7626, allocations: 47.8 kB / 0.69 GB, free: 8.988 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001067/0.7637, allocations: 142.9 kB / 0.6901 GB, free: 8.848 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002381/0.7639, allocations: 128 kB / 0.6902 GB, free: 8.723 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.0006944/0.7646, allocations: 341.1 kB / 0.6905 GB, free: 8.379 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00022/0.7648, allocations: 95.38 kB / 0.6906 GB, free: 8.285 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002602/0.7674, allocations: 0.7823 MB / 0.6914 GB, free: 7.492 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.7675, allocations: 4 kB / 0.6914 GB, free: 7.488 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.7675, allocations: 0 / 0.6914 GB, free: 7.488 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.7675, allocations: 0 / 0.6914 GB, free: 7.488 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009533/0.7684, allocations: 460.3 kB / 0.6918 GB, free: 6.996 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.7684, allocations: 4 kB / 0.6918 GB, free: 6.992 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004468/0.7689, allocations: 103.9 kB / 0.6919 GB, free: 6.891 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.161e-06/0.7689, allocations: 3.938 kB / 0.692 GB, free: 6.887 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.547e-05/0.769, allocations: 35.98 kB / 0.692 GB, free: 6.852 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.973e-06/0.769, allocations: 8 kB / 0.692 GB, free: 6.844 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.769, allocations: 0 / 0.692 GB, free: 6.844 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.77, allocations: 482.9 kB / 0.6925 GB, free: 6.355 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006459/0.7706, allocations: 253.2 kB / 0.6927 GB, free: 6.098 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.792e-05/0.7707, allocations: 0 / 0.6927 GB, free: 6.098 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.7709, allocations: 12 kB / 0.6927 GB, free: 6.086 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.497e-05/0.771, allocations: 43.89 kB / 0.6927 GB, free: 6.043 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/0.7712, allocations: 87.98 kB / 0.6928 GB, free: 5.957 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0007247/0.7719, allocations: 0.5654 MB / 0.6934 GB, free: 5.395 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/0.7719, allocations: 0 / 0.6934 GB, free: 5.395 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001053/0.7729, allocations: 183.8 kB / 0.6936 GB, free: 5.215 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.001368/0.7743, allocations: 1.144 MB / 0.6947 GB, free: 4.047 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001138/0.7754, allocations: 0.5827 MB / 0.6952 GB, free: 3.469 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.7754, allocations: 0 / 0.6952 GB, free: 3.469 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002226/0.7757, allocations: 135.9 kB / 0.6954 GB, free: 3.336 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006348/0.7763, allocations: 94.19 kB / 0.6955 GB, free: 3.242 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00813/0.7844, allocations: 6.165 MB / 0.7015 GB, free: 12.31 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004317/0.7849, allocations: 363.6 kB / 0.7018 GB, free: 11.93 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001492/0.7863, allocations: 0.5082 MB / 0.7023 GB, free: 11.42 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005271/0.7869, allocations: 259.2 kB / 0.7026 GB, free: 11.16 MB / 0.545 GB Notification: Performance of SimCode: time 1.242e-06/0.7869, allocations: 0 / 0.7026 GB, free: 11.16 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04853/0.8354, allocations: 15.01 MB / 0.7172 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.87, allocations: 6.859 kB / 0.7172 GB, free: 12.33 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_Definitions_fmu --startTime=0 --stopTime=2000 --stepSize=0.8 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_Definitions.fmu > Chemical_Chemical.Examples.Definitions.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.30033009199542] Failed to read output from testmodel.py, exit status != 0: 12.983523771021282 13.288917187 12.286320679 Calling exit ...