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.0009768/0.0009768, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008369/0.0008369, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8655/0.8655, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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.07961/0.07961, allocations: 17.37 MB / 276.6 MB, free: 11.85 MB / 266.7 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: "" <> buildModelFMU(Chemical.Obsolete.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_WaterElectrolysis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_WaterElectrolysis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.953e-06/1.953e-06, allocations: 0 / 411.4 MB, free: 424 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.516e-05/1.711e-05, allocations: 2.281 kB / 411.5 MB, free: 420 kB / 378.7 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.02403/0.02405, allocations: 29.04 MB / 440.5 MB, free: 3.426 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1837/0.2077, allocations: 15.78 MB / 456.3 MB, free: 55.73 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005907/0.2083, allocations: 27.66 kB / 456.3 MB, free: 55.72 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006431/0.209, allocations: 452.8 kB / 456.7 MB, free: 55.48 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001643/0.2106, allocations: 1.358 MB / 458.1 MB, free: 54.63 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003299/0.2139, allocations: 2.642 MB / 460.7 MB, free: 53.07 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001626/0.2155, allocations: 2.366 MB / 463.1 MB, free: 51.84 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009877/0.2165, allocations: 1.206 MB / 464.3 MB, free: 51.25 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008392/0.2174, allocations: 1.518 MB / 465.8 MB, free: 50.64 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006372/0.218, allocations: 0.8896 MB / 466.7 MB, free: 50.39 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001644/0.2182, allocations: 225.4 kB / 466.9 MB, free: 50.39 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002388/0.2206, allocations: 1.741 MB / 468.7 MB, free: 50.02 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002121/0.2208, allocations: 0.5081 MB / 469.2 MB, free: 49.68 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003997/0.2212, allocations: 0.7956 MB / 470 MB, free: 49.32 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002643/0.2238, allocations: 4.523 MB / 474.5 MB, free: 47.43 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.309e-06/0.2238, allocations: 0 / 474.5 MB, free: 47.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2238, allocations: 0 / 474.5 MB, free: 47.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.893e-05/0.2238, allocations: 0 / 474.5 MB, free: 47.43 MB / 410.7 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.002195/0.226, allocations: 2.458 MB / 477 MB, free: 45.99 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.2261, allocations: 12.25 kB / 477 MB, free: 45.99 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000191/0.2263, allocations: 279.7 kB / 477.3 MB, free: 45.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007912/0.2271, allocations: 437.3 kB / 477.7 MB, free: 45.68 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00103/0.2281, allocations: 1.057 MB / 478.7 MB, free: 45.08 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001009/0.2282, allocations: 201.8 kB / 478.9 MB, free: 44.95 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001746/0.2284, allocations: 203.9 kB / 479.1 MB, free: 44.88 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001874/0.2302, allocations: 2.157 MB / 481.3 MB, free: 43.95 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.944e-05/0.2303, allocations: 7.281 kB / 481.3 MB, free: 43.95 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001097/0.2304, allocations: 78.94 kB / 481.4 MB, free: 43.88 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.571e-05/0.2304, allocations: 50.47 kB / 481.4 MB, free: 43.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002163/0.2326, allocations: 2.213 MB / 483.6 MB, free: 43.22 MB / 410.7 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.005863/0.2384, allocations: 6.092 MB / 489.7 MB, free: 39.42 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00165/0.2401, allocations: 1.491 MB / 491.2 MB, free: 38.84 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005383/0.2406, allocations: 0.5266 MB / 491.7 MB, free: 38.61 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004361/0.245, allocations: 3.314 MB / 495.1 MB, free: 37.17 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.245, allocations: 47.55 kB / 495.1 MB, free: 37.12 MB / 410.7 MB Notification: Performance of pre-optimization done (n=88): time 2.425e-06/0.245, allocations: 1 kB / 495.1 MB, free: 37.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=106): time 0.009278/0.2543, allocations: 4.673 MB / 499.8 MB, free: 35.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.145e-05/0.2543, allocations: 115 kB / 499.9 MB, free: 35.04 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009442/0.2553, allocations: 0.9697 MB / 0.4891 GB, free: 34.59 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.98e-05/0.2553, allocations: 46.61 kB / 0.4892 GB, free: 34.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003784/0.2557, allocations: 0.9554 MB / 0.4901 GB, free: 33.78 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001986/0.2559, allocations: 398.6 kB / 0.4905 GB, free: 33.47 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003309/0.2562, allocations: 343.5 kB / 0.4908 GB, free: 33.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.964e-05/0.2563, allocations: 307.7 kB / 0.4911 GB, free: 33 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005885/0.2568, allocations: 457.8 kB / 0.4915 GB, free: 32.84 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009308/0.2578, allocations: 1.195 MB / 0.4927 GB, free: 31.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00145/0.2592, allocations: 1.793 MB / 0.4945 GB, free: 30.24 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/0.2592, allocations: 6.875 kB / 0.4945 GB, free: 30.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.002909/0.2621, allocations: 2.062 MB / 0.4965 GB, free: 29.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.941e-05/0.2622, allocations: 20.03 kB / 0.4965 GB, free: 29.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.295e-05/0.2622, allocations: 27.38 kB / 0.4965 GB, free: 29.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001202/0.2634, allocations: 378.8 kB / 0.4969 GB, free: 29.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009205/0.2643, allocations: 450.6 kB / 0.4973 GB, free: 29.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002699/0.267, allocations: 3.845 MB / 0.5011 GB, free: 25.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007239/0.2677, allocations: 85.52 kB / 0.5011 GB, free: 25.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.2679, allocations: 110.3 kB / 0.5013 GB, free: 25.87 MB / 410.7 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.0004997/0.2684, allocations: 382.8 kB / 0.5016 GB, free: 25.58 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.2685, allocations: 129.7 kB / 0.5017 GB, free: 25.51 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002558/0.2711, allocations: 1.608 MB / 0.5033 GB, free: 24.93 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.2711, allocations: 15.72 kB / 0.5033 GB, free: 24.93 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.2711, allocations: 2.422 kB / 0.5033 GB, free: 24.93 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.2711, allocations: 13.91 kB / 0.5033 GB, free: 24.93 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001378/0.2725, allocations: 1.308 MB / 0.5046 GB, free: 23.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.2725, allocations: 6.656 kB / 0.5046 GB, free: 23.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005758/0.273, allocations: 245.3 kB / 0.5049 GB, free: 23.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001037/0.2741, allocations: 345.3 kB / 0.5052 GB, free: 23.42 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.255e-05/0.2741, allocations: 40.31 kB / 0.5052 GB, free: 23.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002195/0.2763, allocations: 3.765 MB / 0.5089 GB, free: 19.53 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.2763, allocations: 11.11 kB / 0.5089 GB, free: 19.52 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002473/0.2788, allocations: 2.194 MB / 0.5111 GB, free: 17.49 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.2789, allocations: 116.8 kB / 0.5112 GB, free: 17.38 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.713e-05/0.279, allocations: 30.66 kB / 0.5112 GB, free: 17.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003207/0.2793, allocations: 30.14 kB / 0.5112 GB, free: 17.33 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.2795, allocations: 105.1 kB / 0.5113 GB, free: 17.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.969e-05/0.2795, allocations: 53.53 kB / 0.5114 GB, free: 17.22 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004023/0.2799, allocations: 0.571 MB / 0.5119 GB, free: 16.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2799, allocations: 0 / 0.5119 GB, free: 16.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001592/0.2815, allocations: 0.7361 MB / 0.5127 GB, free: 16 MB / 410.7 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.003401/0.2849, allocations: 3.397 MB / 0.516 GB, free: 12.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00159/0.2865, allocations: 1.469 MB / 0.5174 GB, free: 11.44 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2865, allocations: 0 / 0.5174 GB, free: 11.44 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006333/0.2871, allocations: 0.7799 MB / 0.5182 GB, free: 10.64 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007825/0.2879, allocations: 243.5 kB / 0.5184 GB, free: 10.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0111/0.299, allocations: 12.03 MB / 0.5302 GB, free: 13.54 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005096/0.2995, allocations: 0.6696 MB / 0.5308 GB, free: 12.86 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006901/0.3002, allocations: 343.7 kB / 0.5311 GB, free: 12.63 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006574/0.3009, allocations: 0.745 MB / 0.5319 GB, free: 11.89 MB / 426.7 MB Notification: Performance of SimCode: time 8.51e-07/0.3009, allocations: 0 / 0.5319 GB, free: 11.89 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05166/0.3525, allocations: 39.67 MB / 0.5706 GB, free: 4.98 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.102/9.454, allocations: 7.094 kB / 0.5706 GB, free: 4.977 MB / 458.7 MB " [Timeout remaining time 650] (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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.WaterElectrolysis_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_Chemical_Obsolete_Examples_WaterElectrolysis.fmu > Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.324279035441577] Failed to read output from testmodel.py, exit status != 0: 9.563396728597581 9.574669549 9.348269122 Calling exit ...