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.001357/0.001357, allocations: 114.8 kB / 17.16 MB, free: 5.895 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.001434/0.001434, allocations: 210.3 kB / 20.13 MB, free: 2.949 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.49/1.49, allocations: 230.6 MB / 253.5 MB, free: 15.13 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.1373/0.1373, allocations: 23.89 MB / 333.4 MB, free: 1.191 MB / 254.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.001929/0.001929, allocations: 63.62 kB / 466.7 MB, free: 30.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09452/0.09645, allocations: 59.84 MB / 0.5142 GB, free: 12.93 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.0402/0.1367, allocations: 27.57 MB / 0.5412 GB, free: 1.395 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02273/0.1594, allocations: 18.28 MB / 0.559 GB, free: 15.05 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001085/0.1605, allocations: 27.75 kB / 0.559 GB, free: 15.02 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001273/0.1617, allocations: 476.5 kB / 0.5595 GB, free: 14.55 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00228/0.164, allocations: 0.834 MB / 0.5603 GB, free: 13.71 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00753/0.1716, allocations: 2.818 MB / 0.5631 GB, free: 10.88 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003055/0.1746, allocations: 1.637 MB / 0.5647 GB, free: 9.23 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00135/0.176, allocations: 0.7619 MB / 0.5654 GB, free: 8.445 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001212/0.1772, allocations: 0.7245 MB / 0.5661 GB, free: 7.719 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0013/0.1785, allocations: 0.8133 MB / 0.5669 GB, free: 6.902 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002244/0.1787, allocations: 144 kB / 0.567 GB, free: 6.762 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006796/0.1855, allocations: 1.775 MB / 0.5688 GB, free: 4.984 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005461/0.186, allocations: 358.9 kB / 0.5691 GB, free: 4.633 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001025/0.1871, allocations: 0.7427 MB / 0.5698 GB, free: 3.887 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008785/0.1958, allocations: 3.595 MB / 0.5734 GB, free: 284 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.1959, allocations: 0 / 0.5734 GB, free: 284 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.1959, allocations: 0 / 0.5734 GB, free: 284 kB / 430.1 MB Notification: Performance of Transformations before backend: time 3.972e-05/0.1959, allocations: 4 kB / 0.5734 GB, free: 280 kB / 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.00377/0.1997, allocations: 1.961 MB / 0.5753 GB, free: 14.25 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.1997, allocations: 15.97 kB / 0.5753 GB, free: 14.23 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.057e-05/0.1998, allocations: 38.56 kB / 0.5753 GB, free: 14.2 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002135/0.2, allocations: 177.8 kB / 0.5755 GB, free: 14.01 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001646/0.2016, allocations: 395.3 kB / 0.5759 GB, free: 13.62 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001733/0.2034, allocations: 0.9776 MB / 0.5768 GB, free: 12.6 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001647/0.2035, allocations: 153.7 kB / 0.577 GB, free: 12.44 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002178/0.2038, allocations: 120 kB / 0.5771 GB, free: 12.32 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002686/0.2064, allocations: 1.653 MB / 0.5787 GB, free: 10.59 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.439e-05/0.2065, allocations: 0 / 0.5787 GB, free: 10.59 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001368/0.2066, allocations: 48 kB / 0.5787 GB, free: 10.55 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.709e-05/0.2066, allocations: 31.94 kB / 0.5788 GB, free: 10.52 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003294/0.2099, allocations: 2.112 MB / 0.5808 GB, free: 8.402 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008291/0.2182, allocations: 5.441 MB / 0.5861 GB, free: 2.77 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001401/0.2196, allocations: 0.6893 MB / 0.5868 GB, free: 2.055 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006236/0.2202, allocations: 344.3 kB / 0.5872 GB, free: 1.711 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2304/0.4506, allocations: 5.051 MB / 0.5921 GB, free: 62.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.4506, allocations: 38.89 kB / 0.5921 GB, free: 62.71 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003277/0.451, allocations: 77.83 kB / 0.5922 GB, free: 62.71 MB / 446.1 MB Notification: Performance of pre-optimization done (n=34): time 3.757e-06/0.451, allocations: 1.797 kB / 0.5922 GB, free: 62.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.001513/0.4525, allocations: 0.7505 MB / 0.5929 GB, free: 62.48 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/0.4525, allocations: 110.9 kB / 0.593 GB, free: 62.35 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001644/0.4542, allocations: 1.208 MB / 0.5942 GB, free: 62.13 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.365e-05/0.4542, allocations: 31.89 kB / 0.5942 GB, free: 62.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003843/0.4546, allocations: 0.7968 MB / 0.595 GB, free: 61.54 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.203e-05/0.4547, allocations: 146.4 kB / 0.5952 GB, free: 61.45 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003351/0.455, allocations: 269.2 kB / 0.5954 GB, free: 61.32 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.699e-05/0.4551, allocations: 355.1 kB / 0.5958 GB, free: 61 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004941/0.4556, allocations: 320.1 kB / 0.5961 GB, free: 60.89 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000735/0.4563, allocations: 1.045 MB / 0.5971 GB, free: 59.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00126/0.4576, allocations: 1.396 MB / 0.5984 GB, free: 58.52 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-05/0.4576, allocations: 8.312 kB / 0.5985 GB, free: 58.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002278/0.4599, allocations: 1.442 MB / 0.5999 GB, free: 57.94 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.456e-05/0.4599, allocations: 16.03 kB / 0.5999 GB, free: 57.94 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.441e-05/0.4599, allocations: 26.22 kB / 0.5999 GB, free: 57.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006524/0.4606, allocations: 150.4 kB / 0.6 GB, free: 57.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/0.4617, allocations: 379.3 kB / 0.6004 GB, free: 57.87 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002131/0.4639, allocations: 4.074 MB / 0.6044 GB, free: 53.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008487/0.4647, allocations: 74.67 kB / 0.6045 GB, free: 53.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/0.4649, allocations: 97.73 kB / 0.6046 GB, free: 53.76 MB / 446.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.0004034/0.4653, allocations: 314.1 kB / 0.6049 GB, free: 53.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001953/0.4655, allocations: 108.8 kB / 0.605 GB, free: 53.48 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001603/0.4671, allocations: 0.8544 MB / 0.6058 GB, free: 53.09 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.4671, allocations: 3.688 kB / 0.6058 GB, free: 53.09 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.4671, allocations: 2.359 kB / 0.6058 GB, free: 53.09 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.4671, allocations: 1.266 kB / 0.6058 GB, free: 53.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001914/0.469, allocations: 1.26 MB / 0.607 GB, free: 52.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.469, allocations: 2.25 kB / 0.607 GB, free: 52.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002597/0.4693, allocations: 63.27 kB / 0.6071 GB, free: 52.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000728/0.47, allocations: 183.1 kB / 0.6073 GB, free: 52.33 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.972e-05/0.47, allocations: 18.23 kB / 0.6073 GB, free: 52.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001867/0.4719, allocations: 3.953 MB / 0.6111 GB, free: 48.38 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.4719, allocations: 5.656 kB / 0.6111 GB, free: 48.38 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.473, allocations: 0.8568 MB / 0.612 GB, free: 47.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001855/0.4731, allocations: 178.1 kB / 0.6122 GB, free: 47.64 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001344/0.4733, allocations: 8.859 kB / 0.6122 GB, free: 47.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003775/0.4736, allocations: 12.98 kB / 0.6122 GB, free: 47.63 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.876e-05/0.4737, allocations: 39.73 kB / 0.6122 GB, free: 47.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.134e-05/0.4738, allocations: 19.48 kB / 0.6122 GB, free: 47.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00104/0.4748, allocations: 0.8832 MB / 0.6131 GB, free: 47.24 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4748, allocations: 0 / 0.6131 GB, free: 47.24 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001915/0.4767, allocations: 0.6306 MB / 0.6137 GB, free: 47.14 MB / 446.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.002339/0.4791, allocations: 2.047 MB / 0.6157 GB, free: 45.92 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001546/0.4806, allocations: 0.7652 MB / 0.6165 GB, free: 45.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.4806, allocations: 0 / 0.6165 GB, free: 45.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004485/0.4811, allocations: 384.5 kB / 0.6168 GB, free: 45.41 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001/0.4821, allocations: 167.6 kB / 0.617 GB, free: 45.35 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009535/0.4916, allocations: 9.64 MB / 0.6264 GB, free: 39.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003914/0.492, allocations: 1.053 MB / 0.6274 GB, free: 38.39 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008301/0.4928, allocations: 281.2 kB / 0.6277 GB, free: 38.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004685/0.4933, allocations: 0.4884 MB / 0.6282 GB, free: 37.96 MB / 446.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4933, allocations: 0 / 0.6282 GB, free: 37.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05154/0.5448, allocations: 29.73 MB / 0.6572 GB, free: 10.72 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.51/23.05, allocations: 11.8 kB / 0.6572 GB, free: 10.71 MB / 446.1 MB " [Timeout remaining time 637] (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.0307330940268] Failed to read output from testmodel.py, exit status != 0: 23.215820227982476 23.235416611 23.034828732 Calling exit ...