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.001866/0.001866, allocations: 118.6 kB / 17.16 MB, free: 5.914 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.002217/0.002217, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.463/1.463, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.1353/0.1353, allocations: 23.86 MB / 333.4 MB, free: 1.207 MB / 254.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.001963/0.001963, allocations: 64.69 kB / 466.7 MB, free: 30.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0911/0.09306, allocations: 59.83 MB / 0.5142 GB, free: 12.95 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.04414/0.1372, allocations: 30.72 MB / 0.5442 GB, free: 14.25 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03148/0.1687, allocations: 25.02 MB / 0.5686 GB, free: 5.141 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001367/0.17, allocations: 35.75 kB / 0.5686 GB, free: 5.105 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001744/0.1718, allocations: 0.6087 MB / 0.5692 GB, free: 4.492 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005104/0.1769, allocations: 1.874 MB / 0.5711 GB, free: 2.605 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008689/0.1856, allocations: 3.441 MB / 0.5744 GB, free: 15.14 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003863/0.1894, allocations: 2.699 MB / 0.5771 GB, free: 12.43 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002006/0.1915, allocations: 1.469 MB / 0.5785 GB, free: 10.91 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001681/0.1931, allocations: 1.274 MB / 0.5797 GB, free: 9.633 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002173/0.1953, allocations: 1.448 MB / 0.5812 GB, free: 8.18 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005271/0.1958, allocations: 264 kB / 0.5814 GB, free: 7.922 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007652/0.2035, allocations: 2.73 MB / 0.5841 GB, free: 5.188 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008317/0.2043, allocations: 0.6037 MB / 0.5847 GB, free: 4.582 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001619/0.2059, allocations: 1.272 MB / 0.5859 GB, free: 3.305 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2214/0.4273, allocations: 5.704 MB / 0.5915 GB, free: 34.8 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.4273, allocations: 3.562 kB / 0.5915 GB, free: 34.8 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4273, allocations: 0 / 0.5915 GB, free: 34.8 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001057/0.4274, allocations: 1.688 kB / 0.5915 GB, free: 34.8 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.00653/0.434, allocations: 3.039 MB / 0.5944 GB, free: 33.41 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.434, allocations: 9.844 kB / 0.5945 GB, free: 33.41 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.382e-05/0.4341, allocations: 56.88 kB / 0.5945 GB, free: 33.4 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00044/0.4345, allocations: 303.5 kB / 0.5948 GB, free: 33.35 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002307/0.4368, allocations: 0.5113 MB / 0.5953 GB, free: 33.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002504/0.4393, allocations: 1.291 MB / 0.5966 GB, free: 32.82 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001898/0.4395, allocations: 219 kB / 0.5968 GB, free: 32.75 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000458/0.44, allocations: 224.4 kB / 0.597 GB, free: 32.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004869/0.4449, allocations: 2.702 MB / 0.5996 GB, free: 32.46 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.577e-05/0.4449, allocations: 7.797 kB / 0.5996 GB, free: 32.46 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002596/0.4452, allocations: 89.97 kB / 0.5997 GB, free: 32.46 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.875e-05/0.4452, allocations: 53.53 kB / 0.5998 GB, free: 32.46 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005239/0.4505, allocations: 3.158 MB / 0.6029 GB, free: 32.45 MB / 446.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.01396/0.4644, allocations: 9.329 MB / 0.612 GB, free: 28.63 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002292/0.4667, allocations: 1.758 MB / 0.6137 GB, free: 27.62 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00113/0.4678, allocations: 0.8275 MB / 0.6145 GB, free: 27.26 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008932/0.4768, allocations: 7.506 MB / 0.6218 GB, free: 21.59 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.4768, allocations: 49.2 kB / 0.6219 GB, free: 21.54 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001094/0.4779, allocations: 233.7 kB / 0.6221 GB, free: 21.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=113): time 3.988e-06/0.4779, allocations: 2.656 kB / 0.6221 GB, free: 21.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=161): time 0.03319/0.5111, allocations: 9.546 MB / 0.6314 GB, free: 16.39 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/0.5111, allocations: 124.2 kB / 0.6315 GB, free: 16.26 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001306/0.5124, allocations: 1.345 MB / 0.6328 GB, free: 15.49 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002059/0.5126, allocations: 53.05 kB / 0.6329 GB, free: 15.44 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003996/0.513, allocations: 1.078 MB / 0.6339 GB, free: 14.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003859/0.5134, allocations: 0.5945 MB / 0.6345 GB, free: 13.97 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005807/0.514, allocations: 474.6 kB / 0.635 GB, free: 13.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.11e-05/0.514, allocations: 307.7 kB / 0.6353 GB, free: 13.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/0.5152, allocations: 0.8442 MB / 0.6361 GB, free: 12.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001473/0.5167, allocations: 1.71 MB / 0.6378 GB, free: 10.55 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002807/0.5195, allocations: 2.699 MB / 0.6404 GB, free: 7.637 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.251e-05/0.5195, allocations: 8 kB / 0.6404 GB, free: 7.629 MB / 446.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.00782/0.5273, allocations: 3.468 MB / 0.6438 GB, free: 4.348 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.428e-05/0.5274, allocations: 16 kB / 0.6438 GB, free: 4.332 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.809e-05/0.5274, allocations: 39.56 kB / 0.6438 GB, free: 4.297 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005046/0.5324, allocations: 1.153 MB / 0.645 GB, free: 3.156 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001873/0.5343, allocations: 0.5179 MB / 0.6455 GB, free: 2.684 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01017/0.5445, allocations: 7.611 MB / 0.6529 GB, free: 10.72 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002102/0.5466, allocations: 106.5 kB / 0.653 GB, free: 10.62 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003005/0.5469, allocations: 142.6 kB / 0.6532 GB, free: 10.48 MB / 462.1 MB 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.0009395/0.5478, allocations: 457.6 kB / 0.6536 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004308/0.5482, allocations: 172.3 kB / 0.6538 GB, free: 9.902 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008384/0.5566, allocations: 2.84 MB / 0.6565 GB, free: 7.141 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.131e-05/0.5567, allocations: 20 kB / 0.6565 GB, free: 7.121 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.5567, allocations: 0 / 0.6565 GB, free: 7.121 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.726e-05/0.5567, allocations: 11.97 kB / 0.6566 GB, free: 7.109 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01224/0.5689, allocations: 4.854 MB / 0.6613 GB, free: 2.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.201e-05/0.5689, allocations: 6.656 kB / 0.6613 GB, free: 2.246 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001213/0.5701, allocations: 258.7 kB / 0.6616 GB, free: 2.008 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005054/0.5752, allocations: 1.041 MB / 0.6626 GB, free: 0.9805 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002145/0.5754, allocations: 62.64 kB / 0.6626 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009215/0.5846, allocations: 6.917 MB / 0.6694 GB, free: 9.621 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.289e-06/0.5846, allocations: 6.656 kB / 0.6694 GB, free: 9.617 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00919/0.5938, allocations: 3.665 MB / 0.673 GB, free: 5.938 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005195/0.5943, allocations: 220 kB / 0.6732 GB, free: 5.703 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002903/0.5946, allocations: 39.98 kB / 0.6732 GB, free: 5.664 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/0.5957, allocations: 35.98 kB / 0.6732 GB, free: 5.629 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003753/0.5961, allocations: 147.7 kB / 0.6734 GB, free: 5.484 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001763/0.5963, allocations: 79.8 kB / 0.6735 GB, free: 5.41 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001213/0.5975, allocations: 0.8764 MB / 0.6743 GB, free: 4.531 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5975, allocations: 2.078 kB / 0.6743 GB, free: 4.531 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003753/0.6012, allocations: 1.117 MB / 0.6754 GB, free: 3.414 MB / 478.1 MB 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.01169/0.6129, allocations: 5.269 MB / 0.6806 GB, free: 14.34 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005622/0.6185, allocations: 2.658 MB / 0.6832 GB, free: 11.73 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.189e-06/0.6185, allocations: 0 / 0.6832 GB, free: 11.73 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002754/0.6213, allocations: 1.386 MB / 0.6845 GB, free: 10.32 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001855/0.6231, allocations: 287.3 kB / 0.6848 GB, free: 10.07 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03469/0.6578, allocations: 17.18 MB / 0.7016 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001176/0.659, allocations: 1.396 MB / 0.7029 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001368/0.6604, allocations: 398.2 kB / 0.7033 GB, free: 6.426 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001297/0.6617, allocations: 0.8745 MB / 0.7042 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of SimCode: time 1.082e-06/0.6617, allocations: 0 / 0.7042 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1105/0.7722, allocations: 57.83 MB / 0.7606 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 32.85/33.62, allocations: 12.06 kB / 0.7606 GB, free: 12.3 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: 36.65096604201244] Failed to read output from testmodel.py, exit status != 0: 33.81374514900381 33.830490088 33.399821058 Calling exit ...