Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.Phosphate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001754/0.001754, allocations: 104.7 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002205/0.002205, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.501/1.501, allocations: 225.6 MB / 247.8 MB, free: 3.75 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08646/0.08646, allocations: 15.54 MB / 318.2 MB, free: 13.56 MB / 254.1 MB " [Timeout remaining time 180] Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_Phosphate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_Phosphate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 75.88 kB / 444.9 MB, free: 120 kB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2818, allocations: 56.55 MB / 0.4897 GB, free: 20.78 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.AcidBase.Phosphate): time 0.03893/0.3208, allocations: 29.35 MB / 0.5184 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03808/0.3589, allocations: 28.79 MB / 0.5465 GB, free: 13.73 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001765/0.3606, allocations: 23.88 kB / 0.5465 GB, free: 13.7 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00203/0.3627, allocations: 0.5777 MB / 0.5471 GB, free: 13.12 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008323/0.371, allocations: 2.592 MB / 0.5496 GB, free: 10.51 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009767/0.3807, allocations: 3.542 MB / 0.5531 GB, free: 6.949 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004341/0.3851, allocations: 2.704 MB / 0.5557 GB, free: 4.234 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002079/0.3872, allocations: 1.414 MB / 0.5571 GB, free: 2.781 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002107/0.3893, allocations: 1.43 MB / 0.5585 GB, free: 1.348 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002863/0.3921, allocations: 1.651 MB / 0.5601 GB, free: 15.69 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006839/0.3928, allocations: 248 kB / 0.5603 GB, free: 15.45 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01/0.4028, allocations: 3.19 MB / 0.5635 GB, free: 12.25 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001119/0.4039, allocations: 0.6193 MB / 0.5641 GB, free: 11.63 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001755/0.4057, allocations: 1.214 MB / 0.5653 GB, free: 10.41 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01677/0.4225, allocations: 5.965 MB / 0.5711 GB, free: 4.426 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.777e-06/0.4225, allocations: 0 / 0.5711 GB, free: 4.426 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4225, allocations: 0 / 0.5711 GB, free: 4.426 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001001/0.4226, allocations: 0 / 0.5711 GB, free: 4.426 MB / 430.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.008755/0.4313, allocations: 3.01 MB / 0.574 GB, free: 1.352 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.4314, allocations: 12.03 kB / 0.574 GB, free: 1.34 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003763/0.4318, allocations: 266 kB / 0.5743 GB, free: 1.07 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00238/0.4341, allocations: 478.5 kB / 0.5747 GB, free: 0.6016 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002502/0.4366, allocations: 1.108 MB / 0.5758 GB, free: 15.45 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002594/0.4369, allocations: 255 kB / 0.5761 GB, free: 15.18 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004065/0.4373, allocations: 192.3 kB / 0.5762 GB, free: 14.99 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004617/0.4419, allocations: 2.527 MB / 0.5787 GB, free: 12.43 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.971e-05/0.442, allocations: 7.938 kB / 0.5787 GB, free: 12.42 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002174/0.4422, allocations: 76 kB / 0.5788 GB, free: 12.35 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.576e-05/0.4422, allocations: 44 kB / 0.5788 GB, free: 12.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005556/0.4478, allocations: 3.208 MB / 0.582 GB, free: 9.094 MB / 446.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.01712/0.4649, allocations: 8.446 MB / 0.5902 GB, free: 356 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0101/0.475, allocations: 5.294 MB / 0.5954 GB, free: 10.92 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002363/0.4774, allocations: 1.164 MB / 0.5965 GB, free: 9.75 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2417/0.7191, allocations: 10.31 MB / 0.6066 GB, free: 97.91 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.685e-05/0.7191, allocations: 54.55 kB / 0.6066 GB, free: 97.87 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001551/0.7207, allocations: 308.2 kB / 0.6069 GB, free: 97.87 MB / 462.1 MB Notification: Performance of pre-optimization done (n=158): time 5.26e-06/0.7207, allocations: 0 / 0.6069 GB, free: 97.87 MB / 462.1 MB Notification: Performance of matching and sorting (n=187): time 0.03205/0.7527, allocations: 7.577 MB / 0.6143 GB, free: 95.32 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.7528, allocations: 78.12 kB / 0.6144 GB, free: 95.25 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001147/0.7539, allocations: 0.9 MB / 0.6153 GB, free: 94.89 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002947/0.7542, allocations: 56.14 kB / 0.6153 GB, free: 94.84 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003748/0.7546, allocations: 0.8232 MB / 0.6161 GB, free: 94.27 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004673/0.7551, allocations: 0.6683 MB / 0.6168 GB, free: 93.83 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005345/0.7556, allocations: 411 kB / 0.6172 GB, free: 93.65 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.715e-05/0.7557, allocations: 303.8 kB / 0.6175 GB, free: 93.36 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001251/0.7569, allocations: 0.7891 MB / 0.6182 GB, free: 93.05 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001456/0.7584, allocations: 1.375 MB / 0.6196 GB, free: 92.03 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0029/0.7613, allocations: 2.358 MB / 0.6219 GB, free: 90.49 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.7613, allocations: 3.938 kB / 0.6219 GB, free: 90.49 MB / 462.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.0114/0.7727, allocations: 3.391 MB / 0.6252 GB, free: 89.31 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.642e-05/0.7727, allocations: 12.69 kB / 0.6252 GB, free: 89.31 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.389e-05/0.7727, allocations: 17.5 kB / 0.6252 GB, free: 89.31 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003564/0.7763, allocations: 0.815 MB / 0.626 GB, free: 89.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001929/0.7782, allocations: 0.5157 MB / 0.6265 GB, free: 88.97 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004681/0.7829, allocations: 3.895 MB / 0.6303 GB, free: 85.33 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001861/0.7848, allocations: 76.64 kB / 0.6304 GB, free: 85.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001963/0.785, allocations: 123.5 kB / 0.6305 GB, free: 85.26 MB / 462.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.0007429/0.7857, allocations: 395.9 kB / 0.6309 GB, free: 84.97 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003007/0.786, allocations: 160.7 kB / 0.6311 GB, free: 84.88 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01121/0.7972, allocations: 3.324 MB / 0.6343 GB, free: 83.06 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.771e-05/0.7973, allocations: 21.34 kB / 0.6343 GB, free: 83.06 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.7973, allocations: 0 / 0.6343 GB, free: 83.06 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.835e-05/0.7973, allocations: 7.969 kB / 0.6343 GB, free: 83.05 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01405/0.8114, allocations: 5.245 MB / 0.6395 GB, free: 79 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.156e-05/0.8114, allocations: 0 / 0.6395 GB, free: 79 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001672/0.8131, allocations: 366.2 kB / 0.6398 GB, free: 78.64 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003405/0.8165, allocations: 0.7977 MB / 0.6406 GB, free: 77.87 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002858/0.8168, allocations: 70.61 kB / 0.6407 GB, free: 77.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004102/0.8209, allocations: 3.79 MB / 0.6444 GB, free: 73.75 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.8209, allocations: 2.688 kB / 0.6444 GB, free: 73.75 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01161/0.8325, allocations: 4.234 MB / 0.6485 GB, free: 69.52 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004019/0.8329, allocations: 214.2 kB / 0.6487 GB, free: 69.29 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002253/0.8331, allocations: 39.98 kB / 0.6487 GB, free: 69.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009447/0.834, allocations: 36 kB / 0.6488 GB, free: 69.22 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003998/0.8344, allocations: 204.2 kB / 0.649 GB, free: 69.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001345/0.8346, allocations: 83.94 kB / 0.649 GB, free: 68.94 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006101/0.8352, allocations: 0.5742 MB / 0.6496 GB, free: 68.36 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.8352, allocations: 0 / 0.6496 GB, free: 68.36 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003224/0.8384, allocations: 1.19 MB / 0.6508 GB, free: 67.29 MB / 462.1 MB 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.01393/0.8523, allocations: 6.029 MB / 0.6567 GB, free: 61.48 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0043/0.8566, allocations: 2.414 MB / 0.659 GB, free: 59.02 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.349e-06/0.8567, allocations: 0 / 0.659 GB, free: 59.02 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002107/0.8588, allocations: 1.379 MB / 0.6604 GB, free: 57.61 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001482/0.8602, allocations: 329.5 kB / 0.6607 GB, free: 57.32 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03357/0.8938, allocations: 15.85 MB / 0.6761 GB, free: 40.88 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006226/0.8944, allocations: 1.329 MB / 0.6774 GB, free: 39.54 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001577/0.896, allocations: 411.6 kB / 0.6778 GB, free: 39.25 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008896/0.8969, allocations: 0.8383 MB / 0.6787 GB, free: 38.42 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.8969, allocations: 0 / 0.6787 GB, free: 38.42 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1013/0.9982, allocations: 60.27 MB / 0.7375 GB, free: 10.86 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.17/18.17, allocations: 4.062 kB / 0.7375 GB, free: 10.85 MB / 494.1 MB " [Timeout remaining time 642] (rm -f Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.Phosphate.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.Phosphate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_AcidBase_Phosphate_fmu --startTime=0 --stopTime=0.05 --stepSize=2e-05 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_AcidBase_Phosphate.fmu > Chemical_Chemical.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 20.947370345704257] Failed to read output from testmodel.py, exit status != 0: 18.30375741701573 18.325599451 17.898650025 Calling exit ...