Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.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.00125/0.00125, 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.001444/0.001444, allocations: 219.3 kB / 22.24 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.406/1.406, allocations: 230.6 MB / 256 MB, free: 7.797 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.1392/0.1392, allocations: 23.93 MB / 336.4 MB, free: 10.91 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.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",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.00201/0.00201, allocations: 63.91 kB / 471.2 MB, free: 7.453 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3065, allocations: 59.87 MB / 0.5186 GB, free: 9.516 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.H2O_ElectrochemicalCell): time 0.07089/0.3774, allocations: 28.13 MB / 0.5461 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02516/0.4025, allocations: 17.14 MB / 0.5628 GB, free: 11.97 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001565/0.4041, allocations: 27.81 kB / 0.5628 GB, free: 11.94 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001434/0.4055, allocations: 466.9 kB / 0.5633 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004118/0.4096, allocations: 1.2 MB / 0.5644 GB, free: 10.58 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007874/0.4175, allocations: 2.896 MB / 0.5673 GB, free: 7.957 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00366/0.4212, allocations: 2.094 MB / 0.5693 GB, free: 5.852 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001754/0.4229, allocations: 1.084 MB / 0.5704 GB, free: 4.719 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001919/0.4248, allocations: 0.9271 MB / 0.5713 GB, free: 3.789 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003201/0.428, allocations: 1.078 MB / 0.5723 GB, free: 2.707 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001075/0.4291, allocations: 200 kB / 0.5725 GB, free: 2.512 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006508/0.4356, allocations: 2.001 MB / 0.5745 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005942/0.4362, allocations: 466.6 kB / 0.5749 GB, free: 52 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001061/0.4373, allocations: 0.8327 MB / 0.5757 GB, free: 15.21 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008054/0.4453, allocations: 4.354 MB / 0.58 GB, free: 10.84 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.4453, allocations: 0 / 0.58 GB, free: 10.84 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.4453, allocations: 0 / 0.58 GB, free: 10.84 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.365e-05/0.4454, allocations: 0 / 0.58 GB, free: 10.84 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.004647/0.45, allocations: 2.327 MB / 0.5823 GB, free: 8.473 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.4501, allocations: 12.03 kB / 0.5823 GB, free: 8.461 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002937/0.4504, allocations: 236.8 kB / 0.5825 GB, free: 8.219 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001703/0.4521, allocations: 450.8 kB / 0.5829 GB, free: 7.777 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001996/0.4541, allocations: 1.011 MB / 0.5839 GB, free: 6.734 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002121/0.4543, allocations: 242.2 kB / 0.5842 GB, free: 6.473 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002946/0.4546, allocations: 164 kB / 0.5843 GB, free: 6.312 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003568/0.4581, allocations: 2.241 MB / 0.5865 GB, free: 4.004 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.521e-05/0.4582, allocations: 0 / 0.5865 GB, free: 4.004 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001738/0.4584, allocations: 68 kB / 0.5866 GB, free: 3.938 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-05/0.4584, allocations: 40 kB / 0.5866 GB, free: 3.898 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004257/0.4626, allocations: 2.692 MB / 0.5892 GB, free: 1.199 MB / 430.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.01112/0.4738, allocations: 6.337 MB / 0.5954 GB, free: 10.71 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001758/0.4755, allocations: 0.9677 MB / 0.5964 GB, free: 9.715 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000865/0.4764, allocations: 0.5174 MB / 0.5969 GB, free: 9.184 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007293/0.4837, allocations: 2.994 MB / 0.5998 GB, free: 6.168 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.4837, allocations: 39.22 kB / 0.5998 GB, free: 6.121 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005008/0.4842, allocations: 119 kB / 0.5999 GB, free: 6.004 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.755e-06/0.4842, allocations: 0 / 0.5999 GB, free: 6.004 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.02015/0.5044, allocations: 4.566 MB / 0.6044 GB, free: 1.379 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.91e-05/0.5044, allocations: 111.8 kB / 0.6045 GB, free: 1.242 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001925/0.5064, allocations: 1.548 MB / 0.606 GB, free: 15.68 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.424e-05/0.5065, allocations: 41.7 kB / 0.6061 GB, free: 15.63 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007151/0.5072, allocations: 0.92 MB / 0.607 GB, free: 14.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003355/0.5075, allocations: 365.1 kB / 0.6073 GB, free: 14.34 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005585/0.5081, allocations: 367.3 kB / 0.6077 GB, free: 13.97 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.5082, allocations: 301.1 kB / 0.6079 GB, free: 13.67 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/0.5092, allocations: 0.6325 MB / 0.6086 GB, free: 13.04 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001753/0.511, allocations: 1.341 MB / 0.6099 GB, free: 11.37 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002702/0.5137, allocations: 1.929 MB / 0.6118 GB, free: 9.109 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-05/0.5137, allocations: 8 kB / 0.6118 GB, free: 9.102 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005984/0.5197, allocations: 2.39 MB / 0.6141 GB, free: 6.688 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.513e-05/0.5197, allocations: 22.75 kB / 0.6141 GB, free: 6.668 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.091e-05/0.5198, allocations: 24 kB / 0.6141 GB, free: 6.645 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002809/0.5226, allocations: 375.2 kB / 0.6145 GB, free: 6.266 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002952/0.5255, allocations: 0.5656 MB / 0.615 GB, free: 5.699 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009302/0.5348, allocations: 7.457 MB / 0.6223 GB, free: 13.73 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/0.5363, allocations: 88.09 kB / 0.6224 GB, free: 13.64 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001875/0.5365, allocations: 99.98 kB / 0.6225 GB, free: 13.54 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (219): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,1), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0006747/0.5371, allocations: 379.8 kB / 0.6229 GB, free: 13.16 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003039/0.5374, allocations: 127.2 kB / 0.623 GB, free: 13.04 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005052/0.5425, allocations: 1.542 MB / 0.6245 GB, free: 11.47 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-05/0.5425, allocations: 12 kB / 0.6245 GB, free: 11.46 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.5425, allocations: 3.938 kB / 0.6245 GB, free: 11.46 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.648e-05/0.5425, allocations: 7.922 kB / 0.6245 GB, free: 11.45 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007493/0.55, allocations: 2.815 MB / 0.6273 GB, free: 8.488 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-05/0.55, allocations: 8 kB / 0.6273 GB, free: 8.48 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009369/0.551, allocations: 216.4 kB / 0.6275 GB, free: 8.27 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003003/0.554, allocations: 404.5 kB / 0.6279 GB, free: 7.855 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001225/0.5541, allocations: 43.98 kB / 0.6279 GB, free: 7.812 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008899/0.563, allocations: 7.264 MB / 0.635 GB, free: 32 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.688e-06/0.563, allocations: 11.94 kB / 0.635 GB, free: 20 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0054/0.5684, allocations: 2.157 MB / 0.6371 GB, free: 13.74 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003845/0.5688, allocations: 127.2 kB / 0.6372 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001824/0.569, allocations: 35.98 kB / 0.6373 GB, free: 13.58 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007458/0.5697, allocations: 28 kB / 0.6373 GB, free: 13.55 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002175/0.5699, allocations: 116.2 kB / 0.6374 GB, free: 13.44 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.266e-05/0.57, allocations: 47.98 kB / 0.6375 GB, free: 13.39 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001291/0.5713, allocations: 1.033 MB / 0.6385 GB, free: 12.36 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5713, allocations: 0 / 0.6385 GB, free: 12.36 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002732/0.5741, allocations: 0.8221 MB / 0.6393 GB, free: 11.53 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (101): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,1), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007479/0.5815, allocations: 3.522 MB / 0.6427 GB, free: 7.867 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003561/0.5851, allocations: 1.697 MB / 0.6444 GB, free: 6.148 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.694e-06/0.5851, allocations: 2 kB / 0.6444 GB, free: 6.148 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001442/0.5865, allocations: 0.9522 MB / 0.6453 GB, free: 5.145 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001502/0.588, allocations: 246.5 kB / 0.6455 GB, free: 4.906 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02344/0.6115, allocations: 13.46 MB / 0.6587 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007266/0.6122, allocations: 0.6371 MB / 0.6593 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001073/0.6133, allocations: 326.5 kB / 0.6596 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009104/0.6142, allocations: 0.6593 MB / 0.6603 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of SimCode: time 9.52e-07/0.6142, allocations: 0 / 0.6603 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09588/0.7101, allocations: 42.89 MB / 0.7021 GB, free: 10.16 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.96/14.67, allocations: 4 kB / 0.7022 GB, free: 10.15 MB / 0.545 GB " [Timeout remaining time 645] (rm -f Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell.fmu > Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.29828478701529] Failed to read output from testmodel.py, exit status != 0: 14.814383295975858 14.842347411 14.391671986 Calling exit ...