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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 192.7 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.136/1.136, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1561/0.1561, allocations: 15.33 MB / 305.7 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001074/0.001074, allocations: 63.91 kB / 370.4 MB, free: 3.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07618/0.07727, allocations: 53.61 MB / 424 MB, free: 14.18 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.2442/0.3215, allocations: 28.34 MB / 452.4 MB, free: 39.19 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01968/0.3412, allocations: 28.7 MB / 481.1 MB, free: 23.4 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006829/0.3419, allocations: 27.06 kB / 481.1 MB, free: 23.39 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001014/0.3429, allocations: 0.572 MB / 481.7 MB, free: 23.06 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004209/0.3471, allocations: 2.575 MB / 484.3 MB, free: 21.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006325/0.3535, allocations: 3.505 MB / 487.8 MB, free: 19.46 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001884/0.3553, allocations: 2.706 MB / 490.5 MB, free: 18.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001263/0.3566, allocations: 1.64 MB / 492.1 MB, free: 17.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001118/0.3577, allocations: 1.406 MB / 493.5 MB, free: 16.94 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001572/0.3593, allocations: 1.61 MB / 495.1 MB, free: 16.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000349/0.3597, allocations: 248.2 kB / 495.4 MB, free: 16.3 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00724/0.3669, allocations: 3.149 MB / 498.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004277/0.3674, allocations: 0.6096 MB / 499.1 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008016/0.3682, allocations: 1.209 MB / 0.4886 GB, free: 14.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006711/0.3749, allocations: 5.887 MB / 0.4944 GB, free: 11.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.3749, allocations: 4 kB / 0.4944 GB, free: 11.9 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3749, allocations: 0 / 0.4944 GB, free: 11.9 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.325e-05/0.375, allocations: 0 / 0.4944 GB, free: 11.9 MB / 366.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.004694/0.3797, allocations: 2.986 MB / 0.4973 GB, free: 9.621 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.3797, allocations: 12.03 kB / 0.4973 GB, free: 9.609 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002565/0.38, allocations: 262.4 kB / 0.4975 GB, free: 9.387 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001648/0.3816, allocations: 469.8 kB / 0.498 GB, free: 8.988 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.3828, allocations: 1.055 MB / 0.499 GB, free: 8.062 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000119/0.3829, allocations: 249.5 kB / 0.4993 GB, free: 7.797 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002492/0.3832, allocations: 197.4 kB / 0.4994 GB, free: 7.605 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002967/0.3862, allocations: 2.507 MB / 0.5019 GB, free: 5.605 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.829e-05/0.3862, allocations: 0 / 0.5019 GB, free: 5.605 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001792/0.3864, allocations: 76 kB / 0.502 GB, free: 5.531 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.965e-05/0.3864, allocations: 44 kB / 0.502 GB, free: 5.488 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003473/0.3899, allocations: 3.189 MB / 0.5051 GB, free: 2.547 MB / 366.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.01065/0.4006, allocations: 8.385 MB / 0.5133 GB, free: 9.875 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007725/0.4083, allocations: 5.416 MB / 0.5186 GB, free: 4.312 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00158/0.4099, allocations: 1.28 MB / 0.5198 GB, free: 3.035 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0113/0.4212, allocations: 10.24 MB / 0.5299 GB, free: 7.711 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.774e-05/0.4212, allocations: 51.88 kB / 0.5299 GB, free: 7.652 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007779/0.422, allocations: 230.4 kB / 0.5301 GB, free: 7.426 MB / 398.1 MB Notification: Performance of pre-optimization done (n=158): time 2.525e-06/0.422, allocations: 0 / 0.5301 GB, free: 7.426 MB / 398.1 MB Notification: Performance of matching and sorting (n=187): time 0.02475/0.4468, allocations: 7.562 MB / 0.5375 GB, free: 15.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.4468, allocations: 77.39 kB / 0.5376 GB, free: 15.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008554/0.4477, allocations: 0.8934 MB / 0.5385 GB, free: 14.77 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001092/0.4478, allocations: 53.7 kB / 0.5385 GB, free: 14.71 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004508/0.4483, allocations: 0.8027 MB / 0.5393 GB, free: 13.89 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004317/0.4487, allocations: 0.6392 MB / 0.5399 GB, free: 13.25 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005262/0.4492, allocations: 411.8 kB / 0.5403 GB, free: 12.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.699e-05/0.4493, allocations: 305.1 kB / 0.5406 GB, free: 12.54 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001217/0.4506, allocations: 0.789 MB / 0.5414 GB, free: 11.74 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001593/0.4522, allocations: 1.371 MB / 0.5427 GB, free: 10.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002977/0.4551, allocations: 2.364 MB / 0.545 GB, free: 7.492 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.4552, allocations: 8 kB / 0.545 GB, free: 7.484 MB / 414.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01034/0.4655, allocations: 3.383 MB / 0.5483 GB, free: 4.082 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.4655, allocations: 12 kB / 0.5483 GB, free: 4.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.427e-05/0.4656, allocations: 20 kB / 0.5484 GB, free: 4.051 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003239/0.4688, allocations: 0.8184 MB / 0.5492 GB, free: 3.223 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001546/0.4704, allocations: 0.5187 MB / 0.5497 GB, free: 2.703 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004694/0.4751, allocations: 3.898 MB / 0.5535 GB, free: 14.53 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.4761, allocations: 71.98 kB / 0.5535 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001714/0.4763, allocations: 120 kB / 0.5537 GB, free: 14.34 MB / 430.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.0005655/0.4769, allocations: 398.6 kB / 0.554 GB, free: 13.94 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002532/0.4772, allocations: 154.1 kB / 0.5542 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0108/0.488, allocations: 3.331 MB / 0.5574 GB, free: 10.44 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.427e-05/0.488, allocations: 20.14 kB / 0.5574 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.488, allocations: 7.922 kB / 0.5575 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-05/0.488, allocations: 7.969 kB / 0.5575 GB, free: 10.4 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01225/0.5003, allocations: 5.23 MB / 0.5626 GB, free: 5.102 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.5003, allocations: 0 / 0.5626 GB, free: 5.102 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001272/0.5016, allocations: 363.5 kB / 0.5629 GB, free: 4.746 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003223/0.5048, allocations: 0.7905 MB / 0.5637 GB, free: 3.945 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000126/0.5049, allocations: 71.94 kB / 0.5638 GB, free: 3.875 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00426/0.5092, allocations: 3.787 MB / 0.5675 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.5092, allocations: 192 / 0.5675 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01134/0.5206, allocations: 4.239 MB / 0.5716 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00018/0.5208, allocations: 211.1 kB / 0.5718 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001982/0.521, allocations: 35.94 kB / 0.5718 GB, free: 11.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008227/0.5218, allocations: 47.98 kB / 0.5719 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003792/0.5222, allocations: 197.7 kB / 0.5721 GB, free: 11.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001318/0.5223, allocations: 79.94 kB / 0.5721 GB, free: 10.97 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005811/0.5229, allocations: 0.5703 MB / 0.5727 GB, free: 10.39 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5229, allocations: 0 / 0.5727 GB, free: 10.39 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002587/0.5255, allocations: 1.179 MB / 0.5739 GB, free: 9.211 MB / 446.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.01336/0.5389, allocations: 6.009 MB / 0.5797 GB, free: 3.168 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005867/0.5448, allocations: 2.816 MB / 0.5825 GB, free: 312 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.5448, allocations: 0 / 0.5825 GB, free: 312 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002151/0.5469, allocations: 1.494 MB / 0.5839 GB, free: 14.77 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00122/0.5482, allocations: 320.2 kB / 0.5842 GB, free: 14.45 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1421/0.6902, allocations: 16.7 MB / 0.6005 GB, free: 133.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005027/0.6908, allocations: 1.327 MB / 0.6018 GB, free: 132.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00145/0.6922, allocations: 408.9 kB / 0.6022 GB, free: 132.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007904/0.693, allocations: 0.8368 MB / 0.603 GB, free: 132.5 MB / 462.1 MB Notification: Performance of SimCode: time 4.81e-07/0.693, allocations: 0 / 0.603 GB, free: 132.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07077/0.7638, allocations: 59.49 MB / 0.6611 GB, free: 104.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.85, allocations: 8 kB / 0.6611 GB, free: 104.1 MB / 462.1 MB (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 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_AcidBase_Phosphate.fmu > Chemical_Chemical.Examples.AcidBase.Phosphate.pipe 2>&1)