Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.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.001304/0.001304, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.00169/0.00169, allocations: 218.7 kB / 23.03 MB, free: 4.922 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.456/1.456, allocations: 230.6 MB / 256.8 MB, free: 7.773 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.1362/0.1362, allocations: 23.88 MB / 337.1 MB, free: 11.05 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.StandardLeadAcidPotential,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential",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.002114/0.002114, allocations: 63.91 kB / 471.9 MB, free: 7.504 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3129, allocations: 59.86 MB / 0.5193 GB, free: 9.539 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.StandardLeadAcidPotential): time 0.07143/0.3844, allocations: 28.31 MB / 0.5469 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03472/0.4191, allocations: 24.83 MB / 0.5712 GB, free: 4.758 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001558/0.4207, allocations: 35.69 kB / 0.5712 GB, free: 4.723 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002103/0.4228, allocations: 0.6126 MB / 0.5718 GB, free: 4.105 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004359/0.4271, allocations: 1.28 MB / 0.5731 GB, free: 2.816 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01284/0.44, allocations: 4.348 MB / 0.5773 GB, free: 14.44 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003837/0.4438, allocations: 2.184 MB / 0.5795 GB, free: 12.25 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001735/0.4455, allocations: 0.9273 MB / 0.5804 GB, free: 11.29 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001728/0.4473, allocations: 1.048 MB / 0.5814 GB, free: 10.23 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002019/0.4493, allocations: 1.14 MB / 0.5825 GB, free: 9.09 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000651/0.4499, allocations: 184 kB / 0.5827 GB, free: 8.91 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007127/0.4571, allocations: 2.605 MB / 0.5852 GB, free: 6.301 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008239/0.4579, allocations: 486.5 kB / 0.5857 GB, free: 5.824 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001519/0.4594, allocations: 0.8208 MB / 0.5865 GB, free: 5 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01193/0.4713, allocations: 5.163 MB / 0.5915 GB, free: 15.82 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.4713, allocations: 0 / 0.5915 GB, free: 15.82 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4713, allocations: 0 / 0.5915 GB, free: 15.82 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.287e-05/0.4714, allocations: 0 / 0.5915 GB, free: 15.82 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 376 * Number of variables: 376 Notification: Performance of Generate backend data structure: time 0.005538/0.477, allocations: 2.516 MB / 0.594 GB, free: 13.25 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.477, allocations: 8.031 kB / 0.594 GB, free: 13.25 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.028e-05/0.4771, allocations: 43.14 kB / 0.594 GB, free: 13.2 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004245/0.4775, allocations: 215.6 kB / 0.5942 GB, free: 12.98 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002724/0.4802, allocations: 0.5338 MB / 0.5948 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002775/0.483, allocations: 1.175 MB / 0.5959 GB, free: 11.24 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002476/0.4832, allocations: 225.7 kB / 0.5961 GB, free: 11 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005054/0.4837, allocations: 140 kB / 0.5963 GB, free: 10.86 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004448/0.4882, allocations: 2.035 MB / 0.5982 GB, free: 8.754 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.783e-05/0.4882, allocations: 7.938 kB / 0.5982 GB, free: 8.746 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002576/0.4885, allocations: 56 kB / 0.5983 GB, free: 8.691 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.361e-05/0.4885, allocations: 36 kB / 0.5983 GB, free: 8.656 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004995/0.4935, allocations: 2.776 MB / 0.601 GB, free: 5.871 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01262/0.5061, allocations: 6.001 MB / 0.6069 GB, free: 15.74 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002156/0.5083, allocations: 0.998 MB / 0.6079 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001075/0.5094, allocations: 0.5091 MB / 0.6084 GB, free: 14.19 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0113/0.5207, allocations: 4.188 MB / 0.6125 GB, free: 9.977 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.804e-05/0.5207, allocations: 46.94 kB / 0.6125 GB, free: 9.922 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005253/0.5212, allocations: 107 kB / 0.6126 GB, free: 9.816 MB / 462.1 MB Notification: Performance of pre-optimization done (n=50): time 4.679e-06/0.5213, allocations: 0 / 0.6126 GB, free: 9.816 MB / 462.1 MB Notification: Performance of matching and sorting (n=50): time 0.0021/0.5234, allocations: 0.855 MB / 0.6134 GB, free: 8.953 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.789e-05/0.5234, allocations: 111.2 kB / 0.6136 GB, free: 8.82 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001828/0.5252, allocations: 1.237 MB / 0.6148 GB, free: 7.574 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.721e-05/0.5253, allocations: 37.95 kB / 0.6148 GB, free: 7.531 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007824/0.5261, allocations: 1.005 MB / 0.6158 GB, free: 6.516 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002138/0.5263, allocations: 198.5 kB / 0.616 GB, free: 6.32 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004837/0.5268, allocations: 343.3 kB / 0.6163 GB, free: 5.977 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.5269, allocations: 301.1 kB / 0.6166 GB, free: 5.68 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006034/0.5275, allocations: 311.8 kB / 0.6169 GB, free: 5.375 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001475/0.529, allocations: 1.32 MB / 0.6182 GB, free: 3.547 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002432/0.5314, allocations: 1.817 MB / 0.6199 GB, free: 1.219 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.018e-05/0.5315, allocations: 8 kB / 0.62 GB, free: 1.211 MB / 462.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003353/0.5348, allocations: 1.699 MB / 0.6216 GB, free: 15.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.34e-05/0.5349, allocations: 24.22 kB / 0.6216 GB, free: 15.47 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-05/0.5349, allocations: 36 kB / 0.6217 GB, free: 15.44 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007403/0.5357, allocations: 165.5 kB / 0.6218 GB, free: 15.27 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001507/0.5372, allocations: 479.2 kB / 0.6223 GB, free: 14.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003478/0.5406, allocations: 3.878 MB / 0.6261 GB, free: 10.64 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/0.5419, allocations: 92.11 kB / 0.6262 GB, free: 10.55 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002971/0.5422, allocations: 131.8 kB / 0.6263 GB, free: 10.42 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 166 * 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 (197): * Single equations (assignments): 193 * 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.0007244/0.543, allocations: 384.3 kB / 0.6266 GB, free: 10.04 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003476/0.5433, allocations: 147 kB / 0.6268 GB, free: 9.895 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002807/0.5461, allocations: 1.372 MB / 0.6281 GB, free: 8.438 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.5461, allocations: 0 / 0.6281 GB, free: 8.438 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.5461, allocations: 4 kB / 0.6281 GB, free: 8.434 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.5461, allocations: 0 / 0.6281 GB, free: 8.434 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002954/0.5491, allocations: 1.421 MB / 0.6295 GB, free: 6.918 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.428e-06/0.5491, allocations: 11.88 kB / 0.6295 GB, free: 6.906 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000339/0.5494, allocations: 75.94 kB / 0.6296 GB, free: 6.832 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007833/0.5502, allocations: 179.3 kB / 0.6298 GB, free: 6.645 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.129e-05/0.5502, allocations: 15.98 kB / 0.6298 GB, free: 6.629 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003138/0.5534, allocations: 3.741 MB / 0.6334 GB, free: 2.594 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.5534, allocations: 8.094 kB / 0.6335 GB, free: 2.586 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00166/0.5551, allocations: 0.9929 MB / 0.6344 GB, free: 1.531 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000378/0.5554, allocations: 127 kB / 0.6345 GB, free: 1.406 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003065/0.5557, allocations: 11.94 kB / 0.6346 GB, free: 1.395 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005291/0.5563, allocations: 12 kB / 0.6346 GB, free: 1.383 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.401e-05/0.5563, allocations: 43.94 kB / 0.6346 GB, free: 1.34 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.233e-05/0.5564, allocations: 20 kB / 0.6346 GB, free: 1.32 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001573/0.558, allocations: 0.967 MB / 0.6356 GB, free: 368 kB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.558, allocations: 0 / 0.6356 GB, free: 368 kB / 478.1 MB Notification: Performance of remove unused functions: time 0.002878/0.5608, allocations: 0.8604 MB / 0.6364 GB, free: 15.49 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (anode.temperature,cathode.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 (31): * Single equations (assignments): 27 * 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.004265/0.5651, allocations: 2.499 MB / 0.6389 GB, free: 12.93 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002163/0.5673, allocations: 0.8733 MB / 0.6397 GB, free: 12.06 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.5673, allocations: 0 / 0.6397 GB, free: 12.06 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006458/0.5679, allocations: 399.5 kB / 0.6401 GB, free: 11.64 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001721/0.5696, allocations: 247.9 kB / 0.6403 GB, free: 11.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01853/0.5882, allocations: 11.88 MB / 0.6519 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007889/0.589, allocations: 0.5984 MB / 0.6525 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001471/0.5904, allocations: 410.2 kB / 0.6529 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009637/0.5914, allocations: 0.6776 MB / 0.6536 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of SimCode: time 1.763e-06/0.5914, allocations: 0 / 0.6536 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0832/0.6746, allocations: 41.58 MB / 0.6942 GB, free: 3.367 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.16/16.84, allocations: 11.86 kB / 0.6942 GB, free: 3.355 MB / 0.5294 GB " [Timeout remaining time 643] (rm -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential_fmu --startTime=0 --stopTime=100 --stepSize=0.04 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential.fmu > Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.79788590199314] Failed to read output from testmodel.py, exit status != 0: 17.044311648001894 17.07387417 16.596536514 Calling exit ...