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.001688/0.001688, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002266/0.002266, allocations: 216.8 kB / 22.25 MB, free: 4.855 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.495/1.495, allocations: 230.6 MB / 256 MB, free: 7.797 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.1448/0.1448, allocations: 23.89 MB / 336.3 MB, free: 10.96 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.002212/0.002212, allocations: 75.89 kB / 471.1 MB, free: 7.512 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3412, allocations: 59.85 MB / 0.5185 GB, free: 9.57 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.07699/0.4181, allocations: 28.7 MB / 0.5466 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0345/0.4526, allocations: 24.85 MB / 0.5708 GB, free: 4.332 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001709/0.4544, allocations: 35.69 kB / 0.5709 GB, free: 4.297 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001878/0.4562, allocations: 0.6048 MB / 0.5715 GB, free: 3.688 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003936/0.4602, allocations: 1.276 MB / 0.5727 GB, free: 2.402 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0135/0.4737, allocations: 4.352 MB / 0.577 GB, free: 14.02 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003942/0.4776, allocations: 2.188 MB / 0.5791 GB, free: 11.83 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001411/0.479, allocations: 0.9195 MB / 0.58 GB, free: 10.87 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001388/0.4804, allocations: 1.052 MB / 0.581 GB, free: 9.816 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001711/0.4821, allocations: 1.047 MB / 0.582 GB, free: 8.766 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000335/0.4825, allocations: 180 kB / 0.5822 GB, free: 8.59 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00862/0.4911, allocations: 2.535 MB / 0.5847 GB, free: 6.051 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009058/0.492, allocations: 478.5 kB / 0.5851 GB, free: 5.582 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001444/0.4934, allocations: 0.8285 MB / 0.5859 GB, free: 4.75 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01267/0.5061, allocations: 5.155 MB / 0.591 GB, free: 15.57 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.744e-06/0.5061, allocations: 0 / 0.591 GB, free: 15.57 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.5061, allocations: 4 kB / 0.591 GB, free: 15.57 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.004e-05/0.5062, allocations: 0 / 0.591 GB, free: 15.57 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.004698/0.5109, allocations: 2.526 MB / 0.5935 GB, free: 13 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.5109, allocations: 8.031 kB / 0.5935 GB, free: 12.99 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002697/0.5112, allocations: 215.6 kB / 0.5937 GB, free: 12.77 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002271/0.5134, allocations: 0.5298 MB / 0.5942 GB, free: 12.24 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002423/0.5159, allocations: 1.175 MB / 0.5953 GB, free: 11.04 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002155/0.5161, allocations: 217.9 kB / 0.5955 GB, free: 10.8 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002758/0.5164, allocations: 144 kB / 0.5957 GB, free: 10.66 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003606/0.52, allocations: 2.035 MB / 0.5977 GB, free: 8.551 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.929e-05/0.52, allocations: 11.94 kB / 0.5977 GB, free: 8.539 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001693/0.5202, allocations: 60 kB / 0.5977 GB, free: 8.48 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.392e-05/0.5202, allocations: 36 kB / 0.5978 GB, free: 8.445 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004387/0.5246, allocations: 2.741 MB / 0.6004 GB, free: 5.695 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01087/0.5355, allocations: 5.99 MB / 0.6063 GB, free: 15.57 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001932/0.5374, allocations: 1.001 MB / 0.6073 GB, free: 14.55 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009459/0.5383, allocations: 0.5091 MB / 0.6078 GB, free: 14.03 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01049/0.5488, allocations: 4.188 MB / 0.6119 GB, free: 9.816 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.14e-05/0.5489, allocations: 39 kB / 0.6119 GB, free: 9.77 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004106/0.5493, allocations: 103 kB / 0.612 GB, free: 9.668 MB / 462.1 MB Notification: Performance of pre-optimization done (n=50): time 3.296e-06/0.5493, allocations: 0 / 0.612 GB, free: 9.668 MB / 462.1 MB Notification: Performance of matching and sorting (n=50): time 0.001942/0.5512, allocations: 0.8631 MB / 0.6128 GB, free: 8.797 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.992e-05/0.5513, allocations: 115.2 kB / 0.6129 GB, free: 8.66 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001587/0.5529, allocations: 1.291 MB / 0.6142 GB, free: 7.359 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.583e-05/0.553, allocations: 33.7 kB / 0.6142 GB, free: 7.32 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007468/0.5537, allocations: 0.9936 MB / 0.6152 GB, free: 6.316 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001762/0.5539, allocations: 210.4 kB / 0.6154 GB, free: 6.109 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004059/0.5543, allocations: 339.3 kB / 0.6157 GB, free: 5.77 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.5544, allocations: 301.1 kB / 0.616 GB, free: 5.473 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005571/0.555, allocations: 311.8 kB / 0.6163 GB, free: 5.168 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001396/0.5564, allocations: 1.316 MB / 0.6176 GB, free: 3.344 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002248/0.5586, allocations: 1.817 MB / 0.6194 GB, free: 1.016 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.761e-05/0.5586, allocations: 12 kB / 0.6194 GB, free: 1.004 MB / 462.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002956/0.5616, allocations: 1.699 MB / 0.621 GB, free: 15.29 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.184e-05/0.5616, allocations: 20 kB / 0.6211 GB, free: 15.27 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-05/0.5617, allocations: 36 kB / 0.6211 GB, free: 15.24 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000627/0.5623, allocations: 165.6 kB / 0.6213 GB, free: 15.07 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/0.5636, allocations: 487.5 kB / 0.6217 GB, free: 14.59 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003313/0.5669, allocations: 3.877 MB / 0.6255 GB, free: 10.43 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001061/0.568, allocations: 92.17 kB / 0.6256 GB, free: 10.34 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001889/0.5682, allocations: 128 kB / 0.6257 GB, free: 10.21 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.0006592/0.5688, allocations: 376.9 kB / 0.6261 GB, free: 9.836 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002866/0.5691, allocations: 147 kB / 0.6262 GB, free: 9.691 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002815/0.5719, allocations: 1.387 MB / 0.6276 GB, free: 8.219 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.5719, allocations: 8 kB / 0.6276 GB, free: 8.211 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.5719, allocations: 4 kB / 0.6276 GB, free: 8.207 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.572, allocations: 0 / 0.6276 GB, free: 8.207 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002622/0.5746, allocations: 1.425 MB / 0.629 GB, free: 6.688 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.5746, allocations: 8 kB / 0.629 GB, free: 6.68 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003171/0.5749, allocations: 79.81 kB / 0.6291 GB, free: 6.602 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007463/0.5756, allocations: 178.9 kB / 0.6292 GB, free: 6.414 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.493e-05/0.5757, allocations: 20.05 kB / 0.6293 GB, free: 6.395 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003203/0.5789, allocations: 3.729 MB / 0.6329 GB, free: 2.371 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/0.5789, allocations: 7.938 kB / 0.6329 GB, free: 2.363 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001535/0.5804, allocations: 0.9921 MB / 0.6339 GB, free: 1.312 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003296/0.5808, allocations: 139 kB / 0.634 GB, free: 1.176 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000176/0.5809, allocations: 11.95 kB / 0.634 GB, free: 1.164 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004492/0.5814, allocations: 12 kB / 0.634 GB, free: 1.152 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.5815, allocations: 43.91 kB / 0.6341 GB, free: 1.109 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-05/0.5815, allocations: 23.98 kB / 0.6341 GB, free: 1.086 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001438/0.583, allocations: 0.9631 MB / 0.635 GB, free: 132 kB / 478.1 MB Notification: Performance of sort global known variables: time 7e-08/0.583, allocations: 0 / 0.635 GB, free: 132 kB / 478.1 MB Notification: Performance of remove unused functions: time 0.002781/0.5858, allocations: 0.8682 MB / 0.6359 GB, free: 15.25 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.003728/0.5895, allocations: 2.492 MB / 0.6383 GB, free: 12.69 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001949/0.5914, allocations: 0.8787 MB / 0.6392 GB, free: 11.82 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.233e-06/0.5914, allocations: 4 kB / 0.6392 GB, free: 11.82 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005723/0.592, allocations: 393.4 kB / 0.6395 GB, free: 11.41 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/0.5933, allocations: 236.8 kB / 0.6398 GB, free: 11.18 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01635/0.6097, allocations: 11.88 MB / 0.6514 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000651/0.6103, allocations: 0.6023 MB / 0.652 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001235/0.6116, allocations: 410.2 kB / 0.6524 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008801/0.6124, allocations: 0.6779 MB / 0.653 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of SimCode: time 1.222e-06/0.6124, allocations: 0 / 0.653 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0933/0.7057, allocations: 41.54 MB / 0.6936 GB, free: 3.125 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.72/15.43, allocations: 11.56 kB / 0.6936 GB, free: 3.117 MB / 0.5294 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 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.32259691413492] Failed to read output from testmodel.py, exit status != 0: 15.569847656879574 15.586804605 15.077227217 Calling exit ...