Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.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.001919/0.001919, allocations: 80.2 kB / 19.18 MB, free: 2.527 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.002114/0.002114, allocations: 173.7 kB / 22.46 MB, free: 5.355 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.462/1.462, allocations: 177.2 MB / 202.8 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1303/0.1303, allocations: 17.37 MB / 276.6 MB, free: 15.3 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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: translateModel(Chemical.Obsolete.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.WaterElectrolysis") translateModel(Chemical.Obsolete.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.WaterElectrolysis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 411.9 MB, free: 4.457 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.867e-05/3.028e-05, allocations: 6.281 kB / 412 MB, free: 4.449 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:12638:6-12638:65: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 2.0.0/Obsolete.mo:12638:6-12638:65: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.WaterElectrolysis): time 0.03972/0.03975, allocations: 29.08 MB / 441 MB, free: 7.488 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2229/0.2626, allocations: 15.79 MB / 456.8 MB, free: 31.33 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001653/0.2643, allocations: 30.31 kB / 456.8 MB, free: 31.33 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001354/0.2656, allocations: 447 kB / 457.3 MB, free: 31.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004262/0.2699, allocations: 1.352 MB / 458.6 MB, free: 30.66 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009318/0.2792, allocations: 2.652 MB / 461.3 MB, free: 29.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003988/0.2832, allocations: 2.367 MB / 463.7 MB, free: 28.36 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002044/0.2852, allocations: 1.196 MB / 464.8 MB, free: 27.76 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002265/0.2875, allocations: 1.524 MB / 466.4 MB, free: 27.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001583/0.2891, allocations: 0.8895 MB / 467.3 MB, free: 26.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003853/0.2895, allocations: 224.2 kB / 467.5 MB, free: 26.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006537/0.296, allocations: 1.738 MB / 469.2 MB, free: 26.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006755/0.2967, allocations: 0.5121 MB / 469.7 MB, free: 26.19 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001623/0.2983, allocations: 0.7832 MB / 470.5 MB, free: 25.85 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009808/0.3081, allocations: 4.535 MB / 475.1 MB, free: 23.17 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3081, allocations: 5.312 kB / 475.1 MB, free: 23.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3081, allocations: 0 / 475.1 MB, free: 23.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.148e-05/0.3082, allocations: 0 / 475.1 MB, free: 23.16 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 501 * Number of variables: 501 Notification: Performance of Generate backend data structure: time 0.004766/0.3129, allocations: 2.454 MB / 477.5 MB, free: 21.47 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.313, allocations: 9 kB / 477.5 MB, free: 21.47 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001686/0.3147, allocations: 444.2 kB / 478 MB, free: 21.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001855/0.3165, allocations: 1.052 MB / 479 MB, free: 20.48 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001613/0.3167, allocations: 204.3 kB / 479.2 MB, free: 20.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000278/0.317, allocations: 206.5 kB / 479.4 MB, free: 20.28 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003097/0.3201, allocations: 2.16 MB / 481.6 MB, free: 18.95 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.974e-05/0.3201, allocations: 3.938 kB / 481.6 MB, free: 18.95 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001772/0.3203, allocations: 78.03 kB / 481.6 MB, free: 18.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.702e-05/0.3203, allocations: 48.47 kB / 481.7 MB, free: 18.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003023/0.3233, allocations: 2.218 MB / 483.9 MB, free: 16.8 MB / 366.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.008433/0.3318, allocations: 5.846 MB / 489.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002182/0.334, allocations: 1.502 MB / 491.3 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006943/0.3347, allocations: 0.5179 MB / 491.8 MB, free: 8.785 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006567/0.3412, allocations: 3.311 MB / 495.1 MB, free: 5.453 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/0.3412, allocations: 43.56 kB / 495.1 MB, free: 5.402 MB / 366.1 MB Notification: Performance of pre-optimization done (n=88): time 2.675e-06/0.3413, allocations: 2.688 kB / 495.1 MB, free: 5.402 MB / 366.1 MB Notification: Performance of matching and sorting (n=106): time 0.01746/0.3587, allocations: 4.655 MB / 499.8 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.678e-05/0.3588, allocations: 119.8 kB / 499.9 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009489/0.3597, allocations: 0.867 MB / 0.489 GB, free: 15.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001142/0.3598, allocations: 48.36 kB / 0.4891 GB, free: 15.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007062/0.3605, allocations: 0.9632 MB / 0.49 GB, free: 14.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003949/0.3609, allocations: 400.6 kB / 0.4904 GB, free: 14.31 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005204/0.3614, allocations: 343.4 kB / 0.4907 GB, free: 13.97 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.3616, allocations: 357.9 kB / 0.4911 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008824/0.3625, allocations: 457.7 kB / 0.4915 GB, free: 13.17 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00151/0.364, allocations: 1.199 MB / 0.4927 GB, free: 11.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00262/0.3666, allocations: 1.798 MB / 0.4944 GB, free: 9.508 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.226e-05/0.3667, allocations: 4 kB / 0.4944 GB, free: 9.504 MB / 382.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005574/0.3722, allocations: 2.049 MB / 0.4964 GB, free: 7.457 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.997e-05/0.3723, allocations: 18.97 kB / 0.4965 GB, free: 7.441 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-05/0.3723, allocations: 26.66 kB / 0.4965 GB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002585/0.3749, allocations: 393.7 kB / 0.4969 GB, free: 7.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002004/0.3769, allocations: 444.7 kB / 0.4973 GB, free: 6.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005931/0.3828, allocations: 3.802 MB / 0.501 GB, free: 2.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001697/0.3845, allocations: 82.52 kB / 0.5011 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002172/0.3847, allocations: 104 kB / 0.5012 GB, free: 2.41 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 115 * 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): 216 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0009513/0.3857, allocations: 385.8 kB / 0.5015 GB, free: 2.023 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003949/0.3861, allocations: 129.8 kB / 0.5017 GB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005199/0.3913, allocations: 1.605 MB / 0.5032 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.572e-05/0.3913, allocations: 12 kB / 0.5032 GB, free: 348 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.3913, allocations: 6.688 kB / 0.5033 GB, free: 344 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/0.3913, allocations: 3.984 kB / 0.5033 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002343/0.3937, allocations: 1.106 MB / 0.5043 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.3937, allocations: 6.656 kB / 0.5043 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001359/0.395, allocations: 243.7 kB / 0.5046 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002521/0.3976, allocations: 350.1 kB / 0.5049 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.3977, allocations: 39.98 kB / 0.5049 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005468/0.4031, allocations: 3.724 MB / 0.5086 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/0.4031, allocations: 4 kB / 0.5086 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005564/0.4087, allocations: 2.188 MB / 0.5107 GB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004938/0.4092, allocations: 119.1 kB / 0.5108 GB, free: 8.238 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001649/0.4094, allocations: 24 kB / 0.5109 GB, free: 8.215 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007273/0.4101, allocations: 31.98 kB / 0.5109 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002667/0.4104, allocations: 103.4 kB / 0.511 GB, free: 8.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/0.4105, allocations: 51.98 kB / 0.511 GB, free: 8.031 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007868/0.4113, allocations: 0.5123 MB / 0.5115 GB, free: 7.508 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4113, allocations: 96 / 0.5115 GB, free: 7.508 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00272/0.414, allocations: 0.7288 MB / 0.5122 GB, free: 6.777 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (O2_gas.logn,H2_gas.logn,anode.temperature,cathode.temperature,water.temperature,air.temperature,liquidWater.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 (109): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,8), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001661/0.4156, allocations: 0.7444 MB / 0.513 GB, free: 6.062 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003222/0.4189, allocations: 1.469 MB / 0.5144 GB, free: 4.586 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.4189, allocations: 2.688 kB / 0.5144 GB, free: 4.586 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001438/0.4203, allocations: 0.7709 MB / 0.5152 GB, free: 3.793 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001554/0.4219, allocations: 235.7 kB / 0.5154 GB, free: 3.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005567/0.4274, allocations: 2.898 MB / 0.5182 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007692/0.4282, allocations: 0.6732 MB / 0.5189 GB, free: 20 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001182/0.4294, allocations: 324.4 kB / 0.5192 GB, free: 15.81 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004866/0.4299, allocations: 212.4 kB / 0.5194 GB, free: 15.61 MB / 414.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4299, allocations: 4 kB / 0.5194 GB, free: 15.61 MB / 414.1 MB Notification: Performance of Templates: time 0.04538/0.4752, allocations: 24.6 MB / 0.5434 GB, free: 7.645 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.sim & ./Chemical_Chemical.Obsolete.Examples.WaterElectrolysis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.863957367837429] Failed to read output from testmodel.py, exit status != 0: 0.48509372398257256 0.501677448 0.190174479 Calling exit ...