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.001401/0.001401, allocations: 116.8 kB / 17.16 MB, free: 5.895 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.001578/0.001578, allocations: 212 kB / 20.13 MB, free: 2.949 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.491/1.491, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.1558/0.1558, allocations: 23.88 MB / 333.4 MB, free: 1.203 MB / 254.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.00199/0.00199, allocations: 60.56 kB / 466.7 MB, free: 30.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.111, allocations: 59.85 MB / 0.5142 GB, free: 12.91 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.04311/0.1541, allocations: 29.3 MB / 0.5428 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03486/0.189, allocations: 28.41 MB / 0.5706 GB, free: 3.125 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00153/0.1905, allocations: 35.69 kB / 0.5706 GB, free: 3.09 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001938/0.1924, allocations: 0.667 MB / 0.5713 GB, free: 2.418 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003925/0.1963, allocations: 1.327 MB / 0.5726 GB, free: 1.082 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01168/0.208, allocations: 4.293 MB / 0.5768 GB, free: 12.76 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004001/0.212, allocations: 2.195 MB / 0.5789 GB, free: 10.55 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001889/0.2139, allocations: 0.9582 MB / 0.5798 GB, free: 9.559 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002061/0.216, allocations: 1.044 MB / 0.5809 GB, free: 8.512 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002325/0.2183, allocations: 1.14 MB / 0.582 GB, free: 7.367 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006283/0.2189, allocations: 184 kB / 0.5822 GB, free: 7.188 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009196/0.2281, allocations: 2.707 MB / 0.5848 GB, free: 4.477 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000905/0.229, allocations: 486.5 kB / 0.5853 GB, free: 4 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001459/0.2305, allocations: 0.9837 MB / 0.5862 GB, free: 3.012 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2756/0.5061, allocations: 5.173 MB / 0.5913 GB, free: 32.31 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.5061, allocations: 1.125 kB / 0.5913 GB, free: 32.31 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.5061, allocations: 0 / 0.5913 GB, free: 32.31 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.441e-05/0.5062, allocations: 0 / 0.5913 GB, free: 32.31 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.005494/0.5117, allocations: 2.598 MB / 0.5938 GB, free: 31.01 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.5117, allocations: 10.03 kB / 0.5938 GB, free: 31.01 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.028e-05/0.5118, allocations: 42.23 kB / 0.5939 GB, free: 31 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002635/0.512, allocations: 216.5 kB / 0.5941 GB, free: 30.96 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00259/0.5146, allocations: 0.5196 MB / 0.5946 GB, free: 30.84 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002659/0.5173, allocations: 1.254 MB / 0.5958 GB, free: 30.46 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001592/0.5175, allocations: 171.3 kB / 0.596 GB, free: 30.4 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003348/0.5178, allocations: 146.8 kB / 0.5961 GB, free: 30.39 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004026/0.5218, allocations: 2.032 MB / 0.5981 GB, free: 30.19 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.639e-05/0.5218, allocations: 7.234 kB / 0.5981 GB, free: 30.19 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001868/0.522, allocations: 59.58 kB / 0.5982 GB, free: 30.19 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.463e-05/0.5221, allocations: 37 kB / 0.5982 GB, free: 30.19 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004887/0.527, allocations: 2.772 MB / 0.6009 GB, free: 30.17 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01145/0.5384, allocations: 6.674 MB / 0.6074 GB, free: 27.86 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002222/0.5406, allocations: 0.9976 MB / 0.6084 GB, free: 27.77 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001038/0.5417, allocations: 0.514 MB / 0.6089 GB, free: 27.75 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01124/0.5529, allocations: 8.447 MB / 0.6171 GB, free: 21.82 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.5529, allocations: 40.84 kB / 0.6172 GB, free: 21.77 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005688/0.5535, allocations: 96.88 kB / 0.6173 GB, free: 21.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=50): time 3.687e-06/0.5535, allocations: 0 / 0.6173 GB, free: 21.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=50): time 0.001782/0.5553, allocations: 1.003 MB / 0.6183 GB, free: 21.19 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.5553, allocations: 113.1 kB / 0.6184 GB, free: 21.06 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001394/0.5567, allocations: 1.245 MB / 0.6196 GB, free: 20.55 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.747e-05/0.5568, allocations: 31.64 kB / 0.6196 GB, free: 20.52 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004329/0.5572, allocations: 0.9952 MB / 0.6206 GB, free: 19.73 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000124/0.5573, allocations: 207.2 kB / 0.6208 GB, free: 19.58 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003688/0.5577, allocations: 340.5 kB / 0.6211 GB, free: 19.42 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.015e-05/0.5577, allocations: 301.1 kB / 0.6214 GB, free: 19.12 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004664/0.5582, allocations: 317.6 kB / 0.6217 GB, free: 19.04 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008032/0.559, allocations: 1.319 MB / 0.623 GB, free: 17.57 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001475/0.5605, allocations: 1.817 MB / 0.6247 GB, free: 15.98 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.577e-05/0.5605, allocations: 10.44 kB / 0.6248 GB, free: 15.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002397/0.5629, allocations: 1.698 MB / 0.6264 GB, free: 15.53 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.002e-05/0.5629, allocations: 22.41 kB / 0.6264 GB, free: 15.53 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.989e-05/0.563, allocations: 35.44 kB / 0.6265 GB, free: 15.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006275/0.5636, allocations: 160.9 kB / 0.6266 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/0.5648, allocations: 484 kB / 0.6271 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002043/0.5669, allocations: 4.091 MB / 0.6311 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001353/0.5682, allocations: 88.7 kB / 0.6312 GB, free: 11.35 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001716/0.5684, allocations: 133.9 kB / 0.6313 GB, free: 11.33 MB / 446.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.0006646/0.5691, allocations: 382.5 kB / 0.6317 GB, free: 11.08 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002362/0.5693, allocations: 141.4 kB / 0.6318 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002169/0.5715, allocations: 1.389 MB / 0.6332 GB, free: 10.13 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.5715, allocations: 3.125 kB / 0.6332 GB, free: 10.13 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.5715, allocations: 0 / 0.6332 GB, free: 10.13 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.5715, allocations: 7.234 kB / 0.6332 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002213/0.5737, allocations: 1.518 MB / 0.6346 GB, free: 9.055 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.5737, allocations: 4.844 kB / 0.6346 GB, free: 9.055 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002969/0.574, allocations: 73.3 kB / 0.6347 GB, free: 9.039 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007056/0.5747, allocations: 177.5 kB / 0.6349 GB, free: 8.949 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.331e-05/0.5747, allocations: 24.02 kB / 0.6349 GB, free: 8.938 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001924/0.5767, allocations: 3.953 MB / 0.6388 GB, free: 4.918 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.5767, allocations: 7.344 kB / 0.6388 GB, free: 4.918 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.5779, allocations: 0.9868 MB / 0.6397 GB, free: 4.207 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003597/0.5782, allocations: 208.7 kB / 0.6399 GB, free: 4.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000183/0.5784, allocations: 16.77 kB / 0.64 GB, free: 4.012 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004356/0.5788, allocations: 11.47 kB / 0.64 GB, free: 4.008 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.96e-05/0.5789, allocations: 43.7 kB / 0.64 GB, free: 3.984 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-05/0.5789, allocations: 14.31 kB / 0.64 GB, free: 3.984 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001129/0.5801, allocations: 0.9704 MB / 0.641 GB, free: 3.469 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5801, allocations: 0 / 0.641 GB, free: 3.469 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002667/0.5827, allocations: 0.8645 MB / 0.6418 GB, free: 3.188 MB / 446.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.003054/0.5858, allocations: 2.493 MB / 0.6442 GB, free: 1.238 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001714/0.5875, allocations: 0.8678 MB / 0.6451 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.5875, allocations: 0 / 0.6451 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004478/0.588, allocations: 411.8 kB / 0.6455 GB, free: 84 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00176/0.5897, allocations: 231.9 kB / 0.6457 GB, free: 15.89 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02034/0.6101, allocations: 11.87 MB / 0.6573 GB, free: 3.168 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009509/0.611, allocations: 1.193 MB / 0.6585 GB, free: 1.969 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001308/0.6123, allocations: 409.7 kB / 0.6589 GB, free: 1.699 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008746/0.6132, allocations: 0.6742 MB / 0.6595 GB, free: 1.031 MB / 462.1 MB Notification: Performance of SimCode: time 1.272e-06/0.6132, allocations: 0 / 0.6595 GB, free: 1.031 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08233/0.6955, allocations: 40.36 MB / 0.6989 GB, free: 9.418 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.17/15.87, allocations: 11.94 kB / 0.6989 GB, free: 9.406 MB / 0.4981 GB " [Timeout remaining time 644] (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: 18.916976601001807] Failed to read output from testmodel.py, exit status != 0: 16.04842099599773 16.074960379 15.563630056 Calling exit ...