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.001393/0.001393, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001642/0.001642, allocations: 214.5 kB / 23.04 MB, free: 5.074 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.474/1.474, allocations: 230.6 MB / 256.8 MB, free: 8.039 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.1403/0.1403, allocations: 23.86 MB / 337.1 MB, free: 11.22 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="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.002043/0.002043, allocations: 63.91 kB / 472 MB, free: 7.715 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3166, allocations: 59.86 MB / 0.5194 GB, free: 9.633 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.04194/0.3585, allocations: 29.36 MB / 0.548 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03635/0.3949, allocations: 28.47 MB / 0.5758 GB, free: 308 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001795/0.3967, allocations: 35.69 kB / 0.5759 GB, free: 272 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001983/0.3986, allocations: 0.6787 MB / 0.5765 GB, free: 15.58 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004067/0.4027, allocations: 1.331 MB / 0.5778 GB, free: 14.24 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01188/0.4146, allocations: 4.344 MB / 0.5821 GB, free: 9.871 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003758/0.4184, allocations: 2.192 MB / 0.5842 GB, free: 7.672 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001409/0.4198, allocations: 0.9235 MB / 0.5851 GB, free: 6.711 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001593/0.4214, allocations: 1.048 MB / 0.5861 GB, free: 5.66 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002102/0.4235, allocations: 1.152 MB / 0.5873 GB, free: 4.504 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004163/0.4239, allocations: 180 kB / 0.5874 GB, free: 4.328 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009533/0.4334, allocations: 2.699 MB / 0.5901 GB, free: 1.625 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00119/0.4346, allocations: 482.5 kB / 0.5905 GB, free: 1.152 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001748/0.4363, allocations: 0.9876 MB / 0.5915 GB, free: 164 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01536/0.4517, allocations: 5.175 MB / 0.5965 GB, free: 10.96 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.4517, allocations: 0 / 0.5965 GB, free: 10.96 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.4517, allocations: 0 / 0.5965 GB, free: 10.96 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.034e-05/0.4518, allocations: 0 / 0.5965 GB, free: 10.96 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.005232/0.457, allocations: 2.523 MB / 0.599 GB, free: 8.395 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.457, allocations: 8.031 kB / 0.599 GB, free: 8.387 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.126e-05/0.4571, allocations: 47.14 kB / 0.5991 GB, free: 8.34 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002842/0.4574, allocations: 211.6 kB / 0.5993 GB, free: 8.121 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002407/0.4598, allocations: 0.526 MB / 0.5998 GB, free: 7.594 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002318/0.4621, allocations: 1.179 MB / 0.6009 GB, free: 6.387 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002036/0.4623, allocations: 229.6 kB / 0.6011 GB, free: 6.137 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002969/0.4626, allocations: 144 kB / 0.6013 GB, free: 5.996 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003506/0.4661, allocations: 2.031 MB / 0.6033 GB, free: 3.895 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.223e-05/0.4661, allocations: 0 / 0.6033 GB, free: 3.895 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001893/0.4663, allocations: 64 kB / 0.6033 GB, free: 3.832 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.581e-05/0.4664, allocations: 36 kB / 0.6034 GB, free: 3.797 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004604/0.471, allocations: 2.784 MB / 0.6061 GB, free: 1.004 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01152/0.4825, allocations: 6.603 MB / 0.6125 GB, free: 10.21 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002065/0.4845, allocations: 1.009 MB / 0.6135 GB, free: 9.168 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009674/0.4855, allocations: 0.513 MB / 0.614 GB, free: 8.645 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01089/0.4964, allocations: 4.348 MB / 0.6183 GB, free: 4.27 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.786e-05/0.4965, allocations: 39 kB / 0.6183 GB, free: 4.223 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004557/0.4969, allocations: 102.9 kB / 0.6184 GB, free: 4.121 MB / 462.1 MB Notification: Performance of pre-optimization done (n=50): time 2.785e-06/0.4969, allocations: 4 kB / 0.6184 GB, free: 4.117 MB / 462.1 MB Notification: Performance of matching and sorting (n=50): time 0.00194/0.4989, allocations: 0.8628 MB / 0.6192 GB, free: 3.246 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.904e-05/0.4989, allocations: 107.2 kB / 0.6193 GB, free: 3.117 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001691/0.5006, allocations: 1.241 MB / 0.6206 GB, free: 1.867 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.754e-05/0.5007, allocations: 29.7 kB / 0.6206 GB, free: 1.832 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008059/0.5015, allocations: 1.002 MB / 0.6216 GB, free: 0.8203 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001889/0.5017, allocations: 206.4 kB / 0.6218 GB, free: 0.6172 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000454/0.5022, allocations: 339.3 kB / 0.6221 GB, free: 284 kB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.5023, allocations: 301.1 kB / 0.6224 GB, free: 15.98 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005598/0.5029, allocations: 311.8 kB / 0.6227 GB, free: 15.68 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001405/0.5043, allocations: 1.328 MB / 0.624 GB, free: 13.84 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002268/0.5065, allocations: 1.817 MB / 0.6257 GB, free: 11.51 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.399e-05/0.5065, allocations: 12 kB / 0.6258 GB, free: 11.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002976/0.5095, allocations: 1.687 MB / 0.6274 GB, free: 9.801 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.231e-05/0.5096, allocations: 23.98 kB / 0.6274 GB, free: 9.777 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.746e-05/0.5096, allocations: 36.91 kB / 0.6275 GB, free: 9.742 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006897/0.5103, allocations: 173.5 kB / 0.6276 GB, free: 9.566 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001427/0.5117, allocations: 475.3 kB / 0.6281 GB, free: 9.102 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003467/0.5152, allocations: 3.878 MB / 0.6319 GB, free: 4.938 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001173/0.5163, allocations: 99.88 kB / 0.632 GB, free: 4.84 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002028/0.5166, allocations: 124 kB / 0.6321 GB, free: 4.719 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.0007284/0.5173, allocations: 387.9 kB / 0.6324 GB, free: 4.332 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003343/0.5176, allocations: 143.1 kB / 0.6326 GB, free: 4.191 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00263/0.5202, allocations: 1.373 MB / 0.6339 GB, free: 2.734 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.5203, allocations: 4 kB / 0.6339 GB, free: 2.73 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.5203, allocations: 3.984 kB / 0.6339 GB, free: 2.727 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.5203, allocations: 0 / 0.6339 GB, free: 2.727 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002634/0.5229, allocations: 1.503 MB / 0.6354 GB, free: 1.129 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.5229, allocations: 7.938 kB / 0.6354 GB, free: 1.121 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003219/0.5232, allocations: 67.89 kB / 0.6355 GB, free: 1.055 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007604/0.524, allocations: 179.3 kB / 0.6356 GB, free: 0.8672 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.616e-05/0.524, allocations: 16 kB / 0.6357 GB, free: 0.8516 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003074/0.5271, allocations: 3.744 MB / 0.6393 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.5271, allocations: 4 kB / 0.6393 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001614/0.5287, allocations: 0.9931 MB / 0.6403 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002814/0.529, allocations: 127 kB / 0.6404 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001902/0.5292, allocations: 15.94 kB / 0.6404 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004561/0.5296, allocations: 11.98 kB / 0.6404 GB, free: 11.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.86e-05/0.5297, allocations: 43.89 kB / 0.6405 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.014e-05/0.5298, allocations: 23.98 kB / 0.6405 GB, free: 11.54 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001408/0.5312, allocations: 0.9592 MB / 0.6414 GB, free: 10.58 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5312, allocations: 7.938 kB / 0.6414 GB, free: 10.57 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002625/0.5338, allocations: 0.8641 MB / 0.6423 GB, free: 9.707 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.003734/0.5375, allocations: 2.5 MB / 0.6447 GB, free: 7.137 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002088/0.5396, allocations: 0.8763 MB / 0.6456 GB, free: 6.27 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.279e-06/0.5396, allocations: 0 / 0.6456 GB, free: 6.27 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005961/0.5402, allocations: 411.2 kB / 0.646 GB, free: 5.844 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001445/0.5417, allocations: 232.3 kB / 0.6462 GB, free: 5.617 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01796/0.5596, allocations: 11.87 MB / 0.6578 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008843/0.5605, allocations: 1.181 MB / 0.6589 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001314/0.5618, allocations: 409.7 kB / 0.6593 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009058/0.5627, allocations: 0.6762 MB / 0.66 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of SimCode: time 7.31e-07/0.5627, allocations: 4 kB / 0.66 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0869/0.6496, allocations: 41.26 MB / 0.7003 GB, free: 13.17 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.26/16.91, allocations: 7.859 kB / 0.7003 GB, free: 13.16 MB / 0.545 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.83567911607679] Failed to read output from testmodel.py, exit status != 0: 17.112458848045208 17.140017611 16.682853862 Calling exit ...