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.001385/0.001385, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001544/0.001544, allocations: 216 kB / 22.26 MB, free: 5.125 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.492/1.492, allocations: 230.6 MB / 256 MB, free: 7.965 MB / 206.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.1409/0.1409, allocations: 23.85 MB / 336.3 MB, free: 11.16 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: "" <> 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: 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.002076/0.002076, allocations: 79.83 kB / 471.2 MB, free: 7.652 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.3005, allocations: 59.85 MB / 0.5186 GB, free: 9.602 MB / 382.1 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.0418/0.3423, allocations: 27.8 MB / 0.5457 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02631/0.3686, allocations: 18.32 MB / 0.5636 GB, free: 11.18 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001397/0.37, allocations: 27.75 kB / 0.5637 GB, free: 11.15 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001582/0.3716, allocations: 475 kB / 0.5641 GB, free: 10.79 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002814/0.3744, allocations: 0.8381 MB / 0.5649 GB, free: 10.07 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00835/0.3827, allocations: 2.854 MB / 0.5677 GB, free: 7.672 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003017/0.3858, allocations: 1.637 MB / 0.5693 GB, free: 6.145 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001286/0.387, allocations: 0.7312 MB / 0.57 GB, free: 5.391 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001122/0.3882, allocations: 0.7323 MB / 0.5707 GB, free: 4.656 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001405/0.3896, allocations: 0.8133 MB / 0.5715 GB, free: 3.84 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003666/0.3899, allocations: 140 kB / 0.5717 GB, free: 3.703 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005713/0.3956, allocations: 1.778 MB / 0.5734 GB, free: 1.922 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005543/0.3962, allocations: 358.9 kB / 0.5738 GB, free: 1.57 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001127/0.3973, allocations: 0.7466 MB / 0.5745 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00997/0.4073, allocations: 3.583 MB / 0.578 GB, free: 13.22 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.377e-06/0.4073, allocations: 0 / 0.578 GB, free: 13.22 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.4073, allocations: 0 / 0.578 GB, free: 13.22 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001185/0.4074, allocations: 0 / 0.578 GB, free: 13.22 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: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.005288/0.4127, allocations: 1.905 MB / 0.5798 GB, free: 11.28 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/0.4128, allocations: 8.031 kB / 0.5798 GB, free: 11.27 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003509/0.4131, allocations: 181.8 kB / 0.58 GB, free: 11.08 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001748/0.4149, allocations: 387.4 kB / 0.5804 GB, free: 10.7 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002112/0.417, allocations: 0.9236 MB / 0.5813 GB, free: 9.75 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000204/0.4172, allocations: 201.3 kB / 0.5815 GB, free: 9.527 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000256/0.4174, allocations: 112 kB / 0.5816 GB, free: 9.418 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003061/0.4205, allocations: 1.664 MB / 0.5832 GB, free: 7.68 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.41e-05/0.4205, allocations: 7.938 kB / 0.5832 GB, free: 7.672 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001445/0.4207, allocations: 51.98 kB / 0.5833 GB, free: 7.621 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.202e-05/0.4207, allocations: 32 kB / 0.5833 GB, free: 7.59 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00351/0.4242, allocations: 2.128 MB / 0.5854 GB, free: 5.461 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009038/0.4333, allocations: 5.384 MB / 0.5906 GB, free: 15.89 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001386/0.4347, allocations: 0.6899 MB / 0.5913 GB, free: 15.17 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006052/0.4353, allocations: 332.3 kB / 0.5916 GB, free: 14.84 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006968/0.4422, allocations: 2.78 MB / 0.5943 GB, free: 12.03 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/0.4423, allocations: 38.5 kB / 0.5944 GB, free: 11.98 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003348/0.4426, allocations: 79.25 kB / 0.5945 GB, free: 11.91 MB / 446.1 MB Notification: Performance of pre-optimization done (n=34): time 3.026e-06/0.4426, allocations: 0 / 0.5945 GB, free: 11.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.001536/0.4441, allocations: 0.608 MB / 0.5951 GB, free: 11.29 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.924e-05/0.4442, allocations: 110.8 kB / 0.5952 GB, free: 11.15 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001591/0.4458, allocations: 1.222 MB / 0.5964 GB, free: 9.914 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.629e-05/0.4459, allocations: 33.7 kB / 0.5964 GB, free: 9.875 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006526/0.4465, allocations: 0.7945 MB / 0.5972 GB, free: 9.07 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.4466, allocations: 146.9 kB / 0.5973 GB, free: 8.926 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003978/0.447, allocations: 270.7 kB / 0.5976 GB, free: 8.656 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.4472, allocations: 353.9 kB / 0.5979 GB, free: 8.305 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005983/0.4478, allocations: 322.5 kB / 0.5982 GB, free: 7.988 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001257/0.4491, allocations: 1.058 MB / 0.5992 GB, free: 6.57 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001888/0.451, allocations: 1.403 MB / 0.6006 GB, free: 4.801 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.369e-05/0.451, allocations: 8 kB / 0.6006 GB, free: 4.793 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002624/0.4536, allocations: 1.456 MB / 0.602 GB, free: 3.324 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.926e-05/0.4536, allocations: 19.94 kB / 0.6021 GB, free: 3.305 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.73e-05/0.4537, allocations: 24 kB / 0.6021 GB, free: 3.281 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006653/0.4544, allocations: 150 kB / 0.6022 GB, free: 3.129 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/0.4556, allocations: 379.4 kB / 0.6026 GB, free: 2.758 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00346/0.459, allocations: 3.866 MB / 0.6064 GB, free: 14.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009394/0.46, allocations: 76 kB / 0.6064 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000185/0.4601, allocations: 91.98 kB / 0.6065 GB, free: 14.44 MB / 462.1 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.0005889/0.4607, allocations: 309.1 kB / 0.6068 GB, free: 14.12 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002709/0.461, allocations: 111.3 kB / 0.6069 GB, free: 14.02 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001904/0.4629, allocations: 0.8517 MB / 0.6077 GB, free: 13.12 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.186e-06/0.4629, allocations: 4 kB / 0.6078 GB, free: 13.12 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.4629, allocations: 0 / 0.6078 GB, free: 13.12 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.4629, allocations: 7.984 kB / 0.6078 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002481/0.4654, allocations: 1.231 MB / 0.609 GB, free: 11.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/0.4654, allocations: 4 kB / 0.609 GB, free: 11.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002706/0.4657, allocations: 60.09 kB / 0.609 GB, free: 11.74 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008046/0.4665, allocations: 179 kB / 0.6092 GB, free: 11.55 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.251e-05/0.4665, allocations: 12 kB / 0.6092 GB, free: 11.54 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003505/0.47, allocations: 3.744 MB / 0.6129 GB, free: 7.504 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.66e-06/0.47, allocations: 8.188 kB / 0.6129 GB, free: 7.496 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001488/0.4715, allocations: 0.8674 MB / 0.6137 GB, free: 6.578 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002905/0.4718, allocations: 99.31 kB / 0.6138 GB, free: 6.48 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001955/0.472, allocations: 8 kB / 0.6138 GB, free: 6.473 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004231/0.4724, allocations: 12.06 kB / 0.6138 GB, free: 6.461 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.506e-05/0.4725, allocations: 43.81 kB / 0.6139 GB, free: 6.418 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.087e-05/0.4725, allocations: 15.94 kB / 0.6139 GB, free: 6.402 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001341/0.4739, allocations: 0.8927 MB / 0.6148 GB, free: 5.504 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4739, allocations: 0 / 0.6148 GB, free: 5.504 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002183/0.4761, allocations: 0.6306 MB / 0.6154 GB, free: 4.871 MB / 462.1 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.003252/0.4793, allocations: 2.058 MB / 0.6174 GB, free: 2.758 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001795/0.4811, allocations: 0.7711 MB / 0.6181 GB, free: 1.992 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.4811, allocations: 4 kB / 0.6181 GB, free: 1.988 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005889/0.4817, allocations: 373.2 kB / 0.6185 GB, free: 1.598 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/0.4829, allocations: 182.8 kB / 0.6187 GB, free: 1.426 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01484/0.4977, allocations: 9.655 MB / 0.6281 GB, free: 6.844 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000831/0.4985, allocations: 1.059 MB / 0.6291 GB, free: 5.758 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0009/0.4994, allocations: 293.7 kB / 0.6294 GB, free: 5.492 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006803/0.5001, allocations: 495.2 kB / 0.6299 GB, free: 5.008 MB / 478.1 MB Notification: Performance of SimCode: time 7.62e-07/0.5001, allocations: 0 / 0.6299 GB, free: 5.008 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07802/0.5781, allocations: 30.48 MB / 0.6597 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.56/24.13, allocations: 3.984 kB / 0.6597 GB, free: 6.688 MB / 0.4981 GB " [Timeout remaining time 636] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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: 26.96028340817429] Failed to read output from testmodel.py, exit status != 0: 24.268918000161648 24.285280054 23.874588051 Calling exit ...