Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001474/0.001474, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001661/0.001661, allocations: 218.6 kB / 22.25 MB, free: 5.105 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.35/1.35, allocations: 230.6 MB / 256 MB, free: 7.793 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.1332/0.1332, allocations: 23.94 MB / 336.4 MB, free: 10.88 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/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.StandardLeadAcidPotential,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_master_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.001916/0.001916, allocations: 63.91 kB / 471.2 MB, free: 7.422 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2829, allocations: 59.87 MB / 0.5186 GB, free: 9.492 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.StandardLeadAcidPotential): time 0.0685/0.3514, allocations: 28.57 MB / 0.5465 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0317/0.3831, allocations: 24.87 MB / 0.5708 GB, free: 4.359 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001451/0.3846, allocations: 31.69 kB / 0.5708 GB, free: 4.328 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001814/0.3864, allocations: 0.6088 MB / 0.5714 GB, free: 3.715 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003621/0.39, allocations: 1.276 MB / 0.5727 GB, free: 2.43 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01167/0.4017, allocations: 4.348 MB / 0.5769 GB, free: 14.05 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003292/0.405, allocations: 2.184 MB / 0.579 GB, free: 11.86 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00121/0.4062, allocations: 0.939 MB / 0.58 GB, free: 10.89 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001143/0.4073, allocations: 1.04 MB / 0.581 GB, free: 9.844 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001554/0.4089, allocations: 1.148 MB / 0.5821 GB, free: 8.691 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002648/0.4091, allocations: 180 kB / 0.5823 GB, free: 8.516 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007328/0.4165, allocations: 2.601 MB / 0.5848 GB, free: 5.91 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006574/0.4171, allocations: 486.5 kB / 0.5853 GB, free: 5.434 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001076/0.4182, allocations: 0.8207 MB / 0.5861 GB, free: 4.609 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0101/0.4283, allocations: 5.163 MB / 0.5911 GB, free: 15.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.4283, allocations: 0 / 0.5911 GB, free: 15.43 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.4283, allocations: 0 / 0.5911 GB, free: 15.43 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.879e-05/0.4283, allocations: 0 / 0.5911 GB, free: 15.43 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.004058/0.4324, allocations: 2.516 MB / 0.5936 GB, free: 12.86 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.4324, allocations: 8.031 kB / 0.5936 GB, free: 12.86 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002703/0.4327, allocations: 215.6 kB / 0.5938 GB, free: 12.63 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002279/0.435, allocations: 0.5299 MB / 0.5943 GB, free: 12.1 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002229/0.4372, allocations: 1.187 MB / 0.5955 GB, free: 10.89 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001826/0.4374, allocations: 221.9 kB / 0.5957 GB, free: 10.64 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002744/0.4377, allocations: 144 kB / 0.5958 GB, free: 10.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003209/0.4409, allocations: 2.027 MB / 0.5978 GB, free: 8.406 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.365e-05/0.4409, allocations: 3.938 kB / 0.5978 GB, free: 8.402 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001783/0.4411, allocations: 60 kB / 0.5979 GB, free: 8.344 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.384e-05/0.4411, allocations: 36 kB / 0.5979 GB, free: 8.309 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004188/0.4453, allocations: 2.745 MB / 0.6006 GB, free: 5.555 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01022/0.4555, allocations: 5.993 MB / 0.6064 GB, free: 15.43 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001851/0.4574, allocations: 0.9986 MB / 0.6074 GB, free: 14.4 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009078/0.4583, allocations: 0.513 MB / 0.6079 GB, free: 13.88 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01044/0.4687, allocations: 4.192 MB / 0.612 GB, free: 9.66 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/0.4688, allocations: 42.94 kB / 0.612 GB, free: 9.609 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003676/0.4691, allocations: 103 kB / 0.6121 GB, free: 9.508 MB / 462.1 MB Notification: Performance of pre-optimization done (n=50): time 2.996e-06/0.4691, allocations: 0 / 0.6121 GB, free: 9.508 MB / 462.1 MB Notification: Performance of matching and sorting (n=50): time 0.001867/0.471, allocations: 0.8473 MB / 0.613 GB, free: 8.652 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.88e-05/0.4711, allocations: 115.2 kB / 0.6131 GB, free: 8.516 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00159/0.4727, allocations: 1.295 MB / 0.6143 GB, free: 7.211 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.812e-05/0.4727, allocations: 41.89 kB / 0.6144 GB, free: 7.164 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007503/0.4735, allocations: 0.9975 MB / 0.6154 GB, free: 6.156 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001785/0.4737, allocations: 194.5 kB / 0.6155 GB, free: 5.965 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004325/0.4741, allocations: 339.3 kB / 0.6159 GB, free: 5.625 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.4742, allocations: 305.1 kB / 0.6162 GB, free: 5.324 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005581/0.4748, allocations: 315.8 kB / 0.6165 GB, free: 5.016 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/0.4762, allocations: 1.324 MB / 0.6177 GB, free: 3.184 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002176/0.4784, allocations: 1.805 MB / 0.6195 GB, free: 0.8672 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.776e-05/0.4784, allocations: 12 kB / 0.6195 GB, free: 0.8555 MB / 462.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002778/0.4812, allocations: 1.695 MB / 0.6212 GB, free: 15.14 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.4e-05/0.4812, allocations: 28.23 kB / 0.6212 GB, free: 15.12 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.411e-05/0.4813, allocations: 36 kB / 0.6212 GB, free: 15.08 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006262/0.4819, allocations: 165.4 kB / 0.6214 GB, free: 14.91 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/0.4833, allocations: 479.1 kB / 0.6218 GB, free: 14.45 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003107/0.4864, allocations: 3.885 MB / 0.6256 GB, free: 10.27 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001025/0.4874, allocations: 92.11 kB / 0.6257 GB, free: 10.18 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001733/0.4876, allocations: 128 kB / 0.6259 GB, free: 10.06 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.0005762/0.4881, allocations: 384.9 kB / 0.6262 GB, free: 9.672 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002399/0.4884, allocations: 143 kB / 0.6264 GB, free: 9.531 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002549/0.4909, allocations: 1.378 MB / 0.6277 GB, free: 8.07 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.4909, allocations: 4 kB / 0.6277 GB, free: 8.066 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.215e-06/0.4909, allocations: 0 / 0.6277 GB, free: 8.066 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.4909, allocations: 7.984 kB / 0.6277 GB, free: 8.059 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002417/0.4934, allocations: 1.421 MB / 0.6291 GB, free: 6.547 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.4934, allocations: 7.938 kB / 0.6291 GB, free: 6.539 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003127/0.4937, allocations: 67.89 kB / 0.6292 GB, free: 6.473 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007414/0.4944, allocations: 179.5 kB / 0.6293 GB, free: 6.285 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.393e-05/0.4945, allocations: 16 kB / 0.6294 GB, free: 6.27 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002891/0.4973, allocations: 3.737 MB / 0.633 GB, free: 2.238 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.4974, allocations: 8.094 kB / 0.633 GB, free: 2.23 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001404/0.4988, allocations: 0.9993 MB / 0.634 GB, free: 1.172 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002626/0.499, allocations: 127 kB / 0.6341 GB, free: 1.047 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001703/0.4992, allocations: 12 kB / 0.6341 GB, free: 1.035 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004487/0.4996, allocations: 15.98 kB / 0.6341 GB, free: 1.02 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.459e-05/0.4997, allocations: 47.89 kB / 0.6342 GB, free: 0.9727 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.91e-05/0.4998, allocations: 20.08 kB / 0.6342 GB, free: 0.9531 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001279/0.501, allocations: 0.9632 MB / 0.6351 GB, free: 15.99 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.501, allocations: 0 / 0.6351 GB, free: 15.99 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00233/0.5034, allocations: 0.8641 MB / 0.636 GB, free: 15.12 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.003344/0.5067, allocations: 2.506 MB / 0.6384 GB, free: 12.55 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00183/0.5085, allocations: 0.8693 MB / 0.6393 GB, free: 11.69 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.5085, allocations: 1.875 kB / 0.6393 GB, free: 11.69 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005503/0.5091, allocations: 413.6 kB / 0.6397 GB, free: 11.26 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.5103, allocations: 220.1 kB / 0.6399 GB, free: 11.05 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01553/0.5259, allocations: 11.88 MB / 0.6515 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006191/0.5265, allocations: 0.5984 MB / 0.6521 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001162/0.5276, allocations: 413.8 kB / 0.6525 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008543/0.5285, allocations: 0.6777 MB / 0.6531 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of SimCode: time 9.42e-07/0.5285, allocations: 0 / 0.6531 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08469/0.6132, allocations: 41.99 MB / 0.6941 GB, free: 2.551 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.43/14.04, allocations: 7.875 kB / 0.6941 GB, free: 2.543 MB / 0.5294 GB " [Timeout remaining time 646] (rm -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential_fmu --startTime=0 --stopTime=100 --stepSize=0.04 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential.fmu > Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.615633933019126] Failed to read output from testmodel.py, exit status != 0: 14.174382262979634 14.191405769 13.759900513 Calling exit ...