Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005276/0.005276, allocations: 98.05 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 196.8 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1796/0.1796, allocations: 15.32 MB / 305.9 MB, free: 15.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001849/0.001849, allocations: 59.91 kB / 424.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2324, allocations: 53.61 MB / 478.3 MB, free: 25.51 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.ClimateChange.MethanElectrosynthesis): time 0.03259/0.265, allocations: 29.55 MB / 0.496 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02453/0.2896, allocations: 22.04 MB / 0.5175 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001467/0.2911, allocations: 23.88 kB / 0.5175 GB, free: 14.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001545/0.2927, allocations: 0.5738 MB / 0.5181 GB, free: 14.33 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003711/0.2964, allocations: 1.338 MB / 0.5194 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008084/0.3045, allocations: 3.281 MB / 0.5226 GB, free: 9.684 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003346/0.3078, allocations: 2.402 MB / 0.5249 GB, free: 7.273 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00188/0.3097, allocations: 1.578 MB / 0.5265 GB, free: 5.645 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001203/0.3109, allocations: 1.032 MB / 0.5275 GB, free: 4.609 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001548/0.3125, allocations: 1.21 MB / 0.5287 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003405/0.3129, allocations: 236 kB / 0.5289 GB, free: 3.164 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006524/0.3194, allocations: 2.34 MB / 0.5312 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000565/0.32, allocations: 0.5336 MB / 0.5317 GB, free: 292 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001243/0.3212, allocations: 1.136 MB / 0.5328 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00915/0.3304, allocations: 4.863 MB / 0.5375 GB, free: 10.26 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3304, allocations: 0 / 0.5375 GB, free: 10.26 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3304, allocations: 0 / 0.5375 GB, free: 10.26 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.762e-05/0.3305, allocations: 0 / 0.5375 GB, free: 10.26 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.005048/0.3355, allocations: 2.754 MB / 0.5402 GB, free: 7.445 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.3356, allocations: 16.03 kB / 0.5403 GB, free: 7.43 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003181/0.3359, allocations: 266.5 kB / 0.5405 GB, free: 7.16 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001933/0.3378, allocations: 0.5039 MB / 0.541 GB, free: 6.656 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001947/0.3398, allocations: 1.194 MB / 0.5422 GB, free: 5.418 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001938/0.34, allocations: 207.3 kB / 0.5424 GB, free: 5.203 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003541/0.3404, allocations: 188 kB / 0.5425 GB, free: 5.02 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00416/0.3445, allocations: 2.644 MB / 0.5451 GB, free: 2.312 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.778e-05/0.3446, allocations: 0 / 0.5451 GB, free: 2.312 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002045/0.3448, allocations: 76 kB / 0.5452 GB, free: 2.238 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.105e-05/0.3448, allocations: 48 kB / 0.5452 GB, free: 2.191 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004932/0.3498, allocations: 3.279 MB / 0.5484 GB, free: 14.91 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.01293/0.3627, allocations: 8.46 MB / 0.5567 GB, free: 6.156 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002035/0.3648, allocations: 1.318 MB / 0.558 GB, free: 4.781 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009974/0.3658, allocations: 0.6416 MB / 0.5586 GB, free: 4.129 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008574/0.3744, allocations: 5.532 MB / 0.564 GB, free: 14.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/0.3744, allocations: 51.08 kB / 0.5641 GB, free: 14.02 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008097/0.3753, allocations: 186.8 kB / 0.5642 GB, free: 13.83 MB / 446.1 MB Notification: Performance of pre-optimization done (n=81): time 2.715e-06/0.3753, allocations: 0 / 0.5642 GB, free: 13.83 MB / 446.1 MB Notification: Performance of matching and sorting (n=115): time 0.02775/0.403, allocations: 7.242 MB / 0.5713 GB, free: 6.465 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.273e-05/0.4031, allocations: 115.8 kB / 0.5714 GB, free: 6.328 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002258/0.4054, allocations: 1.853 MB / 0.5732 GB, free: 4.457 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001048/0.4055, allocations: 45.7 kB / 0.5733 GB, free: 4.406 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007776/0.4063, allocations: 1.041 MB / 0.5743 GB, free: 3.352 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003817/0.4067, allocations: 440.4 kB / 0.5747 GB, free: 2.918 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006336/0.4073, allocations: 411.4 kB / 0.5751 GB, free: 2.508 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.4075, allocations: 301.1 kB / 0.5754 GB, free: 2.211 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001391/0.4089, allocations: 0.8591 MB / 0.5762 GB, free: 1.348 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002022/0.4109, allocations: 1.593 MB / 0.5778 GB, free: 15.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003301/0.4142, allocations: 2.333 MB / 0.5801 GB, free: 12.73 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.918e-06/0.4142, allocations: 7.938 kB / 0.5801 GB, free: 12.73 MB / 462.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008308/0.4226, allocations: 3.312 MB / 0.5833 GB, free: 9.395 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.489e-05/0.4226, allocations: 22.06 kB / 0.5833 GB, free: 9.375 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.601e-05/0.4227, allocations: 24 kB / 0.5834 GB, free: 9.352 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004894/0.4276, allocations: 1.042 MB / 0.5844 GB, free: 8.293 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001547/0.4291, allocations: 431.3 kB / 0.5848 GB, free: 7.871 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01058/0.4397, allocations: 7.469 MB / 0.5921 GB, free: 15.96 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0016/0.4413, allocations: 95.84 kB / 0.5922 GB, free: 15.86 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002059/0.4416, allocations: 120 kB / 0.5923 GB, free: 15.75 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * 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 (226): * Single equations (assignments): 221 * 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 {(2,15), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000756/0.4423, allocations: 409 kB / 0.5927 GB, free: 15.34 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003294/0.4427, allocations: 151 kB / 0.5928 GB, free: 15.19 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006804/0.4495, allocations: 2.192 MB / 0.595 GB, free: 12.96 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.591e-05/0.4495, allocations: 15.94 kB / 0.595 GB, free: 12.95 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.4495, allocations: 4 kB / 0.595 GB, free: 12.94 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.32e-05/0.4495, allocations: 3.984 kB / 0.595 GB, free: 12.94 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009846/0.4594, allocations: 3.944 MB / 0.5988 GB, free: 8.902 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.4594, allocations: 4 kB / 0.5988 GB, free: 8.898 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007676/0.4602, allocations: 167.8 kB / 0.599 GB, free: 8.734 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004467/0.4647, allocations: 0.9248 MB / 0.5999 GB, free: 7.793 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001247/0.4648, allocations: 47.97 kB / 0.5999 GB, free: 7.746 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008867/0.4737, allocations: 6.78 MB / 0.6066 GB, free: 0.5273 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.4737, allocations: 3.938 kB / 0.6066 GB, free: 0.5234 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1952/0.669, allocations: 2.902 MB / 0.6094 GB, free: 114.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003928/0.6694, allocations: 215.1 kB / 0.6096 GB, free: 114.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002216/0.6696, allocations: 24.12 kB / 0.6096 GB, free: 114.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008822/0.6705, allocations: 43.27 kB / 0.6097 GB, free: 114.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003047/0.6708, allocations: 114.3 kB / 0.6098 GB, free: 114.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.671, allocations: 51.09 kB / 0.6098 GB, free: 114.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00149/0.6725, allocations: 1.298 MB / 0.6111 GB, free: 114.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6725, allocations: 2.656 kB / 0.6111 GB, free: 114.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002838/0.6753, allocations: 0.9732 MB / 0.6121 GB, free: 114.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (90): * Single equations (assignments): 85 * 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,17), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009266/0.6846, allocations: 4.354 MB / 0.6163 GB, free: 112.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004461/0.6891, allocations: 2.522 MB / 0.6188 GB, free: 111.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.6891, allocations: 1.281 kB / 0.6188 GB, free: 111.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001948/0.6911, allocations: 1.229 MB / 0.62 GB, free: 110.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001514/0.6926, allocations: 244.9 kB / 0.6202 GB, free: 110.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02702/0.7196, allocations: 16.49 MB / 0.6363 GB, free: 101.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007584/0.7204, allocations: 1.312 MB / 0.6376 GB, free: 101.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001128/0.7216, allocations: 331.4 kB / 0.6379 GB, free: 101.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007863/0.7224, allocations: 0.7603 MB / 0.6386 GB, free: 100.5 MB / 478.1 MB Notification: Performance of SimCode: time 8.42e-07/0.7224, allocations: 0 / 0.6386 GB, free: 100.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1488/0.8712, allocations: 50.3 MB / 0.6878 GB, free: 56.12 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.37/26.24, allocations: 3.953 kB / 0.6878 GB, free: 56.11 MB / 478.1 MB (rm -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis.fmu > Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1)