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.001337/0.001337, 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.001748/0.001748, allocations: 217.6 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.48/1.48, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.1494/0.1494, allocations: 23.89 MB / 337.1 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 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_master_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.002051/0.002051, allocations: 67.89 kB / 472 MB, free: 7.68 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3313, allocations: 59.86 MB / 0.5194 GB, free: 9.551 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.0463/0.3776, allocations: 29.37 MB / 0.5481 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03602/0.4136, allocations: 28.47 MB / 0.5759 GB, free: 284 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001522/0.4151, allocations: 31.69 kB / 0.5759 GB, free: 252 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001788/0.4169, allocations: 0.6827 MB / 0.5766 GB, free: 15.55 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003725/0.4207, allocations: 1.323 MB / 0.5779 GB, free: 14.22 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01181/0.4325, allocations: 4.352 MB / 0.5821 GB, free: 9.844 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003674/0.4361, allocations: 2.192 MB / 0.5843 GB, free: 7.648 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00166/0.4378, allocations: 0.9235 MB / 0.5852 GB, free: 6.688 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00177/0.4396, allocations: 1.044 MB / 0.5862 GB, free: 5.641 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0022/0.4418, allocations: 1.144 MB / 0.5873 GB, free: 4.492 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006392/0.4424, allocations: 176 kB / 0.5875 GB, free: 4.32 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009152/0.4516, allocations: 2.707 MB / 0.5901 GB, free: 1.609 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008313/0.4524, allocations: 486.5 kB / 0.5906 GB, free: 1.133 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00176/0.4542, allocations: 0.9838 MB / 0.5915 GB, free: 148 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01246/0.4666, allocations: 5.182 MB / 0.5966 GB, free: 10.94 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.78e-06/0.4666, allocations: 0 / 0.5966 GB, free: 10.94 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.4666, allocations: 0 / 0.5966 GB, free: 10.94 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.788e-05/0.4667, allocations: 0 / 0.5966 GB, free: 10.94 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.005441/0.4722, allocations: 2.516 MB / 0.5991 GB, free: 8.379 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.4722, allocations: 12.03 kB / 0.5991 GB, free: 8.367 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.497e-05/0.4723, allocations: 47.08 kB / 0.5991 GB, free: 8.32 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003378/0.4726, allocations: 215.6 kB / 0.5993 GB, free: 8.098 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002465/0.4751, allocations: 0.5338 MB / 0.5998 GB, free: 7.562 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002375/0.4774, allocations: 1.179 MB / 0.601 GB, free: 6.355 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002037/0.4776, allocations: 229.7 kB / 0.6012 GB, free: 6.105 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002959/0.4779, allocations: 140 kB / 0.6013 GB, free: 5.969 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003551/0.4815, allocations: 2.035 MB / 0.6033 GB, free: 3.863 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.053e-05/0.4815, allocations: 0 / 0.6033 GB, free: 3.863 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001934/0.4817, allocations: 60 kB / 0.6034 GB, free: 3.805 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.573e-05/0.4817, allocations: 40 kB / 0.6034 GB, free: 3.766 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004709/0.4864, allocations: 2.772 MB / 0.6061 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01117/0.4976, allocations: 6.611 MB / 0.6126 GB, free: 10.18 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002023/0.4996, allocations: 0.9938 MB / 0.6136 GB, free: 9.156 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000939/0.5006, allocations: 0.5169 MB / 0.6141 GB, free: 8.629 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0105/0.5111, allocations: 4.348 MB / 0.6183 GB, free: 4.254 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.415e-05/0.5112, allocations: 38.94 kB / 0.6183 GB, free: 4.207 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004394/0.5116, allocations: 107 kB / 0.6184 GB, free: 4.102 MB / 462.1 MB Notification: Performance of pre-optimization done (n=50): time 3.046e-06/0.5116, allocations: 0 / 0.6184 GB, free: 4.102 MB / 462.1 MB Notification: Performance of matching and sorting (n=50): time 0.001952/0.5136, allocations: 0.863 MB / 0.6193 GB, free: 3.23 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.077e-05/0.5136, allocations: 115.2 kB / 0.6194 GB, free: 3.094 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001622/0.5153, allocations: 1.241 MB / 0.6206 GB, free: 1.844 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.022e-05/0.5153, allocations: 33.7 kB / 0.6206 GB, free: 1.805 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000759/0.5161, allocations: 0.9974 MB / 0.6216 GB, free: 0.7969 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001798/0.5163, allocations: 202.5 kB / 0.6218 GB, free: 0.5977 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004359/0.5167, allocations: 343.3 kB / 0.6221 GB, free: 260 kB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.5168, allocations: 305.2 kB / 0.6224 GB, free: 15.95 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005762/0.5174, allocations: 311.8 kB / 0.6227 GB, free: 15.65 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001508/0.5189, allocations: 1.32 MB / 0.624 GB, free: 13.82 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00253/0.5215, allocations: 1.813 MB / 0.6258 GB, free: 11.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-05/0.5215, allocations: 12 kB / 0.6258 GB, free: 11.48 MB / 478.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003409/0.5249, allocations: 1.695 MB / 0.6275 GB, free: 9.777 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.274e-05/0.5249, allocations: 20 kB / 0.6275 GB, free: 9.758 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-05/0.525, allocations: 36 kB / 0.6275 GB, free: 9.723 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006976/0.5257, allocations: 162.1 kB / 0.6277 GB, free: 9.559 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/0.5271, allocations: 491.2 kB / 0.6281 GB, free: 9.078 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003534/0.5306, allocations: 3.882 MB / 0.6319 GB, free: 4.91 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001267/0.5319, allocations: 96.05 kB / 0.632 GB, free: 4.816 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002119/0.5321, allocations: 124 kB / 0.6321 GB, free: 4.695 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.0006411/0.5327, allocations: 380.9 kB / 0.6325 GB, free: 4.312 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002803/0.533, allocations: 143.1 kB / 0.6326 GB, free: 4.172 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002596/0.5356, allocations: 1.38 MB / 0.634 GB, free: 2.707 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.5356, allocations: 4 kB / 0.634 GB, free: 2.703 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.5356, allocations: 0 / 0.634 GB, free: 2.703 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.5356, allocations: 0 / 0.634 GB, free: 2.703 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002674/0.5383, allocations: 1.494 MB / 0.6354 GB, free: 1.117 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.5383, allocations: 12 kB / 0.6355 GB, free: 1.105 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003328/0.5386, allocations: 75.89 kB / 0.6355 GB, free: 1.031 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000749/0.5394, allocations: 179 kB / 0.6357 GB, free: 0.8438 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.662e-05/0.5394, allocations: 20 kB / 0.6357 GB, free: 0.8242 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003148/0.5426, allocations: 3.744 MB / 0.6394 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.5426, allocations: 4 kB / 0.6394 GB, free: 12.78 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001561/0.5441, allocations: 0.9891 MB / 0.6403 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003201/0.5445, allocations: 127 kB / 0.6405 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001774/0.5446, allocations: 15.94 kB / 0.6405 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004597/0.5451, allocations: 12 kB / 0.6405 GB, free: 11.58 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.077e-05/0.5452, allocations: 43.81 kB / 0.6405 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-05/0.5452, allocations: 28 kB / 0.6406 GB, free: 11.51 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00142/0.5466, allocations: 0.9631 MB / 0.6415 GB, free: 10.55 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5466, allocations: 0 / 0.6415 GB, free: 10.55 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002642/0.5493, allocations: 0.8603 MB / 0.6423 GB, free: 9.688 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.004008/0.5533, allocations: 2.499 MB / 0.6448 GB, free: 7.121 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00211/0.5554, allocations: 0.8786 MB / 0.6456 GB, free: 6.25 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.5554, allocations: 0 / 0.6456 GB, free: 6.25 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006017/0.556, allocations: 401.1 kB / 0.646 GB, free: 5.832 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001523/0.5575, allocations: 248.4 kB / 0.6463 GB, free: 5.594 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01783/0.5754, allocations: 11.87 MB / 0.6578 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008844/0.5762, allocations: 1.188 MB / 0.659 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001232/0.5775, allocations: 409.9 kB / 0.6594 GB, free: 6.898 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009141/0.5784, allocations: 0.6777 MB / 0.6601 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of SimCode: time 1.062e-06/0.5784, allocations: 0 / 0.6601 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08692/0.6653, allocations: 41.26 MB / 0.7004 GB, free: 13.14 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.76/16.43, allocations: 0 / 0.7004 GB, free: 13.14 MB / 0.545 GB " [Timeout remaining time 643] (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: 19.449455795926042] Failed to read output from testmodel.py, exit status != 0: 16.627985159051605 16.643839819 16.173787574 Calling exit ...