Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.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.00133/0.00133, allocations: 108.9 kB / 16.46 MB, free: 6.453 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.001445/0.001445, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.367/1.367, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1331/0.1331, allocations: 23.87 MB / 332.7 MB, free: 12.32 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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.StandardElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 71.89 kB / 466 MB, free: 10.02 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.2978, allocations: 59.83 MB / 0.5136 GB, free: 8.867 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.StandardElectrochemicalCell): time 0.03636/0.3342, allocations: 28.36 MB / 0.5412 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02626/0.3605, allocations: 21.71 MB / 0.5624 GB, free: 8.348 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001294/0.3617, allocations: 27.75 kB / 0.5625 GB, free: 8.32 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001449/0.3632, allocations: 0.5363 MB / 0.563 GB, free: 7.895 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002843/0.366, allocations: 1.006 MB / 0.564 GB, free: 7.039 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008856/0.3749, allocations: 3.314 MB / 0.5672 GB, free: 4.258 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002708/0.3776, allocations: 1.806 MB / 0.569 GB, free: 2.441 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000961/0.3786, allocations: 0.7702 MB / 0.5697 GB, free: 1.648 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008425/0.3794, allocations: 0.8102 MB / 0.5705 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001044/0.3805, allocations: 0.8912 MB / 0.5714 GB, free: 15.94 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002082/0.3807, allocations: 151.9 kB / 0.5715 GB, free: 15.79 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006062/0.3867, allocations: 2.079 MB / 0.5736 GB, free: 13.71 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003924/0.3871, allocations: 386.8 kB / 0.5739 GB, free: 13.33 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007881/0.3879, allocations: 0.8126 MB / 0.5747 GB, free: 12.52 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007893/0.3958, allocations: 4.058 MB / 0.5787 GB, free: 8.441 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3958, allocations: 0 / 0.5787 GB, free: 8.441 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3958, allocations: 7.938 kB / 0.5787 GB, free: 8.434 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.086e-05/0.3958, allocations: 0 / 0.5787 GB, free: 8.434 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.003443/0.3993, allocations: 2.147 MB / 0.5808 GB, free: 6.227 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.3993, allocations: 12.03 kB / 0.5808 GB, free: 6.215 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002361/0.3995, allocations: 190.3 kB / 0.581 GB, free: 6.02 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00176/0.4013, allocations: 443.1 kB / 0.5814 GB, free: 5.586 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001686/0.403, allocations: 1.056 MB / 0.5824 GB, free: 4.488 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001638/0.4032, allocations: 158.1 kB / 0.5826 GB, free: 4.32 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002102/0.4034, allocations: 124 kB / 0.5827 GB, free: 4.199 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002686/0.406, allocations: 1.752 MB / 0.5844 GB, free: 2.375 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.716e-05/0.4061, allocations: 4 kB / 0.5844 GB, free: 2.371 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001393/0.4062, allocations: 55.94 kB / 0.5845 GB, free: 2.316 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.804e-05/0.4062, allocations: 32 kB / 0.5845 GB, free: 2.285 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003559/0.4098, allocations: 2.315 MB / 0.5868 GB, free: 15.96 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007853/0.4177, allocations: 5.58 MB / 0.5922 GB, free: 10.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00135/0.419, allocations: 0.7094 MB / 0.5929 GB, free: 9.457 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005882/0.4196, allocations: 336.4 kB / 0.5932 GB, free: 9.121 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008099/0.4277, allocations: 5.72 MB / 0.5988 GB, free: 2.707 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.893e-05/0.4277, allocations: 42.55 kB / 0.5989 GB, free: 2.656 MB / 446.1 MB Notification: Performance of pre-optimization done (n=37): time 1.913e-06/0.4277, allocations: 0 / 0.5989 GB, free: 2.656 MB / 446.1 MB Notification: Performance of matching and sorting (n=37): time 0.001556/0.4293, allocations: 0.8021 MB / 0.5996 GB, free: 1.805 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.273e-05/0.4294, allocations: 110.8 kB / 0.5998 GB, free: 1.672 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001511/0.4309, allocations: 1.295 MB / 0.601 GB, free: 376 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.114e-05/0.4309, allocations: 29.7 kB / 0.601 GB, free: 340 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006264/0.4315, allocations: 0.8647 MB / 0.6019 GB, free: 15.45 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.4317, allocations: 150.8 kB / 0.602 GB, free: 15.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003618/0.432, allocations: 295.3 kB / 0.6023 GB, free: 15.01 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.4322, allocations: 353.9 kB / 0.6027 GB, free: 14.66 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005254/0.4327, allocations: 339.8 kB / 0.603 GB, free: 14.32 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0012/0.4339, allocations: 1.152 MB / 0.6041 GB, free: 12.76 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001784/0.4357, allocations: 1.53 MB / 0.6056 GB, free: 10.82 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.161e-05/0.4357, allocations: 8 kB / 0.6056 GB, free: 10.82 MB / 462.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002397/0.4381, allocations: 1.548 MB / 0.6071 GB, free: 9.258 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.19e-05/0.4381, allocations: 27.88 kB / 0.6071 GB, free: 9.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.071e-05/0.4382, allocations: 28 kB / 0.6072 GB, free: 9.203 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006051/0.4388, allocations: 157.4 kB / 0.6073 GB, free: 9.043 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001114/0.4399, allocations: 399.8 kB / 0.6077 GB, free: 8.652 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003204/0.4431, allocations: 4.077 MB / 0.6117 GB, free: 4.234 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000875/0.444, allocations: 194.8 kB / 0.6119 GB, free: 4.043 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001345/0.4441, allocations: 104 kB / 0.612 GB, free: 3.941 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * 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 (167): * Single equations (assignments): 163 * 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.0004827/0.4446, allocations: 333 kB / 0.6123 GB, free: 3.605 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001995/0.4448, allocations: 119.2 kB / 0.6124 GB, free: 3.488 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001815/0.4466, allocations: 0.9436 MB / 0.6133 GB, free: 2.504 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.4466, allocations: 0 / 0.6133 GB, free: 2.504 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.4466, allocations: 8 kB / 0.6133 GB, free: 2.496 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.4466, allocations: 3.984 kB / 0.6133 GB, free: 2.492 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002111/0.4487, allocations: 1.364 MB / 0.6147 GB, free: 1.035 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.4487, allocations: 4 kB / 0.6147 GB, free: 1.031 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002489/0.449, allocations: 59.91 kB / 0.6147 GB, free: 0.9727 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007225/0.4497, allocations: 183.3 kB / 0.6149 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.059e-05/0.4497, allocations: 16 kB / 0.6149 GB, free: 0.7656 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002993/0.4527, allocations: 3.963 MB / 0.6188 GB, free: 12.46 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.173e-06/0.4527, allocations: 7.938 kB / 0.6188 GB, free: 12.45 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001283/0.454, allocations: 0.9058 MB / 0.6197 GB, free: 11.49 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000223/0.4542, allocations: 188.4 kB / 0.6199 GB, free: 11.29 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/0.4544, allocations: 23.88 kB / 0.6199 GB, free: 11.27 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000361/0.4547, allocations: 12 kB / 0.6199 GB, free: 11.25 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.338e-05/0.4548, allocations: 35.84 kB / 0.6199 GB, free: 11.22 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.625e-05/0.4548, allocations: 27.92 kB / 0.6199 GB, free: 11.19 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001172/0.456, allocations: 0.9547 MB / 0.6209 GB, free: 10.23 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.456, allocations: 0 / 0.6209 GB, free: 10.23 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001995/0.458, allocations: 0.7124 MB / 0.6216 GB, free: 9.52 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (30): * Single equations (assignments): 26 * 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.002864/0.4609, allocations: 2.194 MB / 0.6237 GB, free: 7.258 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001661/0.4625, allocations: 0.8169 MB / 0.6245 GB, free: 6.445 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.4625, allocations: 1.812 kB / 0.6245 GB, free: 6.445 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005324/0.4631, allocations: 389.7 kB / 0.6249 GB, free: 6.039 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.4641, allocations: 199.7 kB / 0.6251 GB, free: 5.848 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01319/0.4773, allocations: 10.43 MB / 0.6353 GB, free: 10.38 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008835/0.4782, allocations: 1.095 MB / 0.6363 GB, free: 9.258 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0008544/0.479, allocations: 310.6 kB / 0.6366 GB, free: 8.973 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006602/0.4797, allocations: 0.5343 MB / 0.6372 GB, free: 8.438 MB / 494.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4797, allocations: 0 / 0.6372 GB, free: 8.438 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07467/0.5544, allocations: 33.11 MB / 0.6695 GB, free: 7.527 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.45/24, allocations: 4 kB / 0.6695 GB, free: 7.523 MB / 0.5137 GB " [Timeout remaining time 636] (rm -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell.fmu > Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 26.584794719005004] Failed to read output from testmodel.py, exit status != 0: 24.110312554053962 24.131672921 23.731801255 Calling exit ...