Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001522/0.001522, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001852/0.001852, allocations: 218.3 kB / 23.04 MB, free: 5.074 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.475/1.475, allocations: 230.6 MB / 256.8 MB, free: 7.984 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.1447/0.1447, allocations: 23.88 MB / 337.1 MB, free: 11.27 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/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.StandardElectrochemicalCell2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="cs",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.001974/0.001974, allocations: 63.89 kB / 472 MB, free: 7.684 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3297, allocations: 59.87 MB / 0.5194 GB, free: 9.578 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.StandardElectrochemicalCell2): time 0.03864/0.3683, allocations: 27.63 MB / 0.5464 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0239/0.3922, allocations: 18.32 MB / 0.5643 GB, free: 11.35 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001332/0.3935, allocations: 19.81 kB / 0.5643 GB, free: 11.33 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001442/0.395, allocations: 475 kB / 0.5648 GB, free: 10.96 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002897/0.3979, allocations: 0.8453 MB / 0.5656 GB, free: 10.24 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008383/0.4063, allocations: 2.847 MB / 0.5684 GB, free: 7.852 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003065/0.4093, allocations: 1.64 MB / 0.57 GB, free: 6.34 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001138/0.4105, allocations: 0.739 MB / 0.5707 GB, free: 5.578 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000961/0.4114, allocations: 0.7284 MB / 0.5714 GB, free: 4.848 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001164/0.4126, allocations: 0.8095 MB / 0.5722 GB, free: 4.035 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002385/0.4128, allocations: 144 kB / 0.5723 GB, free: 3.895 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006093/0.4189, allocations: 1.782 MB / 0.5741 GB, free: 2.109 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004472/0.4194, allocations: 358.9 kB / 0.5744 GB, free: 1.758 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00091/0.4203, allocations: 0.7504 MB / 0.5751 GB, free: 1.004 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008157/0.4284, allocations: 3.579 MB / 0.5786 GB, free: 13.41 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.4284, allocations: 0 / 0.5786 GB, free: 13.41 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.4284, allocations: 0 / 0.5786 GB, free: 13.41 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.374e-05/0.4285, allocations: 0 / 0.5786 GB, free: 13.41 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.003522/0.432, allocations: 1.897 MB / 0.5805 GB, free: 11.47 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.432, allocations: 12.03 kB / 0.5805 GB, free: 11.46 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.954e-05/0.4321, allocations: 30.58 kB / 0.5805 GB, free: 11.43 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002168/0.4323, allocations: 181.8 kB / 0.5807 GB, free: 11.24 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001603/0.4339, allocations: 387.3 kB / 0.5811 GB, free: 10.86 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001713/0.4356, allocations: 0.9159 MB / 0.582 GB, free: 9.918 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001802/0.4358, allocations: 201.1 kB / 0.5822 GB, free: 9.695 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000205/0.436, allocations: 116 kB / 0.5823 GB, free: 9.582 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002677/0.4387, allocations: 1.664 MB / 0.5839 GB, free: 7.844 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.822e-05/0.4387, allocations: 7.938 kB / 0.5839 GB, free: 7.836 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000134/0.4388, allocations: 44 kB / 0.5839 GB, free: 7.793 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.555e-05/0.4389, allocations: 32 kB / 0.584 GB, free: 7.762 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003311/0.4422, allocations: 2.135 MB / 0.5861 GB, free: 5.625 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008427/0.4506, allocations: 5.388 MB / 0.5913 GB, free: 48 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001354/0.452, allocations: 0.6937 MB / 0.592 GB, free: 15.33 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006007/0.4526, allocations: 332.4 kB / 0.5923 GB, free: 15 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006647/0.4592, allocations: 2.776 MB / 0.595 GB, free: 12.19 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.901e-05/0.4592, allocations: 38.56 kB / 0.5951 GB, free: 12.14 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003683/0.4596, allocations: 79.25 kB / 0.5951 GB, free: 12.07 MB / 446.1 MB Notification: Performance of pre-optimization done (n=34): time 2.735e-06/0.4596, allocations: 0 / 0.5951 GB, free: 12.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.001516/0.4611, allocations: 0.6077 MB / 0.5957 GB, free: 11.45 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.123e-05/0.4612, allocations: 115.1 kB / 0.5958 GB, free: 11.31 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0016/0.4628, allocations: 1.214 MB / 0.597 GB, free: 10.08 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.86e-05/0.4629, allocations: 33.7 kB / 0.5971 GB, free: 10.04 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006032/0.4635, allocations: 0.7945 MB / 0.5978 GB, free: 9.234 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/0.4636, allocations: 138.9 kB / 0.598 GB, free: 9.098 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003684/0.464, allocations: 274.6 kB / 0.5982 GB, free: 8.824 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.4641, allocations: 357.9 kB / 0.5986 GB, free: 8.469 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005289/0.4647, allocations: 326.5 kB / 0.5989 GB, free: 8.148 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00116/0.4658, allocations: 1.054 MB / 0.5999 GB, free: 6.734 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001804/0.4676, allocations: 1.403 MB / 0.6013 GB, free: 4.965 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.458e-05/0.4676, allocations: 8 kB / 0.6013 GB, free: 4.957 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002455/0.4701, allocations: 1.456 MB / 0.6027 GB, free: 3.488 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.329e-05/0.4701, allocations: 23.88 kB / 0.6027 GB, free: 3.465 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.638e-05/0.4702, allocations: 24 kB / 0.6027 GB, free: 3.441 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006161/0.4708, allocations: 145.6 kB / 0.6029 GB, free: 3.293 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/0.4719, allocations: 379.7 kB / 0.6033 GB, free: 2.922 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00322/0.4751, allocations: 3.874 MB / 0.607 GB, free: 14.76 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008972/0.476, allocations: 76 kB / 0.6071 GB, free: 14.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001512/0.4762, allocations: 87.98 kB / 0.6072 GB, free: 14.6 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.0005361/0.4767, allocations: 313.1 kB / 0.6075 GB, free: 14.28 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002383/0.4769, allocations: 107.3 kB / 0.6076 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00172/0.4787, allocations: 0.8595 MB / 0.6084 GB, free: 13.28 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.4787, allocations: 4 kB / 0.6084 GB, free: 13.27 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.4787, allocations: 0 / 0.6084 GB, free: 13.27 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.4787, allocations: 4 kB / 0.6084 GB, free: 13.27 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002099/0.4808, allocations: 1.231 MB / 0.6096 GB, free: 11.96 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.4808, allocations: 4 kB / 0.6096 GB, free: 11.96 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002657/0.4811, allocations: 59.89 kB / 0.6097 GB, free: 11.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007568/0.4818, allocations: 179.2 kB / 0.6099 GB, free: 11.71 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.207e-05/0.4818, allocations: 15.98 kB / 0.6099 GB, free: 11.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003042/0.4849, allocations: 3.741 MB / 0.6135 GB, free: 7.66 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.4849, allocations: 7.938 kB / 0.6135 GB, free: 7.652 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0013/0.4862, allocations: 0.8637 MB / 0.6144 GB, free: 6.738 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002099/0.4864, allocations: 95.31 kB / 0.6145 GB, free: 6.645 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001364/0.4865, allocations: 11.98 kB / 0.6145 GB, free: 6.633 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003753/0.4869, allocations: 8 kB / 0.6145 GB, free: 6.625 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.529e-05/0.487, allocations: 43.89 kB / 0.6145 GB, free: 6.582 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.265e-05/0.487, allocations: 16 kB / 0.6146 GB, free: 6.566 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001178/0.4882, allocations: 0.8888 MB / 0.6154 GB, free: 5.672 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4882, allocations: 0 / 0.6154 GB, free: 5.672 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001909/0.4901, allocations: 0.6384 MB / 0.616 GB, free: 5.031 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.002894/0.493, allocations: 2.053 MB / 0.6181 GB, free: 2.922 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001682/0.4947, allocations: 0.7694 MB / 0.6188 GB, free: 2.16 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.4947, allocations: 128 / 0.6188 GB, free: 2.16 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005365/0.4952, allocations: 381.1 kB / 0.6192 GB, free: 1.762 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001103/0.4963, allocations: 174.6 kB / 0.6193 GB, free: 1.598 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01365/0.51, allocations: 9.676 MB / 0.6288 GB, free: 6.996 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007438/0.5107, allocations: 1.055 MB / 0.6298 GB, free: 5.914 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008475/0.5116, allocations: 282 kB / 0.6301 GB, free: 5.656 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006481/0.5122, allocations: 491.2 kB / 0.6306 GB, free: 5.176 MB / 478.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5122, allocations: 0 / 0.6306 GB, free: 5.176 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06844/0.5806, allocations: 30.51 MB / 0.6604 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.22/23.8, allocations: 18.48 kB / 0.6604 GB, free: 6.828 MB / 0.4981 GB " [Timeout remaining time 636] (rm -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2.fmu > Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 26.74600784201175] Failed to read output from testmodel.py, exit status != 0: 23.99333031696733 24.014671203 23.581953881 Calling exit ...