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.001358/0.001358, 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.001493/0.001493, allocations: 210.2 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.502/1.502, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.139/0.139, allocations: 23.86 MB / 333.4 MB, free: 1.207 MB / 254.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.002021/0.002021, allocations: 69.06 kB / 466.7 MB, free: 30.81 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1105, allocations: 59.83 MB / 0.5142 GB, free: 12.96 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.04432/0.1548, allocations: 29.31 MB / 0.5428 GB, free: 15.69 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.05059/0.2054, allocations: 28.41 MB / 0.5705 GB, free: 3.172 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001646/0.207, allocations: 31.69 kB / 0.5706 GB, free: 3.141 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002676/0.2097, allocations: 0.6788 MB / 0.5712 GB, free: 2.457 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00597/0.2157, allocations: 1.319 MB / 0.5725 GB, free: 1.129 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01919/0.2349, allocations: 4.297 MB / 0.5767 GB, free: 12.8 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.005273/0.2401, allocations: 2.192 MB / 0.5789 GB, free: 10.6 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002072/0.2422, allocations: 0.9582 MB / 0.5798 GB, free: 9.605 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002014/0.2442, allocations: 1.04 MB / 0.5808 GB, free: 8.562 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002622/0.2468, allocations: 1.156 MB / 0.5819 GB, free: 7.402 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005947/0.2474, allocations: 176 kB / 0.5821 GB, free: 7.23 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01219/0.2596, allocations: 2.699 MB / 0.5847 GB, free: 4.527 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001402/0.261, allocations: 486.5 kB / 0.5852 GB, free: 4.051 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002175/0.2632, allocations: 0.9837 MB / 0.5862 GB, free: 3.062 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3193/0.5825, allocations: 5.176 MB / 0.5912 GB, free: 32.61 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.698e-06/0.5825, allocations: 1.562 kB / 0.5912 GB, free: 32.61 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.5825, allocations: 0 / 0.5912 GB, free: 32.61 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001055/0.5826, allocations: 2.156 kB / 0.5912 GB, free: 32.61 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.00556/0.5882, allocations: 2.603 MB / 0.5938 GB, free: 31.3 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.5882, allocations: 9.438 kB / 0.5938 GB, free: 31.3 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.397e-05/0.5883, allocations: 39.27 kB / 0.5938 GB, free: 31.3 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002656/0.5886, allocations: 215.9 kB / 0.594 GB, free: 31.25 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002521/0.5911, allocations: 0.5216 MB / 0.5945 GB, free: 31.14 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002439/0.5935, allocations: 1.253 MB / 0.5958 GB, free: 30.76 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001569/0.5937, allocations: 170.2 kB / 0.5959 GB, free: 30.69 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002973/0.594, allocations: 150.2 kB / 0.5961 GB, free: 30.69 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003794/0.5978, allocations: 2.025 MB / 0.598 GB, free: 30.48 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.166e-05/0.5978, allocations: 3.391 kB / 0.598 GB, free: 30.48 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001895/0.598, allocations: 62 kB / 0.5981 GB, free: 30.48 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.146e-05/0.598, allocations: 37.69 kB / 0.5981 GB, free: 30.48 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004735/0.6028, allocations: 2.779 MB / 0.6009 GB, free: 30.46 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01006/0.6128, allocations: 6.672 MB / 0.6074 GB, free: 28.15 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001846/0.6147, allocations: 0.9934 MB / 0.6083 GB, free: 28.07 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008429/0.6155, allocations: 0.5134 MB / 0.6088 GB, free: 28.04 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01001/0.6255, allocations: 8.441 MB / 0.6171 GB, free: 22.12 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.6256, allocations: 41.31 kB / 0.6171 GB, free: 22.07 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004773/0.626, allocations: 106.3 kB / 0.6172 GB, free: 22 MB / 446.1 MB Notification: Performance of pre-optimization done (n=50): time 2.004e-06/0.626, allocations: 0.6562 kB / 0.6172 GB, free: 22 MB / 446.1 MB Notification: Performance of matching and sorting (n=50): time 0.001709/0.6278, allocations: 0.9991 MB / 0.6182 GB, free: 21.48 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.374e-05/0.6278, allocations: 110.7 kB / 0.6183 GB, free: 21.36 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/0.6291, allocations: 1.246 MB / 0.6195 GB, free: 20.86 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.281e-05/0.6291, allocations: 35.7 kB / 0.6196 GB, free: 20.82 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004231/0.6296, allocations: 0.9925 MB / 0.6205 GB, free: 20.02 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.6297, allocations: 208.3 kB / 0.6207 GB, free: 19.88 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003491/0.63, allocations: 347.8 kB / 0.6211 GB, free: 19.72 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.657e-05/0.6301, allocations: 301.1 kB / 0.6213 GB, free: 19.42 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004727/0.6305, allocations: 307 kB / 0.6216 GB, free: 19.33 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007457/0.6313, allocations: 1.324 MB / 0.6229 GB, free: 17.87 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001379/0.6326, allocations: 1.816 MB / 0.6247 GB, free: 16.28 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.339e-05/0.6327, allocations: 11.61 kB / 0.6247 GB, free: 16.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002214/0.6349, allocations: 1.693 MB / 0.6264 GB, free: 15.82 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.6349, allocations: 22.97 kB / 0.6264 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.71e-05/0.6349, allocations: 34.75 kB / 0.6264 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005798/0.6355, allocations: 163.5 kB / 0.6266 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.6367, allocations: 482.3 kB / 0.627 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001978/0.6387, allocations: 4.089 MB / 0.631 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001217/0.6399, allocations: 94.69 kB / 0.6311 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000168/0.6401, allocations: 129.7 kB / 0.6312 GB, free: 11.61 MB / 446.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.0006016/0.6407, allocations: 379.4 kB / 0.6316 GB, free: 11.36 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002208/0.6409, allocations: 145.4 kB / 0.6317 GB, free: 11.28 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002104/0.643, allocations: 1.385 MB / 0.6331 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.643, allocations: 6.875 kB / 0.6331 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.643, allocations: 4.906 kB / 0.6331 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.643, allocations: 0 / 0.6331 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002159/0.6452, allocations: 1.516 MB / 0.6346 GB, free: 9.336 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.6452, allocations: 3.969 kB / 0.6346 GB, free: 9.336 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002979/0.6455, allocations: 70.77 kB / 0.6347 GB, free: 9.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007112/0.6462, allocations: 184.9 kB / 0.6348 GB, free: 9.227 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.972e-05/0.6462, allocations: 15.42 kB / 0.6349 GB, free: 9.223 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001819/0.6481, allocations: 3.957 MB / 0.6387 GB, free: 5.199 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.6481, allocations: 3.75 kB / 0.6387 GB, free: 5.199 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001285/0.6493, allocations: 0.9957 MB / 0.6397 GB, free: 4.484 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003805/0.6497, allocations: 210.8 kB / 0.6399 GB, free: 4.297 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001903/0.6499, allocations: 10.53 kB / 0.6399 GB, free: 4.293 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004416/0.6504, allocations: 10.81 kB / 0.6399 GB, free: 4.289 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.689e-05/0.6504, allocations: 48.92 kB / 0.64 GB, free: 4.266 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.121e-05/0.6505, allocations: 17.12 kB / 0.64 GB, free: 4.266 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001082/0.6516, allocations: 0.9655 MB / 0.6409 GB, free: 3.75 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6516, allocations: 0 / 0.6409 GB, free: 3.75 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002526/0.6541, allocations: 0.8669 MB / 0.6418 GB, free: 3.469 MB / 446.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.003222/0.6573, allocations: 2.485 MB / 0.6442 GB, free: 1.535 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001754/0.6591, allocations: 0.878 MB / 0.645 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.6591, allocations: 0 / 0.645 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004361/0.6595, allocations: 404.7 kB / 0.6454 GB, free: 384 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001407/0.6609, allocations: 224.3 kB / 0.6456 GB, free: 188 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01796/0.6789, allocations: 11.89 MB / 0.6573 GB, free: 3.461 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008939/0.6798, allocations: 1.183 MB / 0.6584 GB, free: 2.266 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001215/0.681, allocations: 408.3 kB / 0.6588 GB, free: 1.996 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009529/0.6819, allocations: 0.681 MB / 0.6595 GB, free: 1.324 MB / 462.1 MB Notification: Performance of SimCode: time 8.82e-07/0.6819, allocations: 0 / 0.6595 GB, free: 1.324 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08103/0.763, allocations: 40.35 MB / 0.6989 GB, free: 9.688 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.62/16.38, allocations: 9.391 kB / 0.6989 GB, free: 9.684 MB / 0.4981 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.386374244990293] Failed to read output from testmodel.py, exit status != 0: 16.564589907997288 16.582281034 15.996353969 Calling exit ...