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.00145/0.00145, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001702/0.001702, allocations: 220.7 kB / 22.25 MB, free: 5.258 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.381/1.381, allocations: 230.6 MB / 256 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] 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.1339/0.1339, allocations: 23.93 MB / 336.4 MB, free: 10.88 MB / 270.1 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: 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.001979/0.001979, allocations: 63.89 kB / 471.2 MB, free: 7.414 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3051, allocations: 59.88 MB / 0.5186 GB, free: 9.484 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Interfaces.mo:437:5-437: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:437:5-437: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.06447/0.3696, allocations: 23.54 MB / 0.5416 GB, free: 15.76 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.1489/0.5185, allocations: 122 MB / 0.6607 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004064/0.5189, allocations: 4 kB / 0.6608 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001925/0.5208, allocations: 0.6025 MB / 0.6613 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003177/0.524, allocations: 1.959 MB / 0.6633 GB, free: 5.336 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001411/0.5254, allocations: 0.5166 MB / 0.6638 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003639/0.529, allocations: 2.002 MB / 0.6657 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.767e-05/0.5291, allocations: 29.84 kB / 0.6657 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004969/0.5296, allocations: 390.8 kB / 0.6661 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007991/0.5304, allocations: 494.6 kB / 0.6666 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.527e-05/0.5305, allocations: 23.94 kB / 0.6666 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001593/0.5321, allocations: 0.6942 MB / 0.6673 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001549/0.5322, allocations: 155.3 kB / 0.6674 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002233/0.5324, allocations: 234.3 kB / 0.6677 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00197/0.5344, allocations: 1.655 MB / 0.6693 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.5344, allocations: 0 / 0.6693 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.212e-06/0.5344, allocations: 7.938 kB / 0.6693 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.278e-05/0.5344, allocations: 0 / 0.6693 GB, free: 15.14 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.001403/0.5358, allocations: 1.013 MB / 0.6703 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.5359, allocations: 8.031 kB / 0.6703 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001109/0.536, allocations: 106.7 kB / 0.6704 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006577/0.5366, allocations: 292 kB / 0.6707 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005362/0.5372, allocations: 366 kB / 0.671 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.409e-05/0.5372, allocations: 33.38 kB / 0.671 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.974e-05/0.5373, allocations: 48.36 kB / 0.6711 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002524/0.5398, allocations: 2.628 MB / 0.6737 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.5398, allocations: 0 / 0.6737 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.752e-05/0.5399, allocations: 19.98 kB / 0.6737 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001002/0.54, allocations: 89.27 kB / 0.6738 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003922/0.5439, allocations: 4.234 MB / 0.6779 GB, free: 6.191 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004312/0.5482, allocations: 3.323 MB / 0.6811 GB, free: 2.809 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009084/0.5491, allocations: 479.2 kB / 0.6816 GB, free: 2.332 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/0.5493, allocations: 112.8 kB / 0.6817 GB, free: 2.219 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004357/0.5537, allocations: 1.846 MB / 0.6835 GB, free: 356 kB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.5537, allocations: 34.56 kB / 0.6835 GB, free: 312 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=25): time 1.773e-06/0.5537, allocations: 4 kB / 0.6835 GB, free: 308 kB / 0.5137 GB Notification: Performance of matching and sorting (n=25): time 0.0008194/0.5545, allocations: 469.7 kB / 0.684 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.397e-05/0.5546, allocations: 51.41 kB / 0.684 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000975/0.5555, allocations: 0.9109 MB / 0.6849 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 4.328e-05/0.5556, allocations: 29.7 kB / 0.685 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003086/0.5559, allocations: 479.1 kB / 0.6854 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 9.654e-05/0.556, allocations: 115.1 kB / 0.6855 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003239/0.5563, allocations: 306.4 kB / 0.6858 GB, free: 13.93 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001618/0.5565, allocations: 354.8 kB / 0.6862 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003441/0.5568, allocations: 234.5 kB / 0.6864 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008389/0.5576, allocations: 0.8882 MB / 0.6872 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001332/0.559, allocations: 1.223 MB / 0.6884 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/0.559, allocations: 4 kB / 0.6884 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.001633/0.5606, allocations: 1.127 MB / 0.6895 GB, free: 9.434 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.619e-05/0.5606, allocations: 16 kB / 0.6896 GB, free: 9.418 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.44e-05/0.5607, allocations: 24 kB / 0.6896 GB, free: 9.395 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.975e-05/0.5607, allocations: 32 kB / 0.6896 GB, free: 9.363 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007323/0.5614, allocations: 303.5 kB / 0.6899 GB, free: 9.066 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.84e-05/0.5615, allocations: 43.86 kB / 0.6899 GB, free: 9.023 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005291/0.562, allocations: 146.9 kB / 0.6901 GB, free: 8.879 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000146/0.5622, allocations: 128 kB / 0.6902 GB, free: 8.754 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.0004086/0.5626, allocations: 341.3 kB / 0.6905 GB, free: 8.41 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/0.5627, allocations: 91.38 kB / 0.6906 GB, free: 8.32 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001612/0.5643, allocations: 0.7823 MB / 0.6914 GB, free: 7.527 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.5643, allocations: 4 kB / 0.6914 GB, free: 7.523 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.5643, allocations: 0 / 0.6914 GB, free: 7.523 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.5643, allocations: 0 / 0.6914 GB, free: 7.523 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005795/0.5649, allocations: 468.2 kB / 0.6918 GB, free: 7.023 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.5649, allocations: 0 / 0.6918 GB, free: 7.023 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002772/0.5652, allocations: 99.95 kB / 0.6919 GB, free: 6.926 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.5652, allocations: 8 kB / 0.6919 GB, free: 6.918 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.645e-05/0.5652, allocations: 31.98 kB / 0.692 GB, free: 6.887 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.5652, allocations: 4 kB / 0.692 GB, free: 6.883 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.5652, allocations: 0 / 0.692 GB, free: 6.883 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006164/0.5658, allocations: 486.9 kB / 0.6924 GB, free: 6.391 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005238/0.5664, allocations: 245.2 kB / 0.6927 GB, free: 6.141 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.398e-05/0.5665, allocations: 4 kB / 0.6927 GB, free: 6.137 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002392/0.5667, allocations: 11.98 kB / 0.6927 GB, free: 6.125 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.925e-05/0.5668, allocations: 43.95 kB / 0.6927 GB, free: 6.082 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.5669, allocations: 87.98 kB / 0.6928 GB, free: 5.996 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.000638/0.5675, allocations: 0.5693 MB / 0.6934 GB, free: 5.43 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.5675, allocations: 0 / 0.6934 GB, free: 5.43 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008742/0.5684, allocations: 183.7 kB / 0.6935 GB, free: 5.25 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.001201/0.5696, allocations: 1.145 MB / 0.6947 GB, free: 4.078 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0009299/0.5705, allocations: 0.5819 MB / 0.6952 GB, free: 3.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.5705, allocations: 1.875 kB / 0.6952 GB, free: 3.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002151/0.5708, allocations: 143.8 kB / 0.6954 GB, free: 3.359 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005582/0.5713, allocations: 91.91 kB / 0.6955 GB, free: 3.27 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006962/0.5783, allocations: 6.157 MB / 0.7015 GB, free: 12.34 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003911/0.5787, allocations: 359.7 kB / 0.7018 GB, free: 11.96 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001364/0.58, allocations: 0.5044 MB / 0.7023 GB, free: 11.46 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004866/0.5805, allocations: 255.2 kB / 0.7025 GB, free: 11.21 MB / 0.545 GB Notification: Performance of SimCode: time 9.51e-07/0.5805, allocations: 0 / 0.7025 GB, free: 11.21 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04121/0.6217, allocations: 15.02 MB / 0.7172 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/11.42, allocations: 14.86 kB / 0.7172 GB, free: 12.36 MB / 0.5606 GB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Examples_Definitions_fmu --startTime=0 --stopTime=2000 --stepSize=0.8 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Examples_Definitions.fmu > Chemical_master_Chemical.Examples.Definitions.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.148490127990954] Failed to read output from testmodel.py, exit status != 0: 11.543649632978486 11.711724323 11.021010881 Calling exit ...