Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.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.00134/0.00134, allocations: 101.5 kB / 19.73 MB, free: 2.23 MB / 14.72 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.001458/0.001458, allocations: 208.8 kB / 23.04 MB, free: 5.074 MB / 14.72 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 1.477/1.477, allocations: 230.6 MB / 256.8 MB, free: 8.047 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1391/0.1391, allocations: 23.85 MB / 337.1 MB, free: 11.22 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 67.91 kB / 472 MB, free: 7.707 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.31/0.312, allocations: 59.85 MB / 0.5193 GB, free: 9.617 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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 2.0.0/Obsolete.mo:14337:7-14337: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.ClimateChange.ElectrochemicalAcetateProduction): time 0.04204/0.3541, allocations: 30.78 MB / 0.5494 GB, free: 9.352 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03207/0.3861, allocations: 25.06 MB / 0.5739 GB, free: 2.27 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00165/0.3878, allocations: 31.75 kB / 0.5739 GB, free: 2.238 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00173/0.3895, allocations: 0.6129 MB / 0.5745 GB, free: 1.66 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005659/0.3952, allocations: 1.897 MB / 0.5764 GB, free: 15.75 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009924/0.4051, allocations: 3.464 MB / 0.5798 GB, free: 12.26 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004508/0.4096, allocations: 2.711 MB / 0.5824 GB, free: 9.539 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002058/0.4117, allocations: 1.434 MB / 0.5838 GB, free: 8.059 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001925/0.4136, allocations: 1.278 MB / 0.585 GB, free: 6.777 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002293/0.4159, allocations: 1.44 MB / 0.5865 GB, free: 5.332 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004909/0.4164, allocations: 264 kB / 0.5867 GB, free: 5.074 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008087/0.4245, allocations: 2.726 MB / 0.5894 GB, free: 2.344 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008924/0.4254, allocations: 0.6075 MB / 0.59 GB, free: 1.734 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001688/0.427, allocations: 1.28 MB / 0.5912 GB, free: 460 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01202/0.4391, allocations: 5.712 MB / 0.5968 GB, free: 10.71 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.4391, allocations: 0 / 0.5968 GB, free: 10.71 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4391, allocations: 0 / 0.5968 GB, free: 10.71 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.08e-05/0.4391, allocations: 0 / 0.5968 GB, free: 10.71 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 548 * Number of variables: 548 Notification: Performance of Generate backend data structure: time 0.006102/0.4452, allocations: 2.952 MB / 0.5997 GB, free: 7.711 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.4453, allocations: 8.031 kB / 0.5997 GB, free: 7.703 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.086e-05/0.4453, allocations: 64.47 kB / 0.5997 GB, free: 7.637 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003806/0.4457, allocations: 308.1 kB / 0.6 GB, free: 7.324 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002111/0.4478, allocations: 0.5142 MB / 0.6005 GB, free: 6.809 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002392/0.4502, allocations: 1.231 MB / 0.6017 GB, free: 5.539 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002443/0.4504, allocations: 279 kB / 0.602 GB, free: 5.238 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003905/0.4508, allocations: 216 kB / 0.6022 GB, free: 5.027 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004652/0.4555, allocations: 2.716 MB / 0.6049 GB, free: 2.199 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.105e-05/0.4555, allocations: 0 / 0.6049 GB, free: 2.199 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002363/0.4558, allocations: 88 kB / 0.6049 GB, free: 2.113 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.705e-05/0.4558, allocations: 56 kB / 0.605 GB, free: 2.059 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005442/0.4613, allocations: 3.187 MB / 0.6081 GB, free: 14.87 MB / 462.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.01534/0.4766, allocations: 9.221 MB / 0.6171 GB, free: 5.289 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002617/0.4792, allocations: 1.47 MB / 0.6186 GB, free: 3.801 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00142/0.4806, allocations: 0.8263 MB / 0.6194 GB, free: 2.965 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01011/0.4908, allocations: 4.607 MB / 0.6239 GB, free: 14.33 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.07e-05/0.4908, allocations: 51.5 kB / 0.6239 GB, free: 14.27 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001045/0.4919, allocations: 234.7 kB / 0.6241 GB, free: 14.04 MB / 478.1 MB Notification: Performance of pre-optimization done (n=113): time 3.296e-06/0.4919, allocations: 0 / 0.6241 GB, free: 14.04 MB / 478.1 MB Notification: Performance of matching and sorting (n=161): time 0.03671/0.5286, allocations: 9.31 MB / 0.6332 GB, free: 4.668 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.935e-05/0.5287, allocations: 120.1 kB / 0.6333 GB, free: 4.527 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001819/0.5305, allocations: 1.357 MB / 0.6347 GB, free: 3.152 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002551/0.5307, allocations: 57.77 kB / 0.6347 GB, free: 3.09 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008443/0.5316, allocations: 1.088 MB / 0.6358 GB, free: 1.988 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006836/0.5323, allocations: 0.585 MB / 0.6364 GB, free: 1.398 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000773/0.533, allocations: 468.6 kB / 0.6368 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.5332, allocations: 309.1 kB / 0.6371 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001539/0.5347, allocations: 0.8481 MB / 0.6379 GB, free: 15.77 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002285/0.537, allocations: 1.72 MB / 0.6396 GB, free: 13.65 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004076/0.5411, allocations: 2.701 MB / 0.6422 GB, free: 10.55 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.965e-05/0.5411, allocations: 8 kB / 0.6422 GB, free: 10.54 MB / 494.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.009249/0.5503, allocations: 3.488 MB / 0.6457 GB, free: 7.027 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.834e-05/0.5504, allocations: 16 kB / 0.6457 GB, free: 7.012 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.974e-05/0.5504, allocations: 28 kB / 0.6457 GB, free: 6.984 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005636/0.556, allocations: 1.165 MB / 0.6468 GB, free: 5.805 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001991/0.558, allocations: 0.5186 MB / 0.6473 GB, free: 5.289 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01101/0.5691, allocations: 7.307 MB / 0.6545 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00185/0.5709, allocations: 107.9 kB / 0.6546 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003097/0.5712, allocations: 140 kB / 0.6547 GB, free: 13.37 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (270): * 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: 4 * 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): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,20), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009123/0.5721, allocations: 456.9 kB / 0.6551 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004214/0.5725, allocations: 166.9 kB / 0.6553 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00821/0.5808, allocations: 2.842 MB / 0.6581 GB, free: 9.902 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.127e-05/0.5808, allocations: 16.05 kB / 0.6581 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.336e-05/0.5808, allocations: 7.984 kB / 0.6581 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-05/0.5808, allocations: 7.969 kB / 0.6581 GB, free: 9.871 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01207/0.5929, allocations: 4.836 MB / 0.6628 GB, free: 4.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/0.5929, allocations: 3.984 kB / 0.6628 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.5941, allocations: 251.7 kB / 0.6631 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005008/0.5991, allocations: 1.046 MB / 0.6641 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002029/0.5993, allocations: 67.89 kB / 0.6642 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009103/0.6084, allocations: 6.602 MB / 0.6706 GB, free: 12.59 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.745e-06/0.6084, allocations: 7.938 kB / 0.6706 GB, free: 12.58 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009027/0.6174, allocations: 3.65 MB / 0.6742 GB, free: 8.867 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004733/0.6179, allocations: 146.9 kB / 0.6743 GB, free: 8.723 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003173/0.6182, allocations: 43.94 kB / 0.6744 GB, free: 8.68 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.6192, allocations: 39.92 kB / 0.6744 GB, free: 8.641 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004098/0.6197, allocations: 149 kB / 0.6745 GB, free: 8.496 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001804/0.6198, allocations: 71.95 kB / 0.6746 GB, free: 8.426 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.001236/0.6211, allocations: 0.8921 MB / 0.6755 GB, free: 7.531 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6211, allocations: 0 / 0.6755 GB, free: 7.531 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.003818/0.6249, allocations: 1.118 MB / 0.6766 GB, free: 6.41 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,AcAc.logn,CO2.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 (133): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,21), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0116/0.6365, allocations: 5.27 MB / 0.6817 GB, free: 1.062 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.005679/0.6422, allocations: 2.574 MB / 0.6842 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.6422, allocations: 5 kB / 0.6842 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002793/0.645, allocations: 1.322 MB / 0.6855 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001717/0.6467, allocations: 279.9 kB / 0.6858 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03439/0.6811, allocations: 17.23 MB / 0.7026 GB, free: 10.41 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001192/0.6823, allocations: 1.399 MB / 0.704 GB, free: 8.977 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00141/0.6837, allocations: 397.1 kB / 0.7044 GB, free: 8.602 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001257/0.6849, allocations: 0.8779 MB / 0.7052 GB, free: 7.723 MB / 0.545 GB Notification: Performance of SimCode: time 7.81e-07/0.6849, allocations: 3.938 kB / 0.7052 GB, free: 7.719 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3453/1.03, allocations: 59.74 MB / 0.7636 GB, free: 164 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.2/34.23, allocations: 5.812 kB / 0.7636 GB, free: 164 MB / 0.5606 GB " [Timeout remaining time 626] (rm -f Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction.fmu > Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 37.22803139989264] Failed to read output from testmodel.py, exit status != 0: 34.43862953200005 34.454863351 34.012642831 Calling exit ...