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.001413/0.001413, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001771/0.001771, allocations: 209.7 kB / 22.24 MB, free: 5.262 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.481/1.481, 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 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.1491/0.1491, allocations: 23.88 MB / 336.3 MB, free: 10.95 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.002129/0.002129, allocations: 67.91 kB / 471.1 MB, free: 7.492 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.33, allocations: 59.85 MB / 0.5185 GB, free: 9.562 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.07292/0.4029, allocations: 28.7 MB / 0.5466 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03863/0.4415, allocations: 24.86 MB / 0.5708 GB, free: 4.352 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002118/0.4436, allocations: 31.69 kB / 0.5709 GB, free: 4.32 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002365/0.446, allocations: 0.6126 MB / 0.5715 GB, free: 3.703 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005375/0.4514, allocations: 1.272 MB / 0.5727 GB, free: 2.422 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01353/0.4649, allocations: 4.348 MB / 0.577 GB, free: 14.04 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00368/0.4686, allocations: 2.192 MB / 0.5791 GB, free: 11.85 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001625/0.4702, allocations: 0.9273 MB / 0.58 GB, free: 10.88 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001627/0.4718, allocations: 1.04 MB / 0.581 GB, free: 9.84 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001897/0.4737, allocations: 1.047 MB / 0.582 GB, free: 8.789 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005397/0.4743, allocations: 176 kB / 0.5822 GB, free: 8.617 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006966/0.4812, allocations: 2.539 MB / 0.5847 GB, free: 6.074 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008047/0.482, allocations: 486.4 kB / 0.5851 GB, free: 5.598 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001437/0.4835, allocations: 0.8169 MB / 0.5859 GB, free: 4.777 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01242/0.4959, allocations: 5.167 MB / 0.591 GB, free: 15.59 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.4959, allocations: 0 / 0.591 GB, free: 15.59 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.507e-06/0.4959, allocations: 0 / 0.591 GB, free: 15.59 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.957e-05/0.496, allocations: 0 / 0.591 GB, free: 15.59 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.005427/0.5014, allocations: 2.52 MB / 0.5935 GB, free: 13.02 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.5014, allocations: 8.031 kB / 0.5935 GB, free: 13.02 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002889/0.5017, allocations: 219.6 kB / 0.5937 GB, free: 12.79 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002437/0.5042, allocations: 0.5259 MB / 0.5942 GB, free: 12.26 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002788/0.507, allocations: 1.172 MB / 0.5953 GB, free: 11.06 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002345/0.5072, allocations: 221.9 kB / 0.5955 GB, free: 10.82 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003911/0.5076, allocations: 148 kB / 0.5957 GB, free: 10.68 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003734/0.5113, allocations: 2.039 MB / 0.5977 GB, free: 8.566 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.535e-05/0.5114, allocations: 3.938 kB / 0.5977 GB, free: 8.562 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001652/0.5115, allocations: 60 kB / 0.5977 GB, free: 8.504 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-05/0.5116, allocations: 40 kB / 0.5978 GB, free: 8.465 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004697/0.5163, allocations: 2.733 MB / 0.6004 GB, free: 5.723 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01141/0.5277, allocations: 5.998 MB / 0.6063 GB, free: 15.59 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002004/0.5297, allocations: 0.99 MB / 0.6073 GB, free: 14.58 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009551/0.5306, allocations: 0.5169 MB / 0.6078 GB, free: 14.05 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01089/0.5415, allocations: 4.188 MB / 0.6119 GB, free: 9.844 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.936e-05/0.5416, allocations: 42.98 kB / 0.6119 GB, free: 9.793 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004262/0.542, allocations: 107 kB / 0.612 GB, free: 9.688 MB / 462.1 MB Notification: Performance of pre-optimization done (n=50): time 2.765e-06/0.542, allocations: 0 / 0.612 GB, free: 9.688 MB / 462.1 MB Notification: Performance of matching and sorting (n=50): time 0.001924/0.5439, allocations: 0.8629 MB / 0.6128 GB, free: 8.816 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.389e-05/0.544, allocations: 111.2 kB / 0.6129 GB, free: 8.684 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001747/0.5457, allocations: 1.291 MB / 0.6142 GB, free: 7.383 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.441e-05/0.5458, allocations: 37.7 kB / 0.6142 GB, free: 7.34 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007969/0.5466, allocations: 0.9897 MB / 0.6152 GB, free: 6.34 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001939/0.5468, allocations: 206.4 kB / 0.6154 GB, free: 6.137 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004444/0.5472, allocations: 343.3 kB / 0.6157 GB, free: 5.793 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.5474, allocations: 301.1 kB / 0.616 GB, free: 5.496 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005768/0.5479, allocations: 311.8 kB / 0.6163 GB, free: 5.191 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001494/0.5494, allocations: 1.328 MB / 0.6176 GB, free: 3.355 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002451/0.5519, allocations: 1.805 MB / 0.6194 GB, free: 1.039 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.231e-05/0.5519, allocations: 12 kB / 0.6194 GB, free: 1.027 MB / 462.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003218/0.5551, allocations: 1.703 MB / 0.6211 GB, free: 15.31 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.68e-05/0.5552, allocations: 24 kB / 0.6211 GB, free: 15.29 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.033e-05/0.5552, allocations: 36 kB / 0.6211 GB, free: 15.25 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000627/0.5558, allocations: 158.2 kB / 0.6213 GB, free: 15.09 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001384/0.5572, allocations: 483.2 kB / 0.6217 GB, free: 14.62 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003385/0.5606, allocations: 3.874 MB / 0.6255 GB, free: 10.46 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00111/0.5617, allocations: 95.89 kB / 0.6256 GB, free: 10.37 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002017/0.5619, allocations: 124 kB / 0.6257 GB, free: 10.25 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.0006405/0.5626, allocations: 384.9 kB / 0.6261 GB, free: 9.859 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002772/0.5628, allocations: 147 kB / 0.6262 GB, free: 9.715 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002674/0.5655, allocations: 1.388 MB / 0.6276 GB, free: 8.242 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.5655, allocations: 4 kB / 0.6276 GB, free: 8.238 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.5655, allocations: 4 kB / 0.6276 GB, free: 8.234 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.5655, allocations: 3.984 kB / 0.6276 GB, free: 8.23 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002722/0.5682, allocations: 1.436 MB / 0.629 GB, free: 6.703 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.5682, allocations: 0 / 0.629 GB, free: 6.703 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003339/0.5686, allocations: 75.83 kB / 0.6291 GB, free: 6.629 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007847/0.5694, allocations: 179.3 kB / 0.6292 GB, free: 6.441 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.044e-05/0.5694, allocations: 19.98 kB / 0.6293 GB, free: 6.422 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003133/0.5725, allocations: 3.725 MB / 0.6329 GB, free: 2.402 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/0.5725, allocations: 7.969 kB / 0.6329 GB, free: 2.395 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001753/0.5743, allocations: 0.9932 MB / 0.6339 GB, free: 1.34 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003452/0.5746, allocations: 127 kB / 0.634 GB, free: 1.215 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001938/0.5748, allocations: 11.95 kB / 0.634 GB, free: 1.203 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004481/0.5753, allocations: 16 kB / 0.634 GB, free: 1.188 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.991e-05/0.5754, allocations: 43.81 kB / 0.6341 GB, free: 1.145 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.988e-05/0.5754, allocations: 20 kB / 0.6341 GB, free: 1.125 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001434/0.5768, allocations: 0.967 MB / 0.635 GB, free: 168 kB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5768, allocations: 3.938 kB / 0.635 GB, free: 164 kB / 478.1 MB Notification: Performance of remove unused functions: time 0.002577/0.5794, allocations: 0.8641 MB / 0.6359 GB, free: 15.29 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.003674/0.5831, allocations: 2.503 MB / 0.6383 GB, free: 12.72 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001997/0.5851, allocations: 0.8788 MB / 0.6392 GB, free: 11.85 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.5851, allocations: 4.125 kB / 0.6392 GB, free: 11.84 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006014/0.5857, allocations: 393.2 kB / 0.6395 GB, free: 11.43 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001353/0.587, allocations: 224.3 kB / 0.6398 GB, free: 11.21 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0182/0.6052, allocations: 11.88 MB / 0.6514 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007546/0.606, allocations: 0.6023 MB / 0.652 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00144/0.6074, allocations: 410.5 kB / 0.6523 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001027/0.6085, allocations: 0.6818 MB / 0.653 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of SimCode: time 2.685e-06/0.6085, allocations: 0 / 0.653 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1063/0.7147, allocations: 41.54 MB / 0.6936 GB, free: 3.156 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.25/14.96, allocations: 7.922 kB / 0.6936 GB, free: 3.148 MB / 0.5294 GB " [Timeout remaining time 645] (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: 17.78820334514603] Failed to read output from testmodel.py, exit status != 0: 15.115316050127149 15.14260226 14.641767014 Calling exit ...