Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.WaterElectrolysis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 118.5 kB / 17.13 MB, free: 5.758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 194.1 kB / 20.08 MB, free: 2.848 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 225.6 MB / 248.5 MB, free: 3.633 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08179/0.08179, allocations: 15.54 MB / 318.9 MB, free: 13.64 MB / 254.1 MB " [Timeout remaining time 180] 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: translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001874, allocations: 65.02 kB / 446.1 MB, free: 48.12 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08817/0.09004, allocations: 56.56 MB / 0.4909 GB, free: 20.7 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019: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 1.4.1-master/package.mo:3019:6-3019: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.Examples.WaterElectrolysis): time 0.03302/0.1231, allocations: 29.51 MB / 0.5197 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02288/0.1459, allocations: 17.86 MB / 0.5371 GB, free: 8.117 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001471/0.1474, allocations: 23.88 kB / 0.5371 GB, free: 8.094 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001331/0.1487, allocations: 488.2 kB / 0.5376 GB, free: 7.613 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003801/0.1526, allocations: 1.319 MB / 0.5389 GB, free: 6.285 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006539/0.1591, allocations: 2.54 MB / 0.5414 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003495/0.1626, allocations: 2.28 MB / 0.5436 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001642/0.1642, allocations: 1.234 MB / 0.5448 GB, free: 156 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001302/0.1655, allocations: 1.032 MB / 0.5458 GB, free: 15.12 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00165/0.1672, allocations: 1.168 MB / 0.547 GB, free: 13.95 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003418/0.1675, allocations: 224 kB / 0.5472 GB, free: 13.73 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005552/0.1731, allocations: 1.841 MB / 0.549 GB, free: 11.88 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006155/0.1737, allocations: 0.5023 MB / 0.5495 GB, free: 11.38 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001347/0.175, allocations: 1.104 MB / 0.5505 GB, free: 10.27 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008829/0.1839, allocations: 4.186 MB / 0.5546 GB, free: 6.066 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.1839, allocations: 0 / 0.5546 GB, free: 6.066 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1839, allocations: 0 / 0.5546 GB, free: 6.066 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.038e-05/0.1839, allocations: 0 / 0.5546 GB, free: 6.066 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: 501 * Number of variables: 501 Notification: Performance of Generate backend data structure: time 0.004831/0.1887, allocations: 2.557 MB / 0.5571 GB, free: 3.449 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.1888, allocations: 8.031 kB / 0.5571 GB, free: 3.441 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001687/0.1905, allocations: 443 kB / 0.5576 GB, free: 3.008 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001984/0.1925, allocations: 1.119 MB / 0.5586 GB, free: 1.848 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001999/0.1927, allocations: 182 kB / 0.5588 GB, free: 1.664 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003214/0.193, allocations: 196 kB / 0.559 GB, free: 1.473 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00364/0.1966, allocations: 2.132 MB / 0.5611 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.604e-05/0.1967, allocations: 8 kB / 0.5611 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001879/0.1968, allocations: 80 kB / 0.5612 GB, free: 15.19 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.691e-05/0.1969, allocations: 48 kB / 0.5612 GB, free: 15.14 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003798/0.2007, allocations: 2.237 MB / 0.5634 GB, free: 12.9 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.01105/0.2117, allocations: 7.356 MB / 0.5706 GB, free: 5.191 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002797/0.2145, allocations: 1.655 MB / 0.5722 GB, free: 3.465 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000888/0.2154, allocations: 0.5416 MB / 0.5727 GB, free: 2.914 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009427/0.2248, allocations: 6.38 MB / 0.579 GB, free: 11.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.056e-05/0.2249, allocations: 47.5 kB / 0.579 GB, free: 11.74 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 2.324e-06/0.2249, allocations: 0 / 0.579 GB, free: 11.74 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01824/0.2431, allocations: 4.903 MB / 0.5838 GB, free: 6.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.03e-05/0.2432, allocations: 119.8 kB / 0.5839 GB, free: 6.609 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001191/0.2444, allocations: 0.9159 MB / 0.5848 GB, free: 5.676 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.999e-05/0.2445, allocations: 45.7 kB / 0.5848 GB, free: 5.625 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006918/0.2452, allocations: 0.9594 MB / 0.5858 GB, free: 4.652 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003616/0.2455, allocations: 404.6 kB / 0.5862 GB, free: 4.254 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004827/0.246, allocations: 347.4 kB / 0.5865 GB, free: 3.906 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.2462, allocations: 301.1 kB / 0.5868 GB, free: 3.609 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008411/0.247, allocations: 459.7 kB / 0.5872 GB, free: 3.16 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001465/0.2485, allocations: 1.195 MB / 0.5884 GB, free: 1.613 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002488/0.251, allocations: 1.794 MB / 0.5901 GB, free: 15.47 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.338e-05/0.251, allocations: 8 kB / 0.5902 GB, free: 15.46 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005207/0.2562, allocations: 2.065 MB / 0.5922 GB, free: 13.38 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.468e-05/0.2562, allocations: 18.94 kB / 0.5922 GB, free: 13.36 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.394e-05/0.2562, allocations: 24 kB / 0.5922 GB, free: 13.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002461/0.2587, allocations: 393.9 kB / 0.5926 GB, free: 12.94 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001784/0.2605, allocations: 447.3 kB / 0.593 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00586/0.2663, allocations: 4.063 MB / 0.597 GB, free: 8.141 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001229/0.2676, allocations: 91.78 kB / 0.5971 GB, free: 8.051 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001838/0.2678, allocations: 112 kB / 0.5972 GB, free: 7.941 MB / 462.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.0007057/0.2685, allocations: 374.6 kB / 0.5975 GB, free: 7.566 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002879/0.2688, allocations: 127.2 kB / 0.5977 GB, free: 7.441 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004819/0.2736, allocations: 1.614 MB / 0.5992 GB, free: 5.812 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.761e-05/0.2736, allocations: 15.98 kB / 0.5992 GB, free: 5.797 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.2736, allocations: 0 / 0.5992 GB, free: 5.797 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.464e-05/0.2736, allocations: 3.984 kB / 0.5992 GB, free: 5.793 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00242/0.276, allocations: 1.492 MB / 0.6007 GB, free: 4.215 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.276, allocations: 4 kB / 0.6007 GB, free: 4.211 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001261/0.2773, allocations: 243.9 kB / 0.6009 GB, free: 3.973 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002352/0.2797, allocations: 346.2 kB / 0.6013 GB, free: 3.625 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001186/0.2798, allocations: 51.91 kB / 0.6013 GB, free: 3.574 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2101/0.4899, allocations: 3.983 MB / 0.6052 GB, free: 96.79 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.4899, allocations: 5.625 kB / 0.6052 GB, free: 96.79 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005196/0.4951, allocations: 2.213 MB / 0.6074 GB, free: 96.39 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003635/0.4955, allocations: 192.5 kB / 0.6076 GB, free: 96.29 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001504/0.4956, allocations: 30.06 kB / 0.6076 GB, free: 96.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006742/0.4963, allocations: 30.41 kB / 0.6076 GB, free: 96.29 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002402/0.4965, allocations: 101.9 kB / 0.6077 GB, free: 96.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/0.4966, allocations: 51.25 kB / 0.6078 GB, free: 96.29 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008961/0.4975, allocations: 0.5784 MB / 0.6083 GB, free: 96.12 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4975, allocations: 0 / 0.6083 GB, free: 96.12 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002518/0.5001, allocations: 0.7238 MB / 0.609 GB, free: 96.06 MB / 462.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.001351/0.5014, allocations: 0.7227 MB / 0.6097 GB, free: 95.95 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002676/0.5041, allocations: 1.461 MB / 0.6112 GB, free: 95.34 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.5041, allocations: 0.9375 kB / 0.6112 GB, free: 95.34 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001446/0.5055, allocations: 0.7785 MB / 0.6119 GB, free: 94.93 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001427/0.507, allocations: 250.6 kB / 0.6122 GB, free: 94.84 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004843/0.5118, allocations: 3.092 MB / 0.6152 GB, free: 93.31 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007882/0.5126, allocations: 1.253 MB / 0.6164 GB, free: 92.59 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005746/0.5132, allocations: 275 kB / 0.6167 GB, free: 92.57 MB / 462.1 MB Notification: Performance of SimCode: time 1.173e-06/0.5132, allocations: 0 / 0.6167 GB, free: 92.57 MB / 462.1 MB Notification: Performance of Templates: time 0.03712/0.5503, allocations: 43.23 MB / 0.6589 GB, free: 58.43 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Examples.WaterElectrolysis.makefile [Timeout 660] (rm -f Chemical_Chemical.Examples.WaterElectrolysis.pipe ; mkfifo Chemical_Chemical.Examples.WaterElectrolysis.pipe ; head -c 1048576 < Chemical_Chemical.Examples.WaterElectrolysis.pipe >> ../files/Chemical_Chemical.Examples.WaterElectrolysis.sim & ./Chemical_Chemical.Examples.WaterElectrolysis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.WaterElectrolysis.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.951574192149565] Failed to read output from testmodel.py, exit status != 0: 0.7289817568380386 0.565421897 0.37952639600000004 Calling exit ...