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.001648/0.001648, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001906/0.001906, allocations: 220.6 kB / 23.03 MB, free: 4.945 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.452/1.452, allocations: 230.6 MB / 256.8 MB, free: 7.785 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.1325/0.1325, allocations: 23.91 MB / 337.1 MB, free: 10.94 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.001949/0.001949, allocations: 71.89 kB / 471.9 MB, free: 7.469 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.2907, allocations: 59.86 MB / 0.5193 GB, free: 9.25 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.07259/0.3633, allocations: 29.48 MB / 0.5481 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02934/0.3926, allocations: 21.95 MB / 0.5696 GB, free: 6.246 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002869/0.3955, allocations: 31.75 kB / 0.5696 GB, free: 6.215 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002017/0.3975, allocations: 0.5525 MB / 0.5701 GB, free: 5.684 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00619/0.4037, allocations: 1.843 MB / 0.5719 GB, free: 3.828 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01005/0.4137, allocations: 3.488 MB / 0.5753 GB, free: 328 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00459/0.4183, allocations: 2.695 MB / 0.578 GB, free: 13.61 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002412/0.4207, allocations: 1.434 MB / 0.5794 GB, free: 12.13 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001836/0.4226, allocations: 1.274 MB / 0.5806 GB, free: 10.85 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002271/0.4248, allocations: 1.448 MB / 0.582 GB, free: 9.398 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000444/0.4253, allocations: 264 kB / 0.5823 GB, free: 9.141 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006501/0.4318, allocations: 2.633 MB / 0.5849 GB, free: 6.504 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007164/0.4325, allocations: 0.5998 MB / 0.5854 GB, free: 5.902 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001362/0.4339, allocations: 1.078 MB / 0.5865 GB, free: 4.82 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01115/0.445, allocations: 5.696 MB / 0.5921 GB, free: 15.1 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.445, allocations: 0 / 0.5921 GB, free: 15.1 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.445, allocations: 3.938 kB / 0.5921 GB, free: 15.1 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.887e-05/0.4451, allocations: 0 / 0.5921 GB, free: 15.1 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.006169/0.4513, allocations: 2.958 MB / 0.595 GB, free: 12.09 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.4513, allocations: 8.031 kB / 0.595 GB, free: 12.08 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.761e-05/0.4514, allocations: 56.48 kB / 0.595 GB, free: 12.02 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003666/0.4518, allocations: 300.1 kB / 0.5953 GB, free: 11.72 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002141/0.4539, allocations: 0.5142 MB / 0.5958 GB, free: 11.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002361/0.4563, allocations: 1.235 MB / 0.597 GB, free: 9.93 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002479/0.4565, allocations: 275 kB / 0.5973 GB, free: 9.633 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003948/0.4569, allocations: 219.9 kB / 0.5975 GB, free: 9.418 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004773/0.4617, allocations: 2.74 MB / 0.6002 GB, free: 6.562 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.352e-05/0.4617, allocations: 4 kB / 0.6002 GB, free: 6.559 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002316/0.462, allocations: 84 kB / 0.6002 GB, free: 6.477 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.557e-05/0.462, allocations: 60 kB / 0.6003 GB, free: 6.418 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005158/0.4672, allocations: 3.191 MB / 0.6034 GB, free: 3.223 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.01402/0.4812, allocations: 7.994 MB / 0.6112 GB, free: 11.04 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002475/0.4837, allocations: 1.451 MB / 0.6126 GB, free: 9.57 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001326/0.485, allocations: 0.8263 MB / 0.6134 GB, free: 8.734 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009528/0.4945, allocations: 4.362 MB / 0.6177 GB, free: 4.34 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.271e-05/0.4946, allocations: 51.48 kB / 0.6178 GB, free: 4.281 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001032/0.4956, allocations: 238.6 kB / 0.618 GB, free: 4.047 MB / 462.1 MB Notification: Performance of pre-optimization done (n=113): time 4.038e-06/0.4956, allocations: 4 kB / 0.618 GB, free: 4.043 MB / 462.1 MB Notification: Performance of matching and sorting (n=161): time 0.03713/0.5327, allocations: 9.306 MB / 0.6271 GB, free: 10.68 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.338e-05/0.5328, allocations: 120.1 kB / 0.6272 GB, free: 10.54 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001822/0.5346, allocations: 1.357 MB / 0.6285 GB, free: 9.164 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002539/0.5349, allocations: 49.7 kB / 0.6286 GB, free: 9.109 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008019/0.5357, allocations: 1.092 MB / 0.6296 GB, free: 8.004 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005718/0.5362, allocations: 0.5888 MB / 0.6302 GB, free: 7.41 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007234/0.537, allocations: 472.6 kB / 0.6306 GB, free: 6.941 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.5371, allocations: 309.1 kB / 0.6309 GB, free: 6.637 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001499/0.5386, allocations: 0.8519 MB / 0.6318 GB, free: 5.781 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002219/0.5408, allocations: 1.72 MB / 0.6335 GB, free: 3.656 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003854/0.5447, allocations: 2.697 MB / 0.6361 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-05/0.5447, allocations: 8 kB / 0.6361 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.009047/0.5537, allocations: 3.484 MB / 0.6395 GB, free: 13.04 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.671e-05/0.5538, allocations: 23.94 kB / 0.6395 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.182e-05/0.5538, allocations: 28 kB / 0.6395 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005545/0.5593, allocations: 1.158 MB / 0.6407 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001873/0.5612, allocations: 0.507 MB / 0.6412 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01049/0.5717, allocations: 7.279 MB / 0.6483 GB, free: 3.668 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00185/0.5736, allocations: 107.9 kB / 0.6484 GB, free: 3.562 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002669/0.5738, allocations: 140 kB / 0.6485 GB, free: 3.426 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.000881/0.5747, allocations: 452.9 kB / 0.649 GB, free: 2.973 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003834/0.5751, allocations: 162.9 kB / 0.6491 GB, free: 2.812 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008173/0.5833, allocations: 2.846 MB / 0.6519 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.648e-05/0.5833, allocations: 16 kB / 0.6519 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.647e-06/0.5833, allocations: 4 kB / 0.6519 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.895e-05/0.5833, allocations: 7.969 kB / 0.6519 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01147/0.5948, allocations: 4.563 MB / 0.6564 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/0.5948, allocations: 11.92 kB / 0.6564 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001147/0.5959, allocations: 259.9 kB / 0.6566 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005062/0.601, allocations: 1.034 MB / 0.6576 GB, free: 9.945 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001747/0.6012, allocations: 63.94 kB / 0.6577 GB, free: 9.883 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008712/0.6099, allocations: 6.56 MB / 0.6641 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.6099, allocations: 0 / 0.6641 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008983/0.6189, allocations: 3.666 MB / 0.6677 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004111/0.6193, allocations: 142.9 kB / 0.6678 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002495/0.6195, allocations: 36 kB / 0.6679 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/0.6206, allocations: 51.92 kB / 0.6679 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003555/0.6209, allocations: 149 kB / 0.668 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001655/0.6211, allocations: 71.95 kB / 0.6681 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001155/0.6222, allocations: 0.896 MB / 0.669 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.6222, allocations: 0 / 0.669 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003255/0.6255, allocations: 1.111 MB / 0.6701 GB, free: 12.78 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.01135/0.6368, allocations: 5.278 MB / 0.6752 GB, free: 7.426 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00533/0.6422, allocations: 2.569 MB / 0.6777 GB, free: 4.82 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/0.6422, allocations: 6 kB / 0.6777 GB, free: 4.816 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002564/0.6447, allocations: 1.315 MB / 0.679 GB, free: 3.461 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001619/0.6464, allocations: 280.7 kB / 0.6793 GB, free: 3.188 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03331/0.6797, allocations: 17.23 MB / 0.6961 GB, free: 0.7891 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009121/0.6806, allocations: 0.8231 MB / 0.6969 GB, free: 15.92 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00137/0.6819, allocations: 382.3 kB / 0.6973 GB, free: 15.55 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001211/0.6832, allocations: 0.8857 MB / 0.6982 GB, free: 14.67 MB / 0.545 GB Notification: Performance of SimCode: time 1.162e-06/0.6832, allocations: 0 / 0.6982 GB, free: 14.67 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3118/0.995, allocations: 59.14 MB / 0.7559 GB, free: 170.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 32.93/33.93, allocations: 12.53 kB / 0.7559 GB, free: 170.4 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 os._exit(0), Time elapsed: 36.683088641031645] Failed to read output from testmodel.py, exit status != 0: 34.13617689197417 34.15354605 33.705341049 Calling exit ...