Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.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.WaterSelfIonization,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_WaterSelfIonization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.WaterSelfIonization,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_WaterSelfIonization",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.005289/0.005289, allocations: 101 kB / 15.73 MB, free: 6.047 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.001171/0.001171, allocations: 186.5 kB / 16.67 MB, free: 5.977 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2218/0.2218, allocations: 15.33 MB / 305.9 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 63.89 kB / 424.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2934, allocations: 53.61 MB / 478.3 MB, free: 25.69 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.00898/0.3025, allocations: 8.379 MB / 486.7 MB, free: 19.58 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02375/0.3263, allocations: 24.17 MB / 0.4989 GB, free: 15.88 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001661/0.328, allocations: 21.62 kB / 0.4989 GB, free: 15.87 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00183/0.3298, allocations: 0.5055 MB / 0.4994 GB, free: 15.46 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009025/0.3389, allocations: 2.163 MB / 0.5015 GB, free: 13.8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009824/0.3488, allocations: 3.037 MB / 0.5045 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004607/0.3534, allocations: 2.433 MB / 0.5069 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001781/0.3552, allocations: 1.399 MB / 0.5082 GB, free: 8.328 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00166/0.3569, allocations: 1.212 MB / 0.5094 GB, free: 7.113 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001935/0.3588, allocations: 1.359 MB / 0.5107 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003519/0.3592, allocations: 216 kB / 0.511 GB, free: 5.535 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01137/0.3706, allocations: 2.649 MB / 0.5135 GB, free: 2.883 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001155/0.3718, allocations: 0.518 MB / 0.514 GB, free: 2.363 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001997/0.3738, allocations: 1.07 MB / 0.5151 GB, free: 1.289 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01356/0.3874, allocations: 5.076 MB / 0.52 GB, free: 12.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.3874, allocations: 0 / 0.52 GB, free: 12.2 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3875, allocations: 0 / 0.52 GB, free: 12.2 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.305e-05/0.3875, allocations: 4 kB / 0.5201 GB, free: 12.19 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 446 * Number of variables: 446 Notification: Performance of Generate backend data structure: time 0.005297/0.3928, allocations: 2.654 MB / 0.5226 GB, free: 9.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/0.3929, allocations: 12.03 kB / 0.5227 GB, free: 9.469 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002703/0.3931, allocations: 249.4 kB / 0.5229 GB, free: 9.215 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001849/0.395, allocations: 422 kB / 0.5233 GB, free: 8.801 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001576/0.3966, allocations: 0.9591 MB / 0.5242 GB, free: 7.797 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001624/0.3968, allocations: 191.5 kB / 0.5244 GB, free: 7.598 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002695/0.397, allocations: 180.3 kB / 0.5246 GB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003241/0.4003, allocations: 2.092 MB / 0.5266 GB, free: 5.297 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.536e-05/0.4003, allocations: 0 / 0.5266 GB, free: 5.297 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001821/0.4005, allocations: 72 kB / 0.5267 GB, free: 5.227 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.375e-05/0.4006, allocations: 40 kB / 0.5267 GB, free: 5.188 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004219/0.4048, allocations: 2.612 MB / 0.5293 GB, free: 2.574 MB / 398.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.01092/0.4157, allocations: 6.615 MB / 0.5357 GB, free: 11.67 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00471/0.4205, allocations: 3.139 MB / 0.5388 GB, free: 8.422 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001515/0.422, allocations: 0.9173 MB / 0.5397 GB, free: 7.496 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01307/0.4351, allocations: 8.147 MB / 0.5477 GB, free: 14.42 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.486e-05/0.4352, allocations: 51.81 kB / 0.5477 GB, free: 14.36 MB / 430.1 MB Notification: Performance of pre-optimization done (n=144): time 5.47e-06/0.4352, allocations: 0 / 0.5477 GB, free: 14.36 MB / 430.1 MB Notification: Performance of matching and sorting (n=180): time 0.03084/0.4661, allocations: 6.993 MB / 0.5545 GB, free: 7.219 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/0.4662, allocations: 99.11 kB / 0.5546 GB, free: 7.102 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001037/0.4673, allocations: 0.7806 MB / 0.5554 GB, free: 6.297 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001745/0.4675, allocations: 57.7 kB / 0.5555 GB, free: 6.234 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005895/0.4681, allocations: 0.7444 MB / 0.5562 GB, free: 5.477 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007242/0.4688, allocations: 0.6084 MB / 0.5568 GB, free: 4.859 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005686/0.4694, allocations: 363.3 kB / 0.5571 GB, free: 4.496 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.4695, allocations: 305.1 kB / 0.5574 GB, free: 4.195 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.4706, allocations: 0.6092 MB / 0.558 GB, free: 3.582 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00156/0.4722, allocations: 1.141 MB / 0.5591 GB, free: 2.215 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002795/0.475, allocations: 1.913 MB / 0.561 GB, free: 92 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.014e-05/0.475, allocations: 8 kB / 0.561 GB, free: 84 kB / 430.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007457/0.4825, allocations: 2.467 MB / 0.5634 GB, free: 13.59 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.901e-05/0.4826, allocations: 12 kB / 0.5634 GB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.674e-05/0.4826, allocations: 16 kB / 0.5634 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003805/0.4864, allocations: 475.4 kB / 0.5639 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002444/0.4889, allocations: 0.5149 MB / 0.5644 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01171/0.5006, allocations: 7.684 MB / 0.5719 GB, free: 4.348 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001894/0.5026, allocations: 68.05 kB / 0.572 GB, free: 4.281 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002311/0.5028, allocations: 104 kB / 0.5721 GB, free: 4.18 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (246): * Single equations (assignments): 242 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008306/0.5036, allocations: 369.1 kB / 0.5724 GB, free: 3.809 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003821/0.504, allocations: 138.3 kB / 0.5725 GB, free: 3.672 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007886/0.5119, allocations: 2.445 MB / 0.5749 GB, free: 1.199 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-05/0.512, allocations: 16 kB / 0.5749 GB, free: 1.184 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.787e-05/0.512, allocations: 8 kB / 0.575 GB, free: 1.176 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.408e-05/0.5121, allocations: 7.969 kB / 0.575 GB, free: 1.168 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01028/0.5224, allocations: 4.074 MB / 0.5789 GB, free: 13.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.5224, allocations: 0 / 0.5789 GB, free: 13.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001905/0.5243, allocations: 387.5 kB / 0.5793 GB, free: 12.64 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003726/0.5281, allocations: 466.8 kB / 0.5798 GB, free: 12.18 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001507/0.5282, allocations: 51.98 kB / 0.5798 GB, free: 12.12 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009732/0.538, allocations: 7.524 MB / 0.5872 GB, free: 4.043 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.538, allocations: 0 / 0.5872 GB, free: 4.043 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008399/0.5464, allocations: 3.135 MB / 0.5902 GB, free: 0.8789 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004485/0.5469, allocations: 187.4 kB / 0.5904 GB, free: 0.6758 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/0.5471, allocations: 51.86 kB / 0.5904 GB, free: 0.625 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008619/0.548, allocations: 32 kB / 0.5905 GB, free: 0.5938 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003294/0.5483, allocations: 137.8 kB / 0.5906 GB, free: 472 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001344/0.5485, allocations: 67.92 kB / 0.5907 GB, free: 404 kB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007324/0.5492, allocations: 0.504 MB / 0.5912 GB, free: 15.88 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5492, allocations: 0 / 0.5912 GB, free: 15.88 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003159/0.5524, allocations: 1.062 MB / 0.5922 GB, free: 14.82 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (solution.temperature,H3O.logn,OH.logn,H2O.logn,solution1.temperature,H_.logn,OH_.logn,H2O_.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 (178): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01087/0.5632, allocations: 4.74 MB / 0.5968 GB, free: 10.03 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004255/0.5675, allocations: 2.253 MB / 0.599 GB, free: 7.73 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.5676, allocations: 4 kB / 0.599 GB, free: 7.727 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002182/0.5698, allocations: 1.388 MB / 0.6004 GB, free: 6.289 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001584/0.5714, allocations: 303.2 kB / 0.6007 GB, free: 5.996 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2561/0.8275, allocations: 13.06 MB / 0.6134 GB, free: 117.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001507/0.829, allocations: 1.281 MB / 0.6147 GB, free: 117.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001653/0.8307, allocations: 345.7 kB / 0.615 GB, free: 117.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001117/0.8318, allocations: 0.7716 MB / 0.6158 GB, free: 116.7 MB / 478.1 MB Notification: Performance of SimCode: time 2.775e-06/0.8319, allocations: 0 / 0.6158 GB, free: 116.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1161/0.9479, allocations: 50.57 MB / 0.6651 GB, free: 80.46 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.35/22.29, allocations: 11.92 kB / 0.6652 GB, free: 80.45 MB / 478.1 MB (rm -f Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_AcidBase_WaterSelfIonization_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_AcidBase_WaterSelfIonization.fmu > Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe 2>&1)