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.0007576/0.0007576, allocations: 80.44 kB / 19.17 MB, free: 0.7344 MB / 13.93 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.0007497/0.0007497, allocations: 165.9 kB / 22.45 MB, free: 2.102 MB / 18.57 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 0.8319/0.8319, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.08053/0.08053, allocations: 17.45 MB / 276.6 MB, free: 11.77 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 411.6 MB, free: 248 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.85e-05/1.984e-05, allocations: 9.234 kB / 411.6 MB, free: 240 kB / 378.7 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.01934/0.01936, allocations: 28.92 MB / 440.5 MB, free: 3.379 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1531/0.1725, allocations: 25.29 MB / 465.8 MB, free: 49.29 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005996/0.1731, allocations: 35.62 kB / 465.9 MB, free: 49.27 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007273/0.1738, allocations: 0.5297 MB / 466.4 MB, free: 48.99 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002985/0.1768, allocations: 2.643 MB / 469 MB, free: 47.43 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004326/0.1811, allocations: 3.678 MB / 472.7 MB, free: 45.28 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001195/0.1823, allocations: 2.812 MB / 475.5 MB, free: 43.88 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007047/0.183, allocations: 1.355 MB / 476.9 MB, free: 43.26 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008787/0.1839, allocations: 1.959 MB / 478.8 MB, free: 42.54 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000917/0.1848, allocations: 1.365 MB / 480.2 MB, free: 42.2 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001952/0.185, allocations: 248.8 kB / 480.4 MB, free: 42.2 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003673/0.1887, allocations: 3.029 MB / 483.5 MB, free: 41.52 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002528/0.189, allocations: 0.6279 MB / 484.1 MB, free: 41.13 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004492/0.1894, allocations: 0.9023 MB / 485 MB, free: 40.75 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004578/0.194, allocations: 6.505 MB / 491.5 MB, free: 38.02 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.194, allocations: 1.406 kB / 491.5 MB, free: 38.02 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.194, allocations: 0 / 491.5 MB, free: 38.02 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.948e-05/0.194, allocations: 0 / 491.5 MB, free: 38.02 MB / 410.7 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.003279/0.1973, allocations: 2.901 MB / 494.4 MB, free: 36.41 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.1973, allocations: 11.12 kB / 494.4 MB, free: 36.41 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002426/0.1976, allocations: 264.9 kB / 494.7 MB, free: 36.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001158/0.1987, allocations: 474.1 kB / 495.1 MB, free: 36.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001246/0.2, allocations: 1.05 MB / 496.2 MB, free: 35.52 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001554/0.2001, allocations: 358.9 kB / 496.5 MB, free: 35.2 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002434/0.2004, allocations: 187.7 kB / 496.7 MB, free: 35.14 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00279/0.2032, allocations: 2.529 MB / 499.3 MB, free: 34.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.585e-05/0.2032, allocations: 1.844 kB / 499.3 MB, free: 34.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001472/0.2033, allocations: 82.17 kB / 499.3 MB, free: 34.12 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-05/0.2034, allocations: 44.25 kB / 499.4 MB, free: 34.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003289/0.2067, allocations: 3.178 MB / 0.4908 GB, free: 33.17 MB / 410.7 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.007491/0.2142, allocations: 7.131 MB / 0.4977 GB, free: 29.37 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004727/0.2189, allocations: 4.645 MB / 0.5023 GB, free: 27.95 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009468/0.2198, allocations: 1.159 MB / 0.5034 GB, free: 26.92 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005778/0.2256, allocations: 5.789 MB / 0.5091 GB, free: 21.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.836e-05/0.2256, allocations: 47.88 kB / 0.5091 GB, free: 21.3 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005662/0.2262, allocations: 310.6 kB / 0.5094 GB, free: 21 MB / 410.7 MB Notification: Performance of pre-optimization done (n=158): time 3.056e-06/0.2262, allocations: 3.938 kB / 0.5094 GB, free: 21 MB / 410.7 MB Notification: Performance of matching and sorting (n=187): time 0.01303/0.2392, allocations: 7.339 MB / 0.5166 GB, free: 13.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.733e-05/0.2393, allocations: 79.95 kB / 0.5167 GB, free: 13.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005485/0.2398, allocations: 0.9277 MB / 0.5176 GB, free: 12.65 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.846e-05/0.2399, allocations: 57.7 kB / 0.5176 GB, free: 12.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002055/0.2401, allocations: 0.8324 MB / 0.5184 GB, free: 11.75 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002135/0.2403, allocations: 0.6506 MB / 0.5191 GB, free: 11.09 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003167/0.2406, allocations: 411.9 kB / 0.5195 GB, free: 10.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.019e-05/0.2406, allocations: 301.1 kB / 0.5197 GB, free: 10.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007421/0.2414, allocations: 0.7877 MB / 0.5205 GB, free: 9.594 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008803/0.2423, allocations: 1.379 MB / 0.5219 GB, free: 7.953 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001789/0.244, allocations: 2.352 MB / 0.5242 GB, free: 5.371 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.2441, allocations: 10.62 kB / 0.5242 GB, free: 5.363 MB / 410.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.005539/0.2496, allocations: 3.387 MB / 0.5275 GB, free: 1.992 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.2496, allocations: 15.94 kB / 0.5275 GB, free: 1.977 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.2496, allocations: 19.94 kB / 0.5275 GB, free: 1.957 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001653/0.2513, allocations: 0.8191 MB / 0.5283 GB, free: 1.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008464/0.2521, allocations: 0.5205 MB / 0.5288 GB, free: 0.6445 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002985/0.2551, allocations: 3.651 MB / 0.5324 GB, free: 12.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007008/0.2558, allocations: 75.92 kB / 0.5325 GB, free: 12.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001324/0.2559, allocations: 123.9 kB / 0.5326 GB, free: 12.59 MB / 426.7 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.0004969/0.2564, allocations: 399.8 kB / 0.533 GB, free: 12.19 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000179/0.2566, allocations: 159 kB / 0.5331 GB, free: 12.03 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006342/0.263, allocations: 3.326 MB / 0.5364 GB, free: 8.773 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.168e-06/0.263, allocations: 20 kB / 0.5364 GB, free: 8.754 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.263, allocations: 0 / 0.5364 GB, free: 8.754 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/0.263, allocations: 11.95 kB / 0.5364 GB, free: 8.742 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007501/0.2705, allocations: 4.944 MB / 0.5412 GB, free: 3.766 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.2705, allocations: 0 / 0.5412 GB, free: 3.766 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000723/0.2712, allocations: 369 kB / 0.5416 GB, free: 3.406 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001686/0.2729, allocations: 0.7908 MB / 0.5423 GB, free: 2.637 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.034e-05/0.273, allocations: 71.94 kB / 0.5424 GB, free: 2.566 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002851/0.2758, allocations: 3.553 MB / 0.5459 GB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2758, allocations: 0 / 0.5459 GB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006698/0.2825, allocations: 4.234 MB / 0.55 GB, free: 10.56 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001548/0.2827, allocations: 138.9 kB / 0.5501 GB, free: 10.43 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/0.2828, allocations: 35.94 kB / 0.5502 GB, free: 10.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000446/0.2833, allocations: 43.98 kB / 0.5502 GB, free: 10.35 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005102/0.2838, allocations: 205.5 kB / 0.5504 GB, free: 10.15 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.926e-05/0.2839, allocations: 85.94 kB / 0.5505 GB, free: 10.07 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004503/0.2843, allocations: 0.5742 MB / 0.5511 GB, free: 9.488 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2843, allocations: 0 / 0.5511 GB, free: 9.488 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002286/0.2866, allocations: 1.188 MB / 0.5522 GB, free: 8.297 MB / 442.7 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.009028/0.2956, allocations: 6.098 MB / 0.5582 GB, free: 2.254 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00266/0.2983, allocations: 2.331 MB / 0.5605 GB, free: 15.91 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.2983, allocations: 0 / 0.5605 GB, free: 15.91 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001344/0.2997, allocations: 1.312 MB / 0.5617 GB, free: 14.57 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008711/0.3005, allocations: 308.8 kB / 0.562 GB, free: 14.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02031/0.3208, allocations: 15.77 MB / 0.5774 GB, free: 13.83 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000495/0.3213, allocations: 0.7454 MB / 0.5782 GB, free: 13.07 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001228/0.3226, allocations: 422.5 kB / 0.5786 GB, free: 12.79 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000751/0.3233, allocations: 0.8414 MB / 0.5794 GB, free: 11.95 MB / 474.7 MB Notification: Performance of SimCode: time 8.31e-07/0.3233, allocations: 0 / 0.5794 GB, free: 11.95 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1892/0.5125, allocations: 63.64 MB / 0.6415 GB, free: 148.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.735/9.248, allocations: 5.219 kB / 0.6415 GB, free: 148.7 MB / 0.4948 GB " [Timeout remaining time 651] (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: 10.952850935049355] Failed to read output from testmodel.py, exit status != 0: 9.363297783769667 9.371033889 9.175464424 Calling exit ...