Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001262/0.001262, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001581/0.001581, allocations: 219.5 kB / 22.25 MB, free: 5.102 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.375/1.375, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.133/0.133, allocations: 23.93 MB / 336.3 MB, free: 10.92 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_master_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.001997/0.001997, allocations: 67.84 kB / 471.2 MB, free: 7.445 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3051, allocations: 59.88 MB / 0.5186 GB, free: 9.492 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.07148/0.3766, allocations: 29.74 MB / 0.5477 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03039/0.407, allocations: 21.97 MB / 0.5691 GB, free: 6.094 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001905/0.4089, allocations: 31.75 kB / 0.5691 GB, free: 6.062 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001914/0.4108, allocations: 0.5514 MB / 0.5697 GB, free: 5.508 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005779/0.4166, allocations: 1.854 MB / 0.5715 GB, free: 3.641 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009683/0.4263, allocations: 3.464 MB / 0.5749 GB, free: 160 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004427/0.4307, allocations: 2.711 MB / 0.5775 GB, free: 13.43 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001985/0.4327, allocations: 1.442 MB / 0.5789 GB, free: 11.94 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001629/0.4343, allocations: 1.282 MB / 0.5802 GB, free: 10.66 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00212/0.4364, allocations: 1.448 MB / 0.5816 GB, free: 9.203 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003981/0.4368, allocations: 260 kB / 0.5818 GB, free: 8.949 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006787/0.4436, allocations: 2.625 MB / 0.5844 GB, free: 6.32 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009008/0.4445, allocations: 0.6076 MB / 0.585 GB, free: 5.711 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001506/0.446, allocations: 1.074 MB / 0.5861 GB, free: 4.633 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01123/0.4573, allocations: 5.696 MB / 0.5916 GB, free: 14.91 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.4573, allocations: 4 kB / 0.5916 GB, free: 14.91 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4573, allocations: 0 / 0.5916 GB, free: 14.91 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.81e-05/0.4573, allocations: 3.984 kB / 0.5916 GB, free: 14.91 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.006224/0.4635, allocations: 2.956 MB / 0.5945 GB, free: 11.9 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.4636, allocations: 8.031 kB / 0.5945 GB, free: 11.89 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003793/0.464, allocations: 304.1 kB / 0.5948 GB, free: 11.58 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002127/0.4661, allocations: 0.5103 MB / 0.5953 GB, free: 11.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00247/0.4686, allocations: 1.223 MB / 0.5965 GB, free: 9.809 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002445/0.4688, allocations: 279.2 kB / 0.5968 GB, free: 9.508 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003781/0.4692, allocations: 224 kB / 0.597 GB, free: 9.289 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004901/0.4741, allocations: 2.733 MB / 0.5996 GB, free: 6.438 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.609e-05/0.4741, allocations: 3.938 kB / 0.5997 GB, free: 6.434 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002306/0.4744, allocations: 88 kB / 0.5997 GB, free: 6.348 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.066e-05/0.4744, allocations: 52 kB / 0.5998 GB, free: 6.297 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004998/0.4794, allocations: 3.152 MB / 0.6029 GB, free: 3.141 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.01423/0.4937, allocations: 8.009 MB / 0.6107 GB, free: 10.94 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002463/0.4961, allocations: 1.455 MB / 0.6121 GB, free: 9.469 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001326/0.4974, allocations: 0.8263 MB / 0.6129 GB, free: 8.633 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01007/0.5075, allocations: 4.358 MB / 0.6172 GB, free: 4.242 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.755e-05/0.5076, allocations: 47.56 kB / 0.6172 GB, free: 4.188 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001127/0.5087, allocations: 230.7 kB / 0.6174 GB, free: 3.961 MB / 462.1 MB Notification: Performance of pre-optimization done (n=113): time 3.647e-06/0.5087, allocations: 0 / 0.6174 GB, free: 3.961 MB / 462.1 MB Notification: Performance of matching and sorting (n=161): time 0.03832/0.547, allocations: 9.314 MB / 0.6265 GB, free: 10.59 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.445e-05/0.5471, allocations: 124.1 kB / 0.6266 GB, free: 10.45 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001868/0.549, allocations: 1.403 MB / 0.628 GB, free: 9.023 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002026/0.5492, allocations: 57.7 kB / 0.6281 GB, free: 8.961 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008371/0.55, allocations: 1.088 MB / 0.6291 GB, free: 7.859 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005602/0.5506, allocations: 0.5849 MB / 0.6297 GB, free: 7.27 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007109/0.5513, allocations: 476.6 kB / 0.6302 GB, free: 6.797 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.5514, allocations: 305.1 kB / 0.6305 GB, free: 6.496 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001453/0.5529, allocations: 0.852 MB / 0.6313 GB, free: 5.641 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002226/0.5551, allocations: 1.712 MB / 0.633 GB, free: 3.523 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00387/0.559, allocations: 2.705 MB / 0.6356 GB, free: 428 kB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.055e-05/0.559, allocations: 11.94 kB / 0.6356 GB, free: 416 kB / 478.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.009206/0.5682, allocations: 3.476 MB / 0.639 GB, free: 12.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.969e-05/0.5682, allocations: 20.47 kB / 0.639 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-05/0.5683, allocations: 32 kB / 0.6391 GB, free: 12.85 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00585/0.5741, allocations: 1.177 MB / 0.6402 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001941/0.5761, allocations: 0.5109 MB / 0.6407 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/0.5869, allocations: 7.263 MB / 0.6478 GB, free: 3.523 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00209/0.589, allocations: 99.84 kB / 0.6479 GB, free: 3.426 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003415/0.5893, allocations: 144 kB / 0.648 GB, free: 3.285 MB / 494.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.001048/0.5903, allocations: 452.9 kB / 0.6485 GB, free: 2.832 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004704/0.5908, allocations: 166.9 kB / 0.6486 GB, free: 2.668 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008332/0.5991, allocations: 2.834 MB / 0.6514 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-05/0.5992, allocations: 20 kB / 0.6514 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.5992, allocations: 0 / 0.6514 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.072e-05/0.5992, allocations: 11.97 kB / 0.6514 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01212/0.6113, allocations: 4.575 MB / 0.6559 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.208e-05/0.6113, allocations: 4 kB / 0.6559 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/0.6125, allocations: 251.7 kB / 0.6561 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005286/0.6178, allocations: 1.041 MB / 0.6571 GB, free: 9.812 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000215/0.618, allocations: 63.95 kB / 0.6572 GB, free: 9.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00931/0.6273, allocations: 6.569 MB / 0.6636 GB, free: 2.816 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.6273, allocations: 4 kB / 0.6636 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009235/0.6366, allocations: 3.658 MB / 0.6672 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004669/0.637, allocations: 146.9 kB / 0.6673 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002577/0.6373, allocations: 35.92 kB / 0.6674 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.6383, allocations: 43.94 kB / 0.6674 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003715/0.6387, allocations: 157 kB / 0.6676 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001554/0.6389, allocations: 67.97 kB / 0.6676 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001188/0.64, allocations: 0.8921 MB / 0.6685 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.64, allocations: 0 / 0.6685 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003268/0.6433, allocations: 1.111 MB / 0.6696 GB, free: 12.64 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.01174/0.6551, allocations: 5.273 MB / 0.6747 GB, free: 7.297 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005409/0.6605, allocations: 2.579 MB / 0.6773 GB, free: 4.684 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.6605, allocations: 128 / 0.6773 GB, free: 4.684 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002603/0.6631, allocations: 1.319 MB / 0.6785 GB, free: 3.324 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001588/0.6647, allocations: 287.3 kB / 0.6788 GB, free: 3.043 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03426/0.6989, allocations: 17.23 MB / 0.6956 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009384/0.6999, allocations: 0.823 MB / 0.6964 GB, free: 15.78 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001418/0.7013, allocations: 393.5 kB / 0.6968 GB, free: 15.41 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001241/0.7025, allocations: 0.878 MB / 0.6977 GB, free: 14.53 MB / 0.545 GB Notification: Performance of SimCode: time 9.42e-07/0.7025, allocations: 0 / 0.6977 GB, free: 14.53 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.312/1.014, allocations: 59.48 MB / 0.7558 GB, free: 170.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.85/15.86, allocations: 3.266 kB / 0.7558 GB, free: 170.3 MB / 0.5606 GB " [Timeout remaining time 644] (rm -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction.fmu > Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.414275232993532] Failed to read output from testmodel.py, exit status != 0: 16.01084772500326 16.019575875 15.560166753 Calling exit ...