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.001328/0.001328, 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.001487/0.001487, allocations: 214.7 kB / 23.04 MB, free: 5.07 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.402/1.402, allocations: 230.6 MB / 256.8 MB, free: 8.012 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.137/0.137, allocations: 23.88 MB / 337.1 MB, free: 11.16 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_master_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.002073/0.002073, allocations: 63.91 kB / 472 MB, free: 7.641 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2922, allocations: 59.87 MB / 0.5194 GB, free: 9.531 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.0417/0.3339, allocations: 30.78 MB / 0.5495 GB, free: 9.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03376/0.3677, allocations: 25.05 MB / 0.5739 GB, free: 2.195 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001891/0.3696, allocations: 35.75 kB / 0.574 GB, free: 2.16 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002017/0.3716, allocations: 0.6133 MB / 0.5746 GB, free: 1.578 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006238/0.3778, allocations: 1.893 MB / 0.5764 GB, free: 15.67 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01005/0.3879, allocations: 3.472 MB / 0.5798 GB, free: 12.18 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004694/0.3926, allocations: 2.711 MB / 0.5824 GB, free: 9.453 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002494/0.3951, allocations: 1.43 MB / 0.5838 GB, free: 7.977 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002232/0.3973, allocations: 1.27 MB / 0.5851 GB, free: 6.703 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002683/0.4, allocations: 1.456 MB / 0.5865 GB, free: 5.242 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007738/0.4008, allocations: 260 kB / 0.5868 GB, free: 4.988 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00833/0.4091, allocations: 2.726 MB / 0.5894 GB, free: 2.258 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001005/0.4101, allocations: 0.6115 MB / 0.59 GB, free: 1.645 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001873/0.412, allocations: 1.268 MB / 0.5913 GB, free: 380 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01258/0.4246, allocations: 5.712 MB / 0.5968 GB, free: 10.64 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.746e-06/0.4246, allocations: 4 kB / 0.5968 GB, free: 10.63 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4246, allocations: 0 / 0.5968 GB, free: 10.63 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001067/0.4247, allocations: 0 / 0.5968 GB, free: 10.63 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.007162/0.4318, allocations: 2.952 MB / 0.5997 GB, free: 7.629 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.4319, allocations: 12.03 kB / 0.5997 GB, free: 7.617 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.016e-05/0.432, allocations: 64.45 kB / 0.5998 GB, free: 7.551 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005195/0.4325, allocations: 300.1 kB / 0.6001 GB, free: 7.246 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002434/0.4349, allocations: 0.522 MB / 0.6006 GB, free: 6.723 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002882/0.4378, allocations: 1.231 MB / 0.6018 GB, free: 5.453 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002805/0.4381, allocations: 271 kB / 0.602 GB, free: 5.16 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006094/0.4387, allocations: 223.9 kB / 0.6023 GB, free: 4.941 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005607/0.4443, allocations: 2.712 MB / 0.6049 GB, free: 2.117 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.968e-05/0.4443, allocations: 4 kB / 0.6049 GB, free: 2.113 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002652/0.4446, allocations: 88 kB / 0.605 GB, free: 2.027 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.907e-05/0.4447, allocations: 56 kB / 0.6051 GB, free: 1.973 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006086/0.4508, allocations: 3.187 MB / 0.6082 GB, free: 14.78 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.01744/0.4682, allocations: 9.221 MB / 0.6172 GB, free: 5.203 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002828/0.471, allocations: 1.466 MB / 0.6186 GB, free: 3.719 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001553/0.4726, allocations: 0.8331 MB / 0.6194 GB, free: 2.879 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01061/0.4832, allocations: 4.607 MB / 0.6239 GB, free: 14.24 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.375e-05/0.4832, allocations: 47.56 kB / 0.624 GB, free: 14.19 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001082/0.4843, allocations: 238.6 kB / 0.6242 GB, free: 13.95 MB / 478.1 MB Notification: Performance of pre-optimization done (n=113): time 5.36e-06/0.4843, allocations: 0 / 0.6242 GB, free: 13.95 MB / 478.1 MB Notification: Performance of matching and sorting (n=161): time 0.03629/0.5206, allocations: 9.306 MB / 0.6333 GB, free: 4.586 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.844e-05/0.5207, allocations: 120.1 kB / 0.6334 GB, free: 4.445 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001826/0.5225, allocations: 1.357 MB / 0.6347 GB, free: 3.07 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000252/0.5228, allocations: 53.7 kB / 0.6348 GB, free: 3.012 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008542/0.5236, allocations: 1.085 MB / 0.6358 GB, free: 1.914 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000672/0.5243, allocations: 0.5888 MB / 0.6364 GB, free: 1.32 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007917/0.5251, allocations: 472.6 kB / 0.6368 GB, free: 0.8516 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.5252, allocations: 309.1 kB / 0.6371 GB, free: 0.5469 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001563/0.5268, allocations: 0.8481 MB / 0.638 GB, free: 15.69 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002395/0.5292, allocations: 1.724 MB / 0.6397 GB, free: 13.56 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004249/0.5334, allocations: 2.697 MB / 0.6423 GB, free: 10.46 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.891e-05/0.5335, allocations: 12 kB / 0.6423 GB, free: 10.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.009414/0.5429, allocations: 3.484 MB / 0.6457 GB, free: 6.945 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.997e-05/0.5429, allocations: 20 kB / 0.6457 GB, free: 6.926 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.241e-05/0.543, allocations: 28 kB / 0.6457 GB, free: 6.898 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005462/0.5484, allocations: 1.159 MB / 0.6469 GB, free: 5.727 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001962/0.5504, allocations: 0.5187 MB / 0.6474 GB, free: 5.207 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01117/0.5615, allocations: 7.321 MB / 0.6545 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001912/0.5635, allocations: 103.9 kB / 0.6546 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004128/0.5639, allocations: 144 kB / 0.6548 GB, free: 13.28 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.001033/0.5649, allocations: 444.9 kB / 0.6552 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004887/0.5654, allocations: 174.8 kB / 0.6554 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00852/0.5739, allocations: 2.835 MB / 0.6581 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.579e-05/0.5739, allocations: 16 kB / 0.6581 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.711e-05/0.574, allocations: 4 kB / 0.6582 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.016e-05/0.574, allocations: 12 kB / 0.6582 GB, free: 9.789 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01322/0.5872, allocations: 4.836 MB / 0.6629 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.802e-05/0.5872, allocations: 4 kB / 0.6629 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001222/0.5885, allocations: 251.9 kB / 0.6631 GB, free: 4.598 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005063/0.5935, allocations: 1.042 MB / 0.6641 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002949/0.5938, allocations: 63.95 kB / 0.6642 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00956/0.6034, allocations: 6.607 MB / 0.6707 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.688e-06/0.6034, allocations: 11.97 kB / 0.6707 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009615/0.613, allocations: 3.654 MB / 0.6742 GB, free: 8.781 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004219/0.6134, allocations: 146.9 kB / 0.6744 GB, free: 8.637 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003953/0.6138, allocations: 35.94 kB / 0.6744 GB, free: 8.602 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.6149, allocations: 47.92 kB / 0.6745 GB, free: 8.555 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000402/0.6154, allocations: 153 kB / 0.6746 GB, free: 8.406 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001982/0.6155, allocations: 71.95 kB / 0.6747 GB, free: 8.336 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001349/0.6169, allocations: 0.8882 MB / 0.6755 GB, free: 7.445 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.31e-07/0.6169, allocations: 0 / 0.6755 GB, free: 7.445 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003711/0.6206, allocations: 1.114 MB / 0.6766 GB, free: 6.328 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.01175/0.6324, allocations: 5.266 MB / 0.6818 GB, free: 0.9844 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005595/0.638, allocations: 2.582 MB / 0.6843 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.638, allocations: 0 / 0.6843 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002729/0.6407, allocations: 1.32 MB / 0.6856 GB, free: 13 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001784/0.6425, allocations: 288.6 kB / 0.6859 GB, free: 12.72 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03566/0.6781, allocations: 17.23 MB / 0.7027 GB, free: 10.33 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001575/0.6797, allocations: 1.395 MB / 0.704 GB, free: 8.895 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001586/0.6813, allocations: 389.9 kB / 0.7044 GB, free: 8.523 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001421/0.6827, allocations: 0.8896 MB / 0.7053 GB, free: 7.633 MB / 0.545 GB Notification: Performance of SimCode: time 9.92e-07/0.6827, allocations: 0 / 0.7053 GB, free: 7.633 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3184/1.001, allocations: 59.74 MB / 0.7636 GB, free: 164.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 32.65/33.65, allocations: 13.25 kB / 0.7636 GB, free: 164 MB / 0.5606 GB " [Timeout remaining time 626] (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 sys.exit(0), Time elapsed: 36.57494977803435] Failed to read output from testmodel.py, exit status != 0: 33.860665582935326 33.879369559 33.450823829 Calling exit ...