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: translateModel(Chemical.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") translateModel(Chemical.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001106, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 187.1 kB / 16.25 MB, free: 6.637 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.364/1.364, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2686/0.2686, allocations: 15.31 MB / 305.4 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.001181, allocations: 59.91 kB / 369.8 MB, free: 4.277 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1316, allocations: 53.61 MB / 423.4 MB, free: 14.61 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.4759/0.6076, allocations: 28.46 MB / 451.9 MB, free: 39.02 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03194/0.6396, allocations: 28.33 MB / 480.2 MB, free: 23.85 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002561/0.6422, allocations: 42.75 kB / 480.3 MB, free: 23.83 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001784/0.644, allocations: 0.5141 MB / 480.8 MB, free: 23.56 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009668/0.6536, allocations: 2.343 MB / 483.1 MB, free: 22.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01397/0.6676, allocations: 3.137 MB / 486.3 MB, free: 20.41 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005614/0.6733, allocations: 2.713 MB / 489 MB, free: 19.11 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003624/0.6769, allocations: 1.623 MB / 490.6 MB, free: 18.38 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005092/0.6821, allocations: 1.499 MB / 492.1 MB, free: 17.87 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004575/0.6867, allocations: 1.643 MB / 493.7 MB, free: 17.24 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001549/0.6882, allocations: 247.5 kB / 494 MB, free: 17.24 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01907/0.7073, allocations: 3.237 MB / 497.2 MB, free: 16.42 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001751/0.7091, allocations: 0.6282 MB / 497.8 MB, free: 16.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003888/0.713, allocations: 1.221 MB / 499.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02326/0.7363, allocations: 5.67 MB / 0.4929 GB, free: 12.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.356e-06/0.7364, allocations: 1.656 kB / 0.4929 GB, free: 12.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.7364, allocations: 0 / 0.4929 GB, free: 12.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001823/0.7366, allocations: 4 kB / 0.4929 GB, free: 12.98 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.0118/0.7484, allocations: 2.987 MB / 0.4958 GB, free: 10.46 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.7484, allocations: 8.031 kB / 0.4958 GB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003256/0.7517, allocations: 470.8 kB / 0.4963 GB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002873/0.7546, allocations: 1.051 MB / 0.4973 GB, free: 9.133 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002319/0.7549, allocations: 253.3 kB / 0.4976 GB, free: 8.863 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008565/0.7557, allocations: 189.3 kB / 0.4977 GB, free: 8.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006685/0.7624, allocations: 2.511 MB / 0.5002 GB, free: 6.676 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.862e-05/0.7625, allocations: 4 kB / 0.5002 GB, free: 6.672 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003909/0.7629, allocations: 71.94 kB / 0.5003 GB, free: 6.602 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.941e-05/0.763, allocations: 48 kB / 0.5003 GB, free: 6.555 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005566/0.7685, allocations: 3.19 MB / 0.5034 GB, free: 3.832 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.01591/0.7845, allocations: 8.337 MB / 0.5116 GB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00971/0.7942, allocations: 5.427 MB / 0.5169 GB, free: 5.922 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00249/0.7968, allocations: 1.284 MB / 0.5181 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01803/0.8148, allocations: 10.26 MB / 0.5281 GB, free: 9.301 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.193e-05/0.8149, allocations: 47.88 kB / 0.5282 GB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001446/0.8164, allocations: 238.3 kB / 0.5284 GB, free: 9.012 MB / 398.1 MB Notification: Performance of pre-optimization done (n=158): time 1.635e-05/0.8164, allocations: 0 / 0.5284 GB, free: 9.012 MB / 398.1 MB Notification: Performance of matching and sorting (n=187): time 0.03172/0.8482, allocations: 7.562 MB / 0.5358 GB, free: 1.352 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.112e-05/0.8483, allocations: 69.41 kB / 0.5359 GB, free: 1.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001619/0.8499, allocations: 0.8973 MB / 0.5367 GB, free: 364 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005626/0.8505, allocations: 57.7 kB / 0.5368 GB, free: 300 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006911/0.8512, allocations: 0.8104 MB / 0.5376 GB, free: 15.47 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001093/0.8523, allocations: 0.6353 MB / 0.5382 GB, free: 14.82 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001404/0.8537, allocations: 411.8 kB / 0.5386 GB, free: 14.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.8539, allocations: 309.1 kB / 0.5389 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001864/0.8558, allocations: 0.7812 MB / 0.5396 GB, free: 13.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002259/0.8581, allocations: 1.379 MB / 0.541 GB, free: 11.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004311/0.8624, allocations: 2.356 MB / 0.5433 GB, free: 9.074 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.537e-05/0.8625, allocations: 8 kB / 0.5433 GB, free: 9.066 MB / 414.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01339/0.8758, allocations: 3.383 MB / 0.5466 GB, free: 5.664 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.516e-05/0.8759, allocations: 12 kB / 0.5466 GB, free: 5.652 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.621e-05/0.876, allocations: 20 kB / 0.5466 GB, free: 5.633 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00404/0.88, allocations: 0.8218 MB / 0.5474 GB, free: 4.801 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002622/0.8827, allocations: 0.5149 MB / 0.5479 GB, free: 4.285 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006167/0.8889, allocations: 3.89 MB / 0.5517 GB, free: 120 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002745/0.8917, allocations: 107.9 kB / 0.5518 GB, free: 12 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007147/0.8924, allocations: 124 kB / 0.552 GB, free: 15.89 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.001639/0.894, allocations: 405 kB / 0.5523 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008154/0.8949, allocations: 150.1 kB / 0.5525 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01322/0.9081, allocations: 3.334 MB / 0.5557 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.495e-05/0.9082, allocations: 20 kB / 0.5558 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.845e-05/0.9082, allocations: 4 kB / 0.5558 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.026e-05/0.9083, allocations: 11.91 kB / 0.5558 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0169/0.9252, allocations: 5.227 MB / 0.5609 GB, free: 6.652 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.101e-05/0.9252, allocations: 0 / 0.5609 GB, free: 6.652 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001634/0.9269, allocations: 363.5 kB / 0.5612 GB, free: 6.297 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00368/0.9306, allocations: 0.7984 MB / 0.562 GB, free: 5.488 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000334/0.9309, allocations: 67.94 kB / 0.5621 GB, free: 5.422 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005344/0.9363, allocations: 3.795 MB / 0.5658 GB, free: 1.348 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.9363, allocations: 0 / 0.5658 GB, free: 1.348 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01462/0.951, allocations: 4.235 MB / 0.5699 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007531/0.9518, allocations: 207.1 kB / 0.5701 GB, free: 12.87 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006767/0.9525, allocations: 36 kB / 0.5702 GB, free: 12.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00166/0.9541, allocations: 75.89 kB / 0.5702 GB, free: 12.76 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007582/0.9549, allocations: 197.7 kB / 0.5704 GB, free: 12.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000334/0.9553, allocations: 79.94 kB / 0.5705 GB, free: 12.48 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001305/0.9566, allocations: 0.5741 MB / 0.571 GB, free: 11.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.9566, allocations: 0 / 0.571 GB, free: 11.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005605/0.9622, allocations: 1.175 MB / 0.5722 GB, free: 10.73 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.004767/0.967, allocations: 1.323 MB / 0.5735 GB, free: 9.395 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008776/0.9758, allocations: 2.819 MB / 0.5762 GB, free: 6.531 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.9759, allocations: 0 / 0.5762 GB, free: 6.531 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003495/0.9794, allocations: 1.503 MB / 0.5777 GB, free: 4.984 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002562/0.982, allocations: 315.7 kB / 0.578 GB, free: 4.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008607/0.9906, allocations: 4.17 MB / 0.5821 GB, free: 492 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001385/0.992, allocations: 1.325 MB / 0.5834 GB, free: 15.12 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002613/0.9947, allocations: 424.2 kB / 0.5838 GB, free: 14.71 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008927/0.9956, allocations: 271.1 kB / 0.584 GB, free: 14.44 MB / 462.1 MB Notification: Performance of SimCode: time 1.693e-06/0.9956, allocations: 0 / 0.584 GB, free: 14.44 MB / 462.1 MB Notification: Performance of Templates: time 0.3382/1.334, allocations: 45.27 MB / 0.6283 GB, free: 127.4 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.Phosphate.makefile Failed to read output from testmodel.py, exit status != 0: 1.3354146741330624 1.354159008 0.615634998 Traceback (most recent call last): File "/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/./testmodel.py", line 440, in resFile = "%s_res.%s" % (conf["fileName"], outputFormat if not shared.isFMPy(fmisimulator) else 'csv') File "/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/shared.py", line 98, in isFMPy return 'fmpy' in fmisimulator TypeError: argument of type 'NoneType' is not iterable