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.001354/0.001354, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001475/0.001475, allocations: 216.5 kB / 22.25 MB, free: 5.113 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.435/1.435, allocations: 230.6 MB / 256 MB, free: 8.02 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.1371/0.1371, allocations: 23.85 MB / 336.3 MB, free: 11.3 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="me",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.002031/0.002031, allocations: 63.91 kB / 471.2 MB, free: 7.707 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3101/0.3122, allocations: 59.85 MB / 0.5186 GB, free: 9.566 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.04277/0.3549, allocations: 30.96 MB / 0.5488 GB, free: 9.168 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03385/0.3888, allocations: 25.06 MB / 0.5733 GB, free: 2.086 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001984/0.3908, allocations: 35.75 kB / 0.5733 GB, free: 2.051 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002099/0.3929, allocations: 0.6026 MB / 0.5739 GB, free: 1.48 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005982/0.3989, allocations: 1.905 MB / 0.5758 GB, free: 15.56 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01025/0.4091, allocations: 3.472 MB / 0.5792 GB, free: 12.07 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004578/0.4137, allocations: 2.707 MB / 0.5818 GB, free: 9.348 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00232/0.416, allocations: 1.422 MB / 0.5832 GB, free: 7.879 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001977/0.418, allocations: 1.282 MB / 0.5845 GB, free: 6.594 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002413/0.4204, allocations: 1.44 MB / 0.5859 GB, free: 5.148 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006668/0.4211, allocations: 260 kB / 0.5861 GB, free: 4.895 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007789/0.4289, allocations: 2.738 MB / 0.5888 GB, free: 2.152 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008988/0.4298, allocations: 0.6076 MB / 0.5894 GB, free: 1.543 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002041/0.4318, allocations: 1.272 MB / 0.5906 GB, free: 272 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01232/0.4441, allocations: 5.716 MB / 0.5962 GB, free: 10.53 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.4441, allocations: 0 / 0.5962 GB, free: 10.53 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4441, allocations: 0 / 0.5962 GB, free: 10.53 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000126/0.4442, allocations: 4 kB / 0.5962 GB, free: 10.52 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.006717/0.451, allocations: 2.956 MB / 0.5991 GB, free: 7.516 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.451, allocations: 12.03 kB / 0.5991 GB, free: 7.504 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004983/0.4515, allocations: 300.1 kB / 0.5994 GB, free: 7.199 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002191/0.4537, allocations: 0.5142 MB / 0.5999 GB, free: 6.684 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002557/0.4563, allocations: 1.223 MB / 0.6011 GB, free: 5.422 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000251/0.4565, allocations: 275.2 kB / 0.6013 GB, free: 5.125 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000434/0.4569, allocations: 220 kB / 0.6016 GB, free: 4.91 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004797/0.4617, allocations: 2.712 MB / 0.6042 GB, free: 2.086 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.394e-05/0.4618, allocations: 3.938 kB / 0.6042 GB, free: 2.082 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002186/0.462, allocations: 88 kB / 0.6043 GB, free: 1.996 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.289e-05/0.4621, allocations: 60 kB / 0.6043 GB, free: 1.938 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005345/0.4674, allocations: 3.187 MB / 0.6075 GB, free: 14.75 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.01634/0.4838, allocations: 9.228 MB / 0.6165 GB, free: 5.16 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002636/0.4864, allocations: 1.47 MB / 0.6179 GB, free: 3.672 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001393/0.4878, allocations: 0.8263 MB / 0.6187 GB, free: 2.836 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01009/0.4979, allocations: 4.603 MB / 0.6232 GB, free: 14.2 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/0.4979, allocations: 43.56 kB / 0.6233 GB, free: 14.15 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001061/0.499, allocations: 234.7 kB / 0.6235 GB, free: 13.92 MB / 478.1 MB Notification: Performance of pre-optimization done (n=113): time 5.49e-06/0.499, allocations: 0 / 0.6235 GB, free: 13.92 MB / 478.1 MB Notification: Performance of matching and sorting (n=161): time 0.03756/0.5365, allocations: 9.314 MB / 0.6326 GB, free: 4.547 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.5366, allocations: 124.1 kB / 0.6327 GB, free: 4.402 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002137/0.5388, allocations: 1.357 MB / 0.634 GB, free: 3.027 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003153/0.5391, allocations: 53.77 kB / 0.6341 GB, free: 2.969 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000899/0.54, allocations: 1.085 MB / 0.6351 GB, free: 1.871 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007431/0.5407, allocations: 0.5888 MB / 0.6357 GB, free: 1.277 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008729/0.5416, allocations: 480.6 kB / 0.6362 GB, free: 0.8008 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.5417, allocations: 305.1 kB / 0.6364 GB, free: 0.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001619/0.5434, allocations: 0.8481 MB / 0.6373 GB, free: 15.65 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002407/0.5458, allocations: 1.712 MB / 0.6389 GB, free: 13.53 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004255/0.55, allocations: 2.709 MB / 0.6416 GB, free: 10.42 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.267e-05/0.55, allocations: 8 kB / 0.6416 GB, free: 10.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.009834/0.5599, allocations: 3.48 MB / 0.645 GB, free: 6.91 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.14e-05/0.5599, allocations: 23.94 kB / 0.645 GB, free: 6.887 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.902e-05/0.56, allocations: 28 kB / 0.645 GB, free: 6.859 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005626/0.5656, allocations: 1.166 MB / 0.6462 GB, free: 5.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002009/0.5676, allocations: 0.5109 MB / 0.6467 GB, free: 5.168 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01118/0.5788, allocations: 7.317 MB / 0.6538 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00192/0.5807, allocations: 107.9 kB / 0.6539 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004122/0.5811, allocations: 140 kB / 0.6541 GB, free: 13.25 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.001023/0.5821, allocations: 453 kB / 0.6545 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005069/0.5827, allocations: 174.9 kB / 0.6547 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008557/0.5912, allocations: 2.835 MB / 0.6574 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.225e-05/0.5912, allocations: 16 kB / 0.6575 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.378e-05/0.5912, allocations: 7.938 kB / 0.6575 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.559e-05/0.5913, allocations: 11.97 kB / 0.6575 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01293/0.6042, allocations: 4.824 MB / 0.6622 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.246e-05/0.6042, allocations: 4 kB / 0.6622 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/0.6054, allocations: 259.7 kB / 0.6624 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005229/0.6106, allocations: 1.03 MB / 0.6634 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00026/0.6109, allocations: 63.95 kB / 0.6635 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009405/0.6203, allocations: 6.611 MB / 0.67 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/0.6203, allocations: 4 kB / 0.67 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00946/0.6298, allocations: 3.662 MB / 0.6735 GB, free: 8.746 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004287/0.6302, allocations: 147 kB / 0.6737 GB, free: 8.602 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003232/0.6305, allocations: 43.97 kB / 0.6737 GB, free: 8.559 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/0.6316, allocations: 43.92 kB / 0.6738 GB, free: 8.516 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003511/0.632, allocations: 153 kB / 0.6739 GB, free: 8.367 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001705/0.6321, allocations: 72.23 kB / 0.674 GB, free: 8.297 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001307/0.6334, allocations: 0.8882 MB / 0.6748 GB, free: 7.406 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6334, allocations: 4 kB / 0.6748 GB, free: 7.402 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003534/0.637, allocations: 1.118 MB / 0.6759 GB, free: 6.281 MB / 0.5137 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.01185/0.6488, allocations: 5.266 MB / 0.6811 GB, free: 0.9375 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005942/0.6548, allocations: 2.583 MB / 0.6836 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.705e-06/0.6548, allocations: 0 / 0.6836 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0029/0.6577, allocations: 1.315 MB / 0.6849 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001942/0.6596, allocations: 288.2 kB / 0.6852 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03643/0.696, allocations: 17.23 MB / 0.702 GB, free: 10.27 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00143/0.6975, allocations: 1.395 MB / 0.7034 GB, free: 8.836 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001507/0.699, allocations: 389.5 kB / 0.7037 GB, free: 8.465 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001341/0.7003, allocations: 0.878 MB / 0.7046 GB, free: 7.586 MB / 0.545 GB Notification: Performance of SimCode: time 1.082e-06/0.7003, allocations: 0 / 0.7046 GB, free: 7.586 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3355/1.036, allocations: 59.72 MB / 0.7629 GB, free: 164 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.35/34.39, allocations: 9.531 kB / 0.7629 GB, free: 164 MB / 0.5606 GB " [Timeout remaining time 625] (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.310114052845165] Failed to read output from testmodel.py, exit status != 0: 34.55487424694002 34.574782686 34.126854042 Calling exit ...