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.001274/0.001274, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001693/0.001693, allocations: 216.2 kB / 22.26 MB, free: 5.082 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.464/1.464, allocations: 230.6 MB / 256 MB, free: 8.043 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.145/0.145, allocations: 23.85 MB / 336.3 MB, free: 11.25 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.002001/0.002001, allocations: 64.09 kB / 471.2 MB, free: 7.754 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3413/0.3433, allocations: 59.86 MB / 0.5186 GB, free: 9.859 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.04273/0.386, allocations: 29.53 MB / 0.5474 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03904/0.4251, allocations: 28.47 MB / 0.5752 GB, free: 336 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002054/0.4271, allocations: 31.75 kB / 0.5753 GB, free: 304 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002878/0.43, allocations: 0.6826 MB / 0.5759 GB, free: 15.61 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004854/0.4349, allocations: 1.327 MB / 0.5772 GB, free: 14.27 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01356/0.4484, allocations: 4.356 MB / 0.5815 GB, free: 9.891 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004174/0.4526, allocations: 2.196 MB / 0.5836 GB, free: 7.688 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001745/0.4543, allocations: 0.9274 MB / 0.5845 GB, free: 6.723 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001715/0.4561, allocations: 1.04 MB / 0.5855 GB, free: 5.68 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00203/0.4581, allocations: 1.152 MB / 0.5867 GB, free: 4.523 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006021/0.4587, allocations: 184 kB / 0.5868 GB, free: 4.344 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008851/0.4675, allocations: 2.695 MB / 0.5895 GB, free: 1.645 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008761/0.4684, allocations: 482.6 kB / 0.5899 GB, free: 1.172 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001644/0.4701, allocations: 0.9876 MB / 0.5909 GB, free: 184 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01233/0.4824, allocations: 5.178 MB / 0.596 GB, free: 10.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.4824, allocations: 0 / 0.596 GB, free: 10.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4824, allocations: 0 / 0.596 GB, free: 10.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.444e-05/0.4825, allocations: 0 / 0.596 GB, free: 10.98 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.005864/0.4884, allocations: 2.52 MB / 0.5984 GB, free: 8.414 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.4884, allocations: 12.03 kB / 0.5984 GB, free: 8.402 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004082/0.4888, allocations: 211.6 kB / 0.5986 GB, free: 8.184 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002538/0.4913, allocations: 0.5299 MB / 0.5991 GB, free: 7.652 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002737/0.4941, allocations: 1.183 MB / 0.6003 GB, free: 6.441 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000226/0.4943, allocations: 225.8 kB / 0.6005 GB, free: 6.195 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003657/0.4947, allocations: 144 kB / 0.6007 GB, free: 6.055 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00409/0.4988, allocations: 2.027 MB / 0.6026 GB, free: 3.957 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.738e-05/0.4988, allocations: 7.938 kB / 0.6026 GB, free: 3.949 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002042/0.499, allocations: 60 kB / 0.6027 GB, free: 3.891 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.096e-05/0.4991, allocations: 43.92 kB / 0.6027 GB, free: 3.848 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004749/0.5038, allocations: 2.768 MB / 0.6054 GB, free: 1.07 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01331/0.5171, allocations: 6.603 MB / 0.6119 GB, free: 10.28 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002146/0.5193, allocations: 1.005 MB / 0.6129 GB, free: 9.242 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001063/0.5203, allocations: 0.5091 MB / 0.6134 GB, free: 8.723 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01171/0.532, allocations: 4.359 MB / 0.6176 GB, free: 4.336 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.063e-05/0.5321, allocations: 39 kB / 0.6177 GB, free: 4.289 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004598/0.5325, allocations: 103 kB / 0.6178 GB, free: 4.188 MB / 462.1 MB Notification: Performance of pre-optimization done (n=50): time 3.206e-06/0.5325, allocations: 0 / 0.6178 GB, free: 4.188 MB / 462.1 MB Notification: Performance of matching and sorting (n=50): time 0.00217/0.5347, allocations: 0.859 MB / 0.6186 GB, free: 3.32 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.893e-05/0.5348, allocations: 115.2 kB / 0.6187 GB, free: 3.184 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002006/0.5368, allocations: 1.237 MB / 0.6199 GB, free: 1.938 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.786e-05/0.5369, allocations: 37.7 kB / 0.62 GB, free: 1.895 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008879/0.5378, allocations: 0.9859 MB / 0.6209 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002119/0.538, allocations: 210.5 kB / 0.6211 GB, free: 0.6914 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004491/0.5384, allocations: 339.3 kB / 0.6214 GB, free: 360 kB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.5385, allocations: 301.1 kB / 0.6217 GB, free: 56 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006196/0.5392, allocations: 315.8 kB / 0.622 GB, free: 15.74 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001486/0.5407, allocations: 1.328 MB / 0.6233 GB, free: 13.91 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002484/0.5431, allocations: 1.813 MB / 0.6251 GB, free: 11.58 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.98e-05/0.5432, allocations: 12 kB / 0.6251 GB, free: 11.57 MB / 478.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003446/0.5466, allocations: 1.694 MB / 0.6268 GB, free: 9.863 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.237e-05/0.5467, allocations: 20 kB / 0.6268 GB, free: 9.844 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.634e-05/0.5467, allocations: 36.88 kB / 0.6268 GB, free: 9.809 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007926/0.5475, allocations: 165.6 kB / 0.627 GB, free: 9.641 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001425/0.5489, allocations: 483.1 kB / 0.6274 GB, free: 9.168 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00373/0.5527, allocations: 3.882 MB / 0.6312 GB, free: 5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/0.5539, allocations: 95.84 kB / 0.6313 GB, free: 4.906 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002495/0.5542, allocations: 128 kB / 0.6314 GB, free: 4.781 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.000782/0.5549, allocations: 388.1 kB / 0.6318 GB, free: 4.395 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004225/0.5554, allocations: 139.1 kB / 0.6319 GB, free: 4.258 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00279/0.5582, allocations: 1.384 MB / 0.6333 GB, free: 2.789 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.5582, allocations: 4 kB / 0.6333 GB, free: 2.785 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.5582, allocations: 0 / 0.6333 GB, free: 2.785 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.5582, allocations: 4 kB / 0.6333 GB, free: 2.781 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003007/0.5612, allocations: 1.491 MB / 0.6348 GB, free: 1.199 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.5612, allocations: 4 kB / 0.6348 GB, free: 1.195 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003278/0.5615, allocations: 71.83 kB / 0.6348 GB, free: 1.125 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008007/0.5623, allocations: 187.3 kB / 0.635 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.744e-05/0.5624, allocations: 15.94 kB / 0.635 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003377/0.5657, allocations: 3.748 MB / 0.6387 GB, free: 12.87 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/0.5657, allocations: 7.938 kB / 0.6387 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001678/0.5674, allocations: 0.9881 MB / 0.6397 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003665/0.5678, allocations: 131 kB / 0.6398 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002607/0.568, allocations: 15.98 kB / 0.6398 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004787/0.5685, allocations: 8 kB / 0.6398 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.028e-05/0.5686, allocations: 47.88 kB / 0.6399 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.818e-05/0.5686, allocations: 20 kB / 0.6399 GB, free: 11.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001677/0.5703, allocations: 0.9631 MB / 0.6408 GB, free: 10.64 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5703, allocations: 0 / 0.6408 GB, free: 10.64 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002953/0.5733, allocations: 0.8603 MB / 0.6417 GB, free: 9.777 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.004106/0.5774, allocations: 2.496 MB / 0.6441 GB, free: 7.211 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002083/0.5795, allocations: 0.8735 MB / 0.6449 GB, free: 6.344 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.5795, allocations: 0 / 0.6449 GB, free: 6.344 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000592/0.5801, allocations: 411.2 kB / 0.6453 GB, free: 5.918 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001441/0.5815, allocations: 236.6 kB / 0.6456 GB, free: 5.688 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01878/0.6003, allocations: 11.87 MB / 0.6572 GB, free: 8.598 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001194/0.6015, allocations: 1.188 MB / 0.6583 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001332/0.6028, allocations: 401.9 kB / 0.6587 GB, free: 7 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008954/0.6037, allocations: 0.6855 MB / 0.6594 GB, free: 6.316 MB / 0.4981 GB Notification: Performance of SimCode: time 8.62e-07/0.6037, allocations: 4 kB / 0.6594 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09762/0.7013, allocations: 41.23 MB / 0.6996 GB, free: 13.25 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.92/16.62, allocations: 4 kB / 0.6996 GB, free: 13.25 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.46420056396164] Failed to read output from testmodel.py, exit status != 0: 16.766028973041102 16.792434411 16.304910099 Calling exit ...