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.001836/0.001836, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001617/0.001617, allocations: 212.5 kB / 22.25 MB, free: 5.121 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.638/1.638, allocations: 230.6 MB / 256 MB, free: 7.984 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.1426/0.1426, allocations: 23.89 MB / 336.3 MB, free: 11.14 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.001941/0.001941, allocations: 67.89 kB / 471.2 MB, free: 7.613 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.3518, allocations: 59.87 MB / 0.5187 GB, free: 9.59 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.03659/0.3884, allocations: 23.77 MB / 0.5419 GB, free: 15.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.1855/0.5739, allocations: 142.6 MB / 0.6811 GB, free: 3.262 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006559/0.5745, allocations: 7.938 kB / 0.6811 GB, free: 3.254 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002603/0.5771, allocations: 0.6687 MB / 0.6818 GB, free: 2.582 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.004497/0.5816, allocations: 2.216 MB / 0.6839 GB, free: 364 kB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001944/0.5836, allocations: 0.5128 MB / 0.6844 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.004155/0.5877, allocations: 2.01 MB / 0.6864 GB, free: 13.83 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.5878, allocations: 25.97 kB / 0.6864 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006716/0.5885, allocations: 382.8 kB / 0.6868 GB, free: 13.42 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001082/0.5896, allocations: 0.4907 MB / 0.6873 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0001304/0.5897, allocations: 20 kB / 0.6873 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00331/0.593, allocations: 1.283 MB / 0.6885 GB, free: 11.62 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002486/0.5933, allocations: 151.3 kB / 0.6887 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004889/0.5938, allocations: 317.8 kB / 0.689 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.003606/0.5974, allocations: 1.842 MB / 0.6908 GB, free: 9.312 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.5974, allocations: 0 / 0.6908 GB, free: 9.312 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.365e-06/0.5974, allocations: 0 / 0.6908 GB, free: 9.312 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.499e-05/0.5974, allocations: 0 / 0.6908 GB, free: 9.312 MB / 0.5294 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.002112/0.5995, allocations: 1.021 MB / 0.6918 GB, free: 8.258 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.5996, allocations: 8.031 kB / 0.6918 GB, free: 8.25 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001681/0.5998, allocations: 98.7 kB / 0.6919 GB, free: 8.145 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008328/0.6006, allocations: 295.9 kB / 0.6922 GB, free: 7.855 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007686/0.6014, allocations: 366 kB / 0.6925 GB, free: 7.473 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.232e-05/0.6014, allocations: 41.36 kB / 0.6926 GB, free: 7.434 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.008e-05/0.6015, allocations: 40.38 kB / 0.6926 GB, free: 7.395 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002902/0.6044, allocations: 2.474 MB / 0.695 GB, free: 4.898 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.6044, allocations: 0 / 0.695 GB, free: 4.898 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.556e-05/0.6045, allocations: 16 kB / 0.695 GB, free: 4.883 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001167/0.6046, allocations: 89.27 kB / 0.6951 GB, free: 4.797 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004584/0.6092, allocations: 4.238 MB / 0.6992 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00513/0.6143, allocations: 3.529 MB / 0.7027 GB, free: 12.94 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009926/0.6153, allocations: 483.2 kB / 0.7032 GB, free: 12.46 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002295/0.6155, allocations: 120.8 kB / 0.7033 GB, free: 12.34 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004473/0.62, allocations: 1.865 MB / 0.7051 GB, free: 10.45 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/0.62, allocations: 34.56 kB / 0.7051 GB, free: 10.41 MB / 0.545 GB Notification: Performance of pre-optimization done (n=25): time 2.194e-06/0.62, allocations: 0 / 0.7051 GB, free: 10.41 MB / 0.545 GB Notification: Performance of matching and sorting (n=25): time 0.0008907/0.6209, allocations: 464.8 kB / 0.7056 GB, free: 9.945 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.077e-05/0.621, allocations: 59.34 kB / 0.7056 GB, free: 9.875 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001168/0.6221, allocations: 0.8723 MB / 0.7065 GB, free: 8.996 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.387e-05/0.6222, allocations: 33.64 kB / 0.7065 GB, free: 8.957 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003785/0.6226, allocations: 479.1 kB / 0.707 GB, free: 8.48 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.6227, allocations: 107.2 kB / 0.7071 GB, free: 8.375 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004317/0.6231, allocations: 298.4 kB / 0.7074 GB, free: 8.078 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001926/0.6233, allocations: 358.8 kB / 0.7077 GB, free: 7.719 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003983/0.6237, allocations: 230.5 kB / 0.7079 GB, free: 7.496 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009748/0.6247, allocations: 0.896 MB / 0.7088 GB, free: 6.27 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001566/0.6262, allocations: 1.215 MB / 0.71 GB, free: 4.723 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.269e-05/0.6263, allocations: 8 kB / 0.71 GB, free: 4.715 MB / 0.545 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.002038/0.6283, allocations: 1.134 MB / 0.7111 GB, free: 3.574 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.308e-05/0.6283, allocations: 16 kB / 0.7111 GB, free: 3.559 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-05/0.6284, allocations: 24.84 kB / 0.7111 GB, free: 3.535 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.912e-05/0.6284, allocations: 28 kB / 0.7112 GB, free: 3.508 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007753/0.6292, allocations: 303.5 kB / 0.7114 GB, free: 3.211 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.632e-05/0.6293, allocations: 43.86 kB / 0.7115 GB, free: 3.168 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006039/0.6299, allocations: 143 kB / 0.7116 GB, free: 3.027 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001674/0.63, allocations: 128 kB / 0.7117 GB, free: 2.902 MB / 0.545 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.0004977/0.6305, allocations: 337.7 kB / 0.7121 GB, free: 2.562 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001541/0.6307, allocations: 87.38 kB / 0.7122 GB, free: 2.477 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00174/0.6324, allocations: 0.7898 MB / 0.7129 GB, free: 1.676 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.6324, allocations: 0 / 0.7129 GB, free: 1.676 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.6324, allocations: 4 kB / 0.7129 GB, free: 1.672 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.6324, allocations: 3.984 kB / 0.7129 GB, free: 1.668 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007342/0.6332, allocations: 484.2 kB / 0.7134 GB, free: 1.152 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.6332, allocations: 0 / 0.7134 GB, free: 1.152 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002745/0.6334, allocations: 104 kB / 0.7135 GB, free: 1.051 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.6335, allocations: 3.938 kB / 0.7135 GB, free: 1.047 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.922e-05/0.6335, allocations: 35.98 kB / 0.7135 GB, free: 1.012 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.6335, allocations: 0 / 0.7135 GB, free: 1.012 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.6335, allocations: 4 kB / 0.7135 GB, free: 1.008 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006995/0.6342, allocations: 487.1 kB / 0.714 GB, free: 0.5156 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005973/0.6348, allocations: 249.2 kB / 0.7142 GB, free: 268 kB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/0.6349, allocations: 4 kB / 0.7142 GB, free: 264 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002403/0.6352, allocations: 8 kB / 0.7142 GB, free: 256 kB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.12e-05/0.6353, allocations: 47.89 kB / 0.7143 GB, free: 208 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/0.6354, allocations: 83.98 kB / 0.7144 GB, free: 124 kB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0007816/0.6362, allocations: 0.5693 MB / 0.7149 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6362, allocations: 0 / 0.7149 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001/0.6372, allocations: 179.8 kB / 0.7151 GB, free: 15.38 MB / 0.5606 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.001406/0.6386, allocations: 1.153 MB / 0.7162 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001127/0.6397, allocations: 0.5835 MB / 0.7168 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.6397, allocations: 320 / 0.7168 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002355/0.6399, allocations: 148.2 kB / 0.7169 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006517/0.6406, allocations: 88.86 kB / 0.717 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008944/0.6495, allocations: 6.157 MB / 0.723 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007116/0.6502, allocations: 0.9528 MB / 0.724 GB, free: 5.484 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001499/0.6517, allocations: 0.5083 MB / 0.7245 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005251/0.6523, allocations: 255.2 kB / 0.7247 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of SimCode: time 1.132e-06/0.6523, allocations: 4 kB / 0.7247 GB, free: 4.723 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2685/0.9208, allocations: 14.76 MB / 0.7391 GB, free: 190.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.97, allocations: 11.7 kB / 0.7391 GB, free: 190.4 MB / 0.5606 GB " [Timeout remaining time 647] (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: 15.902498370967805] Failed to read output from testmodel.py, exit status != 0: 13.081532400101423 13.101614761 12.500243323 Calling exit ...