Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.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.001526/0.001526, 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.001419/0.001419, allocations: 221.1 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.388/1.388, allocations: 230.6 MB / 256 MB, free: 7.824 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.1327/0.1327, allocations: 23.92 MB / 336.4 MB, free: 10.96 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.Obsolete.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_AcidBase_Phosphate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_AcidBase_Phosphate",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.001957/0.001957, allocations: 67.89 kB / 471.2 MB, free: 7.477 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2996/0.3016, allocations: 59.87 MB / 0.5186 GB, free: 9.527 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335:66: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/Obsolete.mo:14335:7-14335:66: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.Obsolete.Examples.AcidBase.Phosphate): time 0.0711/0.3727, allocations: 28.59 MB / 0.5465 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03323/0.4059, allocations: 25.3 MB / 0.5712 GB, free: 3.977 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001566/0.4075, allocations: 31.75 kB / 0.5713 GB, free: 3.945 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001574/0.4091, allocations: 0.5116 MB / 0.5718 GB, free: 3.43 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007787/0.4169, allocations: 2.577 MB / 0.5743 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009839/0.4267, allocations: 3.573 MB / 0.5778 GB, free: 13.24 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004204/0.4309, allocations: 2.716 MB / 0.5804 GB, free: 10.52 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00189/0.4328, allocations: 1.38 MB / 0.5818 GB, free: 9.102 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001971/0.4348, allocations: 1.442 MB / 0.5832 GB, free: 7.656 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002922/0.4377, allocations: 1.647 MB / 0.5848 GB, free: 6.004 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004999/0.4382, allocations: 252 kB / 0.585 GB, free: 5.758 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007896/0.4461, allocations: 3.077 MB / 0.588 GB, free: 2.676 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007911/0.4469, allocations: 0.6155 MB / 0.5886 GB, free: 2.059 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001409/0.4483, allocations: 1.043 MB / 0.5897 GB, free: 1.012 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01266/0.4609, allocations: 6.109 MB / 0.5956 GB, free: 10.88 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.4609, allocations: 0 / 0.5956 GB, free: 10.88 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4609, allocations: 0 / 0.5956 GB, free: 10.88 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.726e-05/0.461, allocations: 0 / 0.5956 GB, free: 10.88 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.006571/0.4676, allocations: 2.927 MB / 0.5985 GB, free: 7.906 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.4676, allocations: 8.031 kB / 0.5985 GB, free: 7.898 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003457/0.468, allocations: 266 kB / 0.5987 GB, free: 7.629 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002242/0.4702, allocations: 474.8 kB / 0.5992 GB, free: 7.164 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002117/0.4723, allocations: 1.05 MB / 0.6002 GB, free: 6.086 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002725/0.4726, allocations: 357.8 kB / 0.6006 GB, free: 5.688 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003925/0.473, allocations: 192.3 kB / 0.6007 GB, free: 5.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004301/0.4773, allocations: 2.531 MB / 0.6032 GB, free: 2.934 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.58e-05/0.4773, allocations: 0 / 0.6032 GB, free: 2.934 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002145/0.4775, allocations: 76 kB / 0.6033 GB, free: 2.859 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.615e-05/0.4776, allocations: 44 kB / 0.6033 GB, free: 2.816 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005284/0.4829, allocations: 3.184 MB / 0.6064 GB, free: 15.63 MB / 462.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01439/0.4973, allocations: 7.118 MB / 0.6134 GB, free: 8.391 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00887/0.5061, allocations: 4.65 MB / 0.6179 GB, free: 3.727 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00192/0.508, allocations: 1.161 MB / 0.6191 GB, free: 2.566 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01269/0.5207, allocations: 5.778 MB / 0.6247 GB, free: 12.76 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.462e-05/0.5208, allocations: 51.88 kB / 0.6248 GB, free: 12.7 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001483/0.5223, allocations: 310.6 kB / 0.6251 GB, free: 12.39 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 4.128e-06/0.5223, allocations: 0 / 0.6251 GB, free: 12.39 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03136/0.5536, allocations: 7.354 MB / 0.6322 GB, free: 4.992 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.557e-05/0.5537, allocations: 69.41 kB / 0.6323 GB, free: 4.914 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001349/0.5551, allocations: 0.9283 MB / 0.6332 GB, free: 3.969 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004425/0.5555, allocations: 61.64 kB / 0.6333 GB, free: 3.902 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006825/0.5562, allocations: 0.8286 MB / 0.6341 GB, free: 3.062 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00092/0.5571, allocations: 0.6701 MB / 0.6347 GB, free: 2.387 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006761/0.5578, allocations: 415.9 kB / 0.6351 GB, free: 1.973 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.5579, allocations: 309 kB / 0.6354 GB, free: 1.668 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001446/0.5593, allocations: 0.7851 MB / 0.6362 GB, free: 0.8789 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002083/0.5614, allocations: 1.371 MB / 0.6375 GB, free: 15.25 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003855/0.5653, allocations: 2.36 MB / 0.6398 GB, free: 12.63 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-05/0.5653, allocations: 4 kB / 0.6398 GB, free: 12.63 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01272/0.578, allocations: 3.392 MB / 0.6431 GB, free: 9.219 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.793e-05/0.5781, allocations: 12 kB / 0.6432 GB, free: 9.207 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-05/0.5781, allocations: 24.12 kB / 0.6432 GB, free: 9.184 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004001/0.5821, allocations: 0.8062 MB / 0.644 GB, free: 8.367 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00213/0.5842, allocations: 0.5187 MB / 0.6445 GB, free: 7.848 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005891/0.5901, allocations: 3.666 MB / 0.6481 GB, free: 3.953 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001743/0.5918, allocations: 71.98 kB / 0.6481 GB, free: 3.883 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002609/0.5921, allocations: 120 kB / 0.6482 GB, free: 3.766 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * 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 initialization (268): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008094/0.5929, allocations: 404.6 kB / 0.6486 GB, free: 3.363 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003606/0.5933, allocations: 151 kB / 0.6488 GB, free: 3.215 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01282/0.6061, allocations: 3.323 MB / 0.652 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.892e-05/0.6061, allocations: 20 kB / 0.652 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.6061, allocations: 4 kB / 0.652 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.732e-05/0.6062, allocations: 11.91 kB / 0.652 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01573/0.6219, allocations: 4.938 MB / 0.6569 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.93e-05/0.6219, allocations: 0 / 0.6569 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001778/0.6237, allocations: 367.5 kB / 0.6572 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003976/0.6277, allocations: 0.7983 MB / 0.658 GB, free: 9.668 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003433/0.628, allocations: 71.89 kB / 0.6581 GB, free: 9.598 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005304/0.6333, allocations: 3.549 MB / 0.6615 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.6333, allocations: 3.984 kB / 0.6615 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01421/0.6475, allocations: 4.234 MB / 0.6657 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003931/0.6479, allocations: 139 kB / 0.6658 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002775/0.6482, allocations: 32 kB / 0.6658 GB, free: 1.395 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.6492, allocations: 47.98 kB / 0.6659 GB, free: 1.348 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004635/0.6497, allocations: 201.6 kB / 0.6661 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000179/0.6499, allocations: 83.95 kB / 0.6662 GB, free: 1.066 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0007764/0.6507, allocations: 0.5742 MB / 0.6667 GB, free: 496 kB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.6507, allocations: 0 / 0.6667 GB, free: 496 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00321/0.6539, allocations: 1.196 MB / 0.6679 GB, free: 15.29 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (solution.temperature,H.logn,H3PO4.logn,H2PO4.logn,HPO4.logn,PO4.logn,H2O.logn,OH.logn) * 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 (190): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0166/0.6705, allocations: 6.05 MB / 0.6738 GB, free: 9.199 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.00491/0.6754, allocations: 2.339 MB / 0.6761 GB, free: 6.832 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.6754, allocations: 0 / 0.6761 GB, free: 6.832 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.002621/0.678, allocations: 1.306 MB / 0.6774 GB, free: 5.5 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001479/0.6795, allocations: 322.4 kB / 0.6777 GB, free: 5.184 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04012/0.7196, allocations: 15.84 MB / 0.6931 GB, free: 4.566 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007911/0.7204, allocations: 0.7519 MB / 0.6939 GB, free: 3.777 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001575/0.722, allocations: 428 kB / 0.6943 GB, free: 3.355 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001197/0.7232, allocations: 0.8349 MB / 0.6951 GB, free: 2.523 MB / 0.5294 GB Notification: Performance of SimCode: time 1.142e-06/0.7232, allocations: 0 / 0.6951 GB, free: 2.523 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3282/1.051, allocations: 64.09 MB / 0.7577 GB, free: 170.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.4/15.45, allocations: 3.938 kB / 0.7577 GB, free: 170.4 MB / 0.5606 GB " [Timeout remaining time 644] (rm -f Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_AcidBase_Phosphate_fmu --startTime=0 --stopTime=0.05 --stepSize=2e-05 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_AcidBase_Phosphate.fmu > Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.05865649698535] Failed to read output from testmodel.py, exit status != 0: 15.601802121993387 15.618985041 15.154682614 Calling exit ...