Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.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.CarbonDioxideInWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater") translateModel(Chemical.Examples.AcidBase.CarbonDioxideInWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001386/0.001386, allocations: 194.8 kB / 16.25 MB, free: 6.621 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.638/1.638, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.3943/0.3943, allocations: 15.32 MB / 305.4 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 55.91 kB / 369.8 MB, free: 4.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1481, allocations: 53.62 MB / 423.4 MB, free: 14.65 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.009694/0.1579, allocations: 8.546 MB / 432 MB, free: 6.066 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.4035/0.5614, allocations: 23.02 MB / 455 MB, free: 37.48 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002376/0.5638, allocations: 34.47 kB / 455 MB, free: 37.47 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001649/0.5655, allocations: 437.9 kB / 455.5 MB, free: 37.25 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007561/0.5731, allocations: 1.776 MB / 457.2 MB, free: 36.33 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01138/0.5846, allocations: 2.608 MB / 459.8 MB, free: 35.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004451/0.589, allocations: 2.122 MB / 462 MB, free: 34.75 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001886/0.5909, allocations: 1.222 MB / 463.2 MB, free: 34.21 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001737/0.5927, allocations: 1.128 MB / 464.3 MB, free: 33.81 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001605/0.5943, allocations: 1.234 MB / 465.6 MB, free: 33.33 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002831/0.5946, allocations: 190 kB / 465.7 MB, free: 33.33 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01147/0.6061, allocations: 2.574 MB / 468.3 MB, free: 32.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001085/0.6072, allocations: 485.9 kB / 468.8 MB, free: 32.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001724/0.6089, allocations: 0.9522 MB / 469.7 MB, free: 31.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01606/0.625, allocations: 4.483 MB / 474.2 MB, free: 29.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.625, allocations: 0 / 474.2 MB, free: 29.95 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.6251, allocations: 5.719 kB / 474.2 MB, free: 29.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.29e-05/0.6251, allocations: 4 kB / 474.2 MB, free: 29.95 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: 368 * Number of variables: 368 Notification: Performance of Generate backend data structure: time 0.007549/0.6327, allocations: 2.405 MB / 476.6 MB, free: 28.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.6327, allocations: 10.16 kB / 476.6 MB, free: 28.55 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002342/0.6351, allocations: 393.1 kB / 477 MB, free: 28.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001899/0.637, allocations: 0.8579 MB / 477.9 MB, free: 27.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001885/0.6372, allocations: 170 kB / 478.1 MB, free: 27.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003088/0.6375, allocations: 151.9 kB / 478.2 MB, free: 27.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003987/0.6415, allocations: 2.028 MB / 480.2 MB, free: 26.92 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.214e-05/0.6416, allocations: 0 / 480.2 MB, free: 26.92 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001597/0.6417, allocations: 56.38 kB / 480.3 MB, free: 26.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-05/0.6418, allocations: 38.31 kB / 480.3 MB, free: 26.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005141/0.6469, allocations: 2.701 MB / 483 MB, free: 26.05 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.01369/0.6606, allocations: 6.49 MB / 489.5 MB, free: 22.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006107/0.6668, allocations: 3.308 MB / 492.8 MB, free: 21.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001953/0.6688, allocations: 0.8898 MB / 493.7 MB, free: 20.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0125/0.6813, allocations: 7.222 MB / 0.4892 GB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.803e-05/0.6814, allocations: 48.44 kB / 0.4892 GB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00138/0.6828, allocations: 170.9 kB / 0.4894 GB, free: 14.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=117): time 4.028e-06/0.6828, allocations: 0 / 0.4894 GB, free: 14.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.02193/0.7047, allocations: 5.413 MB / 0.4947 GB, free: 11.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.7048, allocations: 68.72 kB / 0.4948 GB, free: 11.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001256/0.7061, allocations: 1.025 MB / 0.4958 GB, free: 10.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002088/0.7063, allocations: 53.7 kB / 0.4958 GB, free: 10.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000324/0.7067, allocations: 0.6739 MB / 0.4965 GB, free: 9.988 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003731/0.707, allocations: 488.9 kB / 0.4969 GB, free: 9.504 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004249/0.7075, allocations: 331.3 kB / 0.4972 GB, free: 9.176 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.243e-05/0.7075, allocations: 305.1 kB / 0.4975 GB, free: 8.875 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008561/0.7084, allocations: 0.652 MB / 0.4982 GB, free: 8.223 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/0.7095, allocations: 1.107 MB / 0.4993 GB, free: 6.926 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001977/0.7115, allocations: 1.804 MB / 0.501 GB, free: 4.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.7115, allocations: 4 kB / 0.501 GB, free: 4.926 MB / 366.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.005817/0.7174, allocations: 2.408 MB / 0.5034 GB, free: 2.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.838e-05/0.7174, allocations: 22.06 kB / 0.5034 GB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.222e-05/0.7175, allocations: 12 kB / 0.5034 GB, free: 2.469 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002574/0.72, allocations: 494 kB / 0.5039 GB, free: 1.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00161/0.7217, allocations: 419.4 kB / 0.5043 GB, free: 1.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005483/0.7272, allocations: 3.873 MB / 0.5081 GB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002115/0.7293, allocations: 80.03 kB / 0.5081 GB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002349/0.7295, allocations: 95.89 kB / 0.5082 GB, free: 13.25 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (212): * Single equations (assignments): 209 * 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 {(2,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.0009485/0.7305, allocations: 337.2 kB / 0.5085 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004314/0.7309, allocations: 130.4 kB / 0.5087 GB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006815/0.7378, allocations: 2.128 MB / 0.5107 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.711e-05/0.7378, allocations: 20 kB / 0.5108 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.7378, allocations: 3.938 kB / 0.5108 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.838e-05/0.7379, allocations: 7.969 kB / 0.5108 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008907/0.7468, allocations: 3.534 MB / 0.5142 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/0.7468, allocations: 3.938 kB / 0.5142 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001188/0.748, allocations: 279.6 kB / 0.5145 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002689/0.7507, allocations: 466 kB / 0.5149 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002052/0.7509, allocations: 43.97 kB / 0.515 GB, free: 6.227 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005301/0.7562, allocations: 3.788 MB / 0.5187 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.7563, allocations: 3.938 kB / 0.5187 GB, free: 2.152 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007383/0.7637, allocations: 2.743 MB / 0.5214 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006597/0.7644, allocations: 187.6 kB / 0.5215 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001968/0.7646, allocations: 27.94 kB / 0.5216 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008606/0.7654, allocations: 55.88 kB / 0.5216 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003232/0.7658, allocations: 125.1 kB / 0.5217 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001143/0.7659, allocations: 55.97 kB / 0.5218 GB, free: 14.92 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000856/0.7667, allocations: 0.703 MB / 0.5225 GB, free: 14.2 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7667, allocations: 0 / 0.5225 GB, free: 14.2 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003758/0.7705, allocations: 0.9407 MB / 0.5234 GB, free: 13.26 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (solution.temperature,HCO3.logn,H.logn,CO2_liquid.logn,liquidWater.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 (144): * Single equations (assignments): 141 * 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 {(2,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.00261/0.7731, allocations: 1.079 MB / 0.5245 GB, free: 12.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005176/0.7783, allocations: 2.164 MB / 0.5266 GB, free: 9.969 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.7783, allocations: 0 / 0.5266 GB, free: 9.969 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001924/0.7803, allocations: 1.14 MB / 0.5277 GB, free: 8.781 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001596/0.7819, allocations: 256.6 kB / 0.5279 GB, free: 8.535 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004992/0.7869, allocations: 3.307 MB / 0.5312 GB, free: 5.199 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007169/0.7876, allocations: 1.191 MB / 0.5323 GB, free: 3.973 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001433/0.7891, allocations: 334.7 kB / 0.5326 GB, free: 3.648 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004651/0.7895, allocations: 207.3 kB / 0.5328 GB, free: 3.445 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.7895, allocations: 4 kB / 0.5328 GB, free: 3.441 MB / 398.1 MB Notification: Performance of Templates: time 0.06012/0.8497, allocations: 33.6 MB / 0.5657 GB, free: 1.953 MB / 430.1 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.makefile Failed to read output from testmodel.py, exit status != 0: 0.8512868788093328 0.881137926 0.251296139 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