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.001336/0.001336, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001679/0.001679, allocations: 215.7 kB / 22.25 MB, free: 5.082 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.571/1.571, allocations: 230.6 MB / 256 MB, free: 8.047 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.1508/0.1508, allocations: 23.85 MB / 336.3 MB, free: 11.21 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.002978/0.002978, allocations: 67.89 kB / 471.2 MB, free: 7.719 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4773/0.4803, allocations: 59.86 MB / 0.5186 GB, free: 9.633 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.044/0.5243, allocations: 23.77 MB / 0.5418 GB, free: 15.85 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.2148/0.7392, allocations: 142.7 MB / 0.6811 GB, free: 3.301 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005873/0.7398, allocations: 4 kB / 0.6811 GB, free: 3.297 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002834/0.7426, allocations: 0.7348 MB / 0.6818 GB, free: 2.559 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.004002/0.7466, allocations: 2.166 MB / 0.684 GB, free: 392 kB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002023/0.7486, allocations: 0.5283 MB / 0.6845 GB, free: 15.85 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.004192/0.7528, allocations: 2.002 MB / 0.6864 GB, free: 13.85 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.7529, allocations: 29.95 kB / 0.6865 GB, free: 13.81 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005913/0.7535, allocations: 382.8 kB / 0.6868 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001076/0.7546, allocations: 494.5 kB / 0.6873 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 7.753e-05/0.7547, allocations: 20 kB / 0.6873 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003612/0.7583, allocations: 1.283 MB / 0.6886 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002073/0.7585, allocations: 155.3 kB / 0.6887 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0003283/0.7588, allocations: 313.8 kB / 0.689 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.00312/0.7619, allocations: 1.849 MB / 0.6908 GB, free: 9.328 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.7619, allocations: 0 / 0.6908 GB, free: 9.328 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.835e-06/0.762, allocations: 0 / 0.6908 GB, free: 9.328 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.455e-05/0.762, allocations: 0 / 0.6908 GB, free: 9.328 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.001835/0.7638, allocations: 1.021 MB / 0.6918 GB, free: 8.273 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/0.7639, allocations: 8.031 kB / 0.6918 GB, free: 8.266 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001412/0.764, allocations: 110.6 kB / 0.6919 GB, free: 8.148 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006815/0.7647, allocations: 284 kB / 0.6922 GB, free: 7.871 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005927/0.7653, allocations: 370 kB / 0.6926 GB, free: 7.484 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.599e-05/0.7653, allocations: 33.38 kB / 0.6926 GB, free: 7.453 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.549e-05/0.7654, allocations: 44.36 kB / 0.6926 GB, free: 7.41 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002844/0.7682, allocations: 2.47 MB / 0.695 GB, free: 4.918 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.375e-05/0.7682, allocations: 7.984 kB / 0.6951 GB, free: 4.91 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.71e-05/0.7683, allocations: 19.98 kB / 0.6951 GB, free: 4.891 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001176/0.7684, allocations: 85.27 kB / 0.6952 GB, free: 4.809 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004885/0.7733, allocations: 4.249 MB / 0.6993 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005383/0.7787, allocations: 3.521 MB / 0.7027 GB, free: 12.95 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.7798, allocations: 483 kB / 0.7032 GB, free: 12.47 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002437/0.7801, allocations: 112.8 kB / 0.7033 GB, free: 12.36 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004846/0.7849, allocations: 1.865 MB / 0.7051 GB, free: 10.46 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.656e-05/0.785, allocations: 34.56 kB / 0.7052 GB, free: 10.42 MB / 0.545 GB Notification: Performance of pre-optimization done (n=25): time 2.735e-06/0.785, allocations: 0 / 0.7052 GB, free: 10.42 MB / 0.545 GB Notification: Performance of matching and sorting (n=25): time 0.0008736/0.7858, allocations: 460.9 kB / 0.7056 GB, free: 9.965 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/0.7859, allocations: 59.39 kB / 0.7057 GB, free: 9.895 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001154/0.787, allocations: 0.8723 MB / 0.7065 GB, free: 9.016 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.426e-05/0.7871, allocations: 33.7 kB / 0.7065 GB, free: 8.977 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003895/0.7875, allocations: 475.1 kB / 0.707 GB, free: 8.504 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.7876, allocations: 107.2 kB / 0.7071 GB, free: 8.398 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003728/0.788, allocations: 302.4 kB / 0.7074 GB, free: 8.098 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002186/0.7882, allocations: 354.8 kB / 0.7077 GB, free: 7.742 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000371/0.7886, allocations: 234.4 kB / 0.7079 GB, free: 7.516 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/0.7896, allocations: 0.8961 MB / 0.7088 GB, free: 6.289 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00161/0.7912, allocations: 1.219 MB / 0.71 GB, free: 4.738 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.131e-05/0.7912, allocations: 8 kB / 0.71 GB, free: 4.73 MB / 0.545 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.001812/0.793, allocations: 1.127 MB / 0.7111 GB, free: 3.598 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.035e-05/0.7931, allocations: 12 kB / 0.7111 GB, free: 3.586 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.58e-05/0.7931, allocations: 24 kB / 0.7112 GB, free: 3.562 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.984e-05/0.7932, allocations: 39.97 kB / 0.7112 GB, free: 3.523 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007391/0.7939, allocations: 299.6 kB / 0.7115 GB, free: 3.23 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.016e-05/0.794, allocations: 51.78 kB / 0.7115 GB, free: 3.18 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005673/0.7945, allocations: 139 kB / 0.7117 GB, free: 3.043 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001764/0.7947, allocations: 131.9 kB / 0.7118 GB, free: 2.914 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.0004778/0.7952, allocations: 337.7 kB / 0.7121 GB, free: 2.574 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001424/0.7953, allocations: 87.38 kB / 0.7122 GB, free: 2.488 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001713/0.797, allocations: 0.786 MB / 0.713 GB, free: 1.691 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.797, allocations: 0 / 0.713 GB, free: 1.691 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.797, allocations: 0 / 0.713 GB, free: 1.691 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.797, allocations: 0 / 0.713 GB, free: 1.691 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006954/0.7977, allocations: 488.2 kB / 0.7134 GB, free: 1.172 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.7977, allocations: 0 / 0.7134 GB, free: 1.172 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002835/0.798, allocations: 107.9 kB / 0.7135 GB, free: 1.066 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.798, allocations: 0 / 0.7135 GB, free: 1.066 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.175e-05/0.7981, allocations: 35.98 kB / 0.7136 GB, free: 1.031 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/0.7981, allocations: 0 / 0.7136 GB, free: 1.031 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.7981, allocations: 7.984 kB / 0.7136 GB, free: 1.023 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000673/0.7988, allocations: 483.2 kB / 0.714 GB, free: 0.5352 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000543/0.7993, allocations: 253.2 kB / 0.7143 GB, free: 284 kB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.073e-05/0.7994, allocations: 11.94 kB / 0.7143 GB, free: 272 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002377/0.7996, allocations: 4 kB / 0.7143 GB, free: 268 kB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.571e-05/0.7997, allocations: 47.95 kB / 0.7143 GB, free: 220 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/0.7998, allocations: 83.98 kB / 0.7144 GB, free: 136 kB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0007265/0.8006, allocations: 0.5693 MB / 0.715 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7e-08/0.8006, allocations: 0 / 0.715 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0009117/0.8015, allocations: 183.8 kB / 0.7151 GB, free: 15.39 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.001505/0.803, allocations: 1.148 MB / 0.7163 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001001/0.804, allocations: 0.5836 MB / 0.7168 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.804, allocations: 4.25 kB / 0.7168 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002181/0.8042, allocations: 136.3 kB / 0.717 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005965/0.8048, allocations: 85.98 kB / 0.7171 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008291/0.8131, allocations: 6.165 MB / 0.7231 GB, free: 6.48 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007277/0.8138, allocations: 0.9566 MB / 0.724 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001539/0.8153, allocations: 0.5083 MB / 0.7245 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006908/0.816, allocations: 263.2 kB / 0.7248 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of SimCode: time 1.072e-06/0.816, allocations: 0 / 0.7248 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3727/1.189, allocations: 14.75 MB / 0.7392 GB, free: 190.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/14.18, allocations: 7.797 kB / 0.7392 GB, free: 190.4 MB / 0.5606 GB " [Timeout remaining time 646] (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: 17.18372903787531] Failed to read output from testmodel.py, exit status != 0: 14.295495714060962 14.315332251 13.549255374 Calling exit ...