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.001429/0.001429, allocations: 105.2 kB / 16.45 MB, free: 6.449 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.001669/0.001669, allocations: 212.9 kB / 19.43 MB, free: 3.637 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.479/1.479, allocations: 230.6 MB / 252.8 MB, free: 9.137 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.1564/0.1564, allocations: 23.85 MB / 332.7 MB, free: 12.36 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential",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.00207/0.00207, allocations: 63.91 kB / 466 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3488/0.3509, allocations: 59.82 MB / 0.5135 GB, free: 8.809 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.04425/0.3951, allocations: 29.5 MB / 0.5423 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0397/0.4348, allocations: 28.4 MB / 0.57 GB, free: 1.215 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002259/0.4371, allocations: 35.69 kB / 0.5701 GB, free: 1.18 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003073/0.4401, allocations: 0.6799 MB / 0.5707 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007194/0.4473, allocations: 1.323 MB / 0.572 GB, free: 15.37 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01704/0.4644, allocations: 4.301 MB / 0.5762 GB, free: 11.04 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004189/0.4686, allocations: 2.196 MB / 0.5784 GB, free: 8.828 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001922/0.4705, allocations: 0.9582 MB / 0.5793 GB, free: 7.836 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001746/0.4722, allocations: 1.044 MB / 0.5803 GB, free: 6.789 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002211/0.4744, allocations: 1.144 MB / 0.5814 GB, free: 5.641 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006474/0.4751, allocations: 184 kB / 0.5816 GB, free: 5.461 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01023/0.4853, allocations: 2.703 MB / 0.5842 GB, free: 2.754 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001001/0.4863, allocations: 482.5 kB / 0.5847 GB, free: 2.281 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002154/0.4885, allocations: 0.9799 MB / 0.5857 GB, free: 1.297 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01631/0.5048, allocations: 5.186 MB / 0.5907 GB, free: 12.09 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.5048, allocations: 0 / 0.5907 GB, free: 12.09 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5048, allocations: 0 / 0.5907 GB, free: 12.09 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001059/0.5049, allocations: 0 / 0.5907 GB, free: 12.09 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.006648/0.5115, allocations: 2.591 MB / 0.5933 GB, free: 9.434 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.5116, allocations: 8.031 kB / 0.5933 GB, free: 9.426 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005028/0.5121, allocations: 215.6 kB / 0.5935 GB, free: 9.203 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002738/0.5148, allocations: 0.5376 MB / 0.594 GB, free: 8.664 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002705/0.5175, allocations: 1.248 MB / 0.5952 GB, free: 7.375 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002078/0.5177, allocations: 170.5 kB / 0.5954 GB, free: 7.195 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004914/0.5182, allocations: 147.9 kB / 0.5955 GB, free: 7.051 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004772/0.523, allocations: 2.035 MB / 0.5975 GB, free: 4.945 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.527e-05/0.5231, allocations: 0 / 0.5975 GB, free: 4.945 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002846/0.5233, allocations: 68 kB / 0.5976 GB, free: 4.879 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.798e-05/0.5234, allocations: 36 kB / 0.5976 GB, free: 4.844 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005477/0.5289, allocations: 2.768 MB / 0.6003 GB, free: 2.066 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01394/0.5428, allocations: 6.672 MB / 0.6068 GB, free: 11.2 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002293/0.5451, allocations: 1.002 MB / 0.6078 GB, free: 10.16 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00115/0.5462, allocations: 0.5208 MB / 0.6083 GB, free: 9.637 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01457/0.5608, allocations: 8.434 MB / 0.6165 GB, free: 168 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.225e-05/0.5609, allocations: 42.94 kB / 0.6166 GB, free: 116 kB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005597/0.5614, allocations: 98.97 kB / 0.6167 GB, free: 16 kB / 462.1 MB Notification: Performance of pre-optimization done (n=50): time 3.968e-06/0.5614, allocations: 4 kB / 0.6167 GB, free: 12 kB / 462.1 MB Notification: Performance of matching and sorting (n=50): time 0.002402/0.5638, allocations: 1.006 MB / 0.6177 GB, free: 14.96 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.5639, allocations: 115.1 kB / 0.6178 GB, free: 14.82 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002001/0.5659, allocations: 1.237 MB / 0.619 GB, free: 13.57 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.364e-05/0.566, allocations: 33.7 kB / 0.619 GB, free: 13.54 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008256/0.5668, allocations: 0.9973 MB / 0.62 GB, free: 12.53 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002113/0.5671, allocations: 198.5 kB / 0.6202 GB, free: 12.34 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004893/0.5675, allocations: 351.5 kB / 0.6205 GB, free: 11.98 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.5677, allocations: 305.1 kB / 0.6208 GB, free: 11.68 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000637/0.5683, allocations: 307.8 kB / 0.6211 GB, free: 11.38 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001605/0.5699, allocations: 1.324 MB / 0.6224 GB, free: 9.551 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002565/0.5725, allocations: 1.809 MB / 0.6242 GB, free: 7.23 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-05/0.5725, allocations: 12 kB / 0.6242 GB, free: 7.219 MB / 478.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003528/0.576, allocations: 1.702 MB / 0.6258 GB, free: 5.504 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.548e-05/0.5761, allocations: 20 kB / 0.6259 GB, free: 5.484 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.047e-05/0.5762, allocations: 36 kB / 0.6259 GB, free: 5.449 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007774/0.5769, allocations: 162.3 kB / 0.626 GB, free: 5.285 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001486/0.5784, allocations: 487.1 kB / 0.6265 GB, free: 4.809 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003663/0.5821, allocations: 4.081 MB / 0.6305 GB, free: 400 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/0.5834, allocations: 96.03 kB / 0.6306 GB, free: 304 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002734/0.5837, allocations: 128 kB / 0.6307 GB, free: 176 kB / 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.0007544/0.5844, allocations: 376.9 kB / 0.6311 GB, free: 15.79 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003981/0.5848, allocations: 155 kB / 0.6312 GB, free: 15.64 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003042/0.5879, allocations: 1.377 MB / 0.6326 GB, free: 14.18 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.5879, allocations: 4 kB / 0.6326 GB, free: 14.18 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.5879, allocations: 4 kB / 0.6326 GB, free: 14.17 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.5879, allocations: 0 / 0.6326 GB, free: 14.17 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003206/0.5911, allocations: 1.527 MB / 0.6341 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.647e-06/0.5911, allocations: 4 kB / 0.6341 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003438/0.5915, allocations: 75.83 kB / 0.6341 GB, free: 12.47 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008028/0.5923, allocations: 179.2 kB / 0.6343 GB, free: 12.28 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.047e-05/0.5923, allocations: 12 kB / 0.6343 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003325/0.5956, allocations: 3.959 MB / 0.6382 GB, free: 7.965 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.5956, allocations: 0 / 0.6382 GB, free: 7.965 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001796/0.5974, allocations: 0.9931 MB / 0.6391 GB, free: 6.91 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004341/0.5979, allocations: 208.2 kB / 0.6393 GB, free: 6.688 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002996/0.5982, allocations: 11.94 kB / 0.6394 GB, free: 6.676 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005541/0.5987, allocations: 8 kB / 0.6394 GB, free: 6.668 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.536e-05/0.5988, allocations: 47.95 kB / 0.6394 GB, free: 6.621 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.231e-05/0.5989, allocations: 16 kB / 0.6394 GB, free: 6.605 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001656/0.6005, allocations: 0.9709 MB / 0.6404 GB, free: 5.641 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6005, allocations: 3.938 kB / 0.6404 GB, free: 5.637 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003094/0.6036, allocations: 0.8602 MB / 0.6412 GB, free: 4.773 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.004259/0.6079, allocations: 2.491 MB / 0.6437 GB, free: 2.211 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0023/0.6102, allocations: 0.8742 MB / 0.6445 GB, free: 1.344 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.378e-06/0.6102, allocations: 4 kB / 0.6445 GB, free: 1.34 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006691/0.6108, allocations: 402.5 kB / 0.6449 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001865/0.6127, allocations: 237.7 kB / 0.6451 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02184/0.6346, allocations: 11.87 MB / 0.6567 GB, free: 3.605 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001174/0.6357, allocations: 1.188 MB / 0.6579 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00138/0.6371, allocations: 407.8 kB / 0.6583 GB, free: 2 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001048/0.6382, allocations: 0.6741 MB / 0.6589 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of SimCode: time 1.502e-06/0.6382, allocations: 0 / 0.6589 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.102/0.7402, allocations: 40.3 MB / 0.6983 GB, free: 9.223 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.03/15.77, allocations: 8.047 kB / 0.6983 GB, free: 9.215 MB / 0.545 GB " [Timeout remaining time 644] (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: 18.689546250971034] Failed to read output from testmodel.py, exit status != 0: 15.894898034865037 15.924366154 15.413863543 Calling exit ...