Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.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.0007761/0.0007761, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0008288/0.0008288, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.8724/0.8724, allocations: 177.1 MB / 202.8 MB, free: 5.738 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.08428/0.08428, allocations: 17.38 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.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 411.4 MB, free: 13.25 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.77e-05/1.939e-05, allocations: 5.219 kB / 411.4 MB, free: 13.25 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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 2.0.0/Obsolete.mo:14337:7-14337: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.CheckSubstancesData.StandardElectrochemicalCell2): time 0.02132/0.02133, allocations: 27.44 MB / 438.9 MB, free: 13.31 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01333/0.03467, allocations: 16.03 MB / 454.9 MB, free: 14.74 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008304/0.0355, allocations: 23.81 kB / 454.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008443/0.03634, allocations: 436.6 kB / 455.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001381/0.03772, allocations: 0.8314 MB / 456.2 MB, free: 13.64 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004802/0.04252, allocations: 2.942 MB / 459.1 MB, free: 10.68 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001259/0.04378, allocations: 1.695 MB / 460.8 MB, free: 8.977 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006499/0.04443, allocations: 0.7351 MB / 461.6 MB, free: 8.223 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006598/0.04509, allocations: 1.022 MB / 462.6 MB, free: 7.199 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005408/0.04563, allocations: 0.6468 MB / 463.2 MB, free: 6.551 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.04575, allocations: 140 kB / 463.4 MB, free: 6.414 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002314/0.04806, allocations: 1.68 MB / 465.1 MB, free: 4.73 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002113/0.04828, allocations: 366.8 kB / 465.4 MB, free: 4.371 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003245/0.0486, allocations: 0.5301 MB / 465.9 MB, free: 3.84 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002881/0.05148, allocations: 3.752 MB / 469.7 MB, free: 76 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.05149, allocations: 0 / 469.7 MB, free: 76 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.552e-06/0.05149, allocations: 0 / 469.7 MB, free: 76 kB / 362.7 MB Notification: Performance of Transformations before backend: time 1.205e-05/0.0515, allocations: 0 / 469.7 MB, free: 76 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.001837/0.05334, allocations: 1.877 MB / 471.6 MB, free: 14.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.05339, allocations: 12.03 kB / 471.6 MB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001637/0.05355, allocations: 185.7 kB / 471.8 MB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008641/0.05442, allocations: 391.1 kB / 472.1 MB, free: 13.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001015/0.05543, allocations: 0.9268 MB / 473.1 MB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001185/0.05555, allocations: 197.8 kB / 473.3 MB, free: 12.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002663/0.05582, allocations: 116.4 kB / 473.4 MB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/0.0574, allocations: 1.664 MB / 475 MB, free: 10.54 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/0.05743, allocations: 4 kB / 475.1 MB, free: 10.54 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.411e-05/0.05751, allocations: 51.94 kB / 475.1 MB, free: 10.49 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.818e-05/0.05753, allocations: 32 kB / 475.1 MB, free: 10.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001908/0.05944, allocations: 2.108 MB / 477.2 MB, free: 8.344 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004724/0.06416, allocations: 4.855 MB / 482.1 MB, free: 3.371 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008073/0.06497, allocations: 0.6781 MB / 482.8 MB, free: 2.668 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003545/0.06532, allocations: 336.4 kB / 483.1 MB, free: 2.332 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003267/0.06859, allocations: 2.654 MB / 485.8 MB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.06861, allocations: 42.55 kB / 485.8 MB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001415/0.06875, allocations: 83.19 kB / 485.9 MB, free: 15.52 MB / 394.7 MB Notification: Performance of pre-optimization done (n=34): time 1.663e-06/0.06876, allocations: 0 / 485.9 MB, free: 15.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=34): time 0.0008682/0.06962, allocations: 0.6005 MB / 486.5 MB, free: 14.91 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.409e-05/0.06967, allocations: 114.8 kB / 486.6 MB, free: 14.77 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001034/0.0707, allocations: 1.253 MB / 487.8 MB, free: 13.5 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.07073, allocations: 29.7 kB / 487.9 MB, free: 13.47 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003313/0.07106, allocations: 0.7906 MB / 488.7 MB, free: 12.67 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.077e-05/0.07113, allocations: 147.2 kB / 488.8 MB, free: 12.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002111/0.07134, allocations: 270.7 kB / 489.1 MB, free: 12.25 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.211e-05/0.07143, allocations: 357.9 kB / 489.4 MB, free: 11.9 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003241/0.07175, allocations: 326.5 kB / 489.7 MB, free: 11.58 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006082/0.07236, allocations: 1.054 MB / 490.8 MB, free: 10.16 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009635/0.07333, allocations: 1.399 MB / 492.2 MB, free: 8.395 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.695e-06/0.07333, allocations: 8 kB / 492.2 MB, free: 8.387 MB / 394.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.001345/0.07468, allocations: 1.463 MB / 493.7 MB, free: 6.91 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.0747, allocations: 16 kB / 493.7 MB, free: 6.895 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.7e-05/0.07472, allocations: 24 kB / 493.7 MB, free: 6.871 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003486/0.07507, allocations: 153.4 kB / 493.9 MB, free: 6.715 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008091/0.07588, allocations: 383.8 kB / 494.2 MB, free: 6.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001685/0.07756, allocations: 3.846 MB / 498.1 MB, free: 2.203 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004061/0.07797, allocations: 80.16 kB / 498.2 MB, free: 2.125 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.447e-05/0.07804, allocations: 91.98 kB / 498.2 MB, free: 2.035 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 119 * 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 (155): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002778/0.07832, allocations: 309.1 kB / 498.5 MB, free: 1.723 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.796e-05/0.07842, allocations: 107.3 kB / 498.6 MB, free: 1.617 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009349/0.07935, allocations: 0.8622 MB / 499.5 MB, free: 0.7148 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.07936, allocations: 4 kB / 499.5 MB, free: 0.7109 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.07936, allocations: 0 / 499.5 MB, free: 0.7109 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.07936, allocations: 7.922 kB / 499.5 MB, free: 0.7031 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001176/0.08054, allocations: 1.179 MB / 0.489 GB, free: 15.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.08054, allocations: 7.984 kB / 0.489 GB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.08067, allocations: 55.97 kB / 0.489 GB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003487/0.08102, allocations: 175.2 kB / 0.4892 GB, free: 15.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.095e-05/0.08104, allocations: 16.06 kB / 0.4892 GB, free: 15.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001769/0.08281, allocations: 3.725 MB / 0.4928 GB, free: 11.17 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.08281, allocations: 3.938 kB / 0.4929 GB, free: 11.17 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006796/0.08349, allocations: 0.8596 MB / 0.4937 GB, free: 10.26 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.716e-05/0.08359, allocations: 99.5 kB / 0.4938 GB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.098e-05/0.08365, allocations: 12 kB / 0.4938 GB, free: 10.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001981/0.08385, allocations: 11.98 kB / 0.4938 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.587e-05/0.08389, allocations: 39.83 kB / 0.4938 GB, free: 10.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.818e-05/0.08391, allocations: 16 kB / 0.4939 GB, free: 10.08 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006752/0.08459, allocations: 0.8927 MB / 0.4947 GB, free: 9.184 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.08459, allocations: 0 / 0.4947 GB, free: 9.184 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001167/0.08575, allocations: 0.6306 MB / 0.4953 GB, free: 8.551 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (cathode.temperature,anode.temperature) * 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 (27): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001767/0.08752, allocations: 2.084 MB / 0.4974 GB, free: 6.41 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008514/0.08837, allocations: 0.7711 MB / 0.4981 GB, free: 5.645 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.08838, allocations: 4 kB / 0.4981 GB, free: 5.641 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000281/0.08866, allocations: 377.8 kB / 0.4985 GB, free: 5.246 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006223/0.08928, allocations: 174.2 kB / 0.4987 GB, free: 5.078 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007296/0.09657, allocations: 9.546 MB / 0.508 GB, free: 10.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002908/0.09687, allocations: 476.9 kB / 0.5084 GB, free: 10.1 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004812/0.09735, allocations: 285.3 kB / 0.5087 GB, free: 9.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003808/0.09773, allocations: 496.3 kB / 0.5092 GB, free: 9.355 MB / 426.7 MB Notification: Performance of SimCode: time 7.22e-07/0.09773, allocations: 0 / 0.5092 GB, free: 9.355 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0475/0.1452, allocations: 30.85 MB / 0.5393 GB, free: 10.73 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.404/8.55, allocations: 21.94 kB / 0.5393 GB, free: 10.71 MB / 458.7 MB " [Timeout remaining time 651] (rm -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2_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_CheckSubstancesData_StandardElectrochemicalCell2.fmu > Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.543849490582943] Failed to read output from testmodel.py, exit status != 0: 8.797125171869993 8.662837721 8.609521077 Calling exit ...