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.001741/0.001741, 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.002412/0.002412, allocations: 209.3 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.47/1.47, allocations: 230.6 MB / 256 MB, free: 7.77 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.1354/0.1354, allocations: 24 MB / 336.4 MB, free: 10.83 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_master_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.003195/0.003195, allocations: 75.88 kB / 471.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3414/0.3446, allocations: 59.89 MB / 0.5187 GB, free: 9.48 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.07672/0.4213, allocations: 28.69 MB / 0.5468 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03521/0.4565, allocations: 24.86 MB / 0.571 GB, free: 4.16 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002044/0.4585, allocations: 43.62 kB / 0.5711 GB, free: 4.117 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002269/0.4608, allocations: 0.5971 MB / 0.5717 GB, free: 3.516 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005573/0.4664, allocations: 1.28 MB / 0.5729 GB, free: 2.227 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01423/0.4806, allocations: 4.344 MB / 0.5771 GB, free: 13.86 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003652/0.4843, allocations: 2.192 MB / 0.5793 GB, free: 11.66 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001555/0.4858, allocations: 0.9234 MB / 0.5802 GB, free: 10.7 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001606/0.4874, allocations: 1.044 MB / 0.5812 GB, free: 9.648 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001903/0.4893, allocations: 1.047 MB / 0.5822 GB, free: 8.598 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005096/0.4898, allocations: 176 kB / 0.5824 GB, free: 8.426 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007226/0.4971, allocations: 2.539 MB / 0.5849 GB, free: 5.883 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007768/0.4978, allocations: 482.4 kB / 0.5853 GB, free: 5.41 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001424/0.4993, allocations: 0.8208 MB / 0.5861 GB, free: 4.586 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0117/0.511, allocations: 5.167 MB / 0.5912 GB, free: 15.4 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/0.511, allocations: 4 kB / 0.5912 GB, free: 15.39 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.511, allocations: 4 kB / 0.5912 GB, free: 15.39 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001226/0.5111, allocations: 0 / 0.5912 GB, free: 15.39 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.006192/0.5173, allocations: 2.516 MB / 0.5936 GB, free: 12.83 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.5173, allocations: 12.03 kB / 0.5937 GB, free: 12.82 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004094/0.5178, allocations: 215.6 kB / 0.5939 GB, free: 12.59 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002529/0.5203, allocations: 0.5221 MB / 0.5944 GB, free: 12.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002669/0.5229, allocations: 1.175 MB / 0.5955 GB, free: 10.87 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002414/0.5232, allocations: 229.9 kB / 0.5957 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003936/0.5236, allocations: 144 kB / 0.5959 GB, free: 10.48 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004029/0.5276, allocations: 2.035 MB / 0.5979 GB, free: 8.371 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.638e-05/0.5277, allocations: 0 / 0.5979 GB, free: 8.371 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002367/0.5279, allocations: 64 kB / 0.5979 GB, free: 8.309 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.306e-05/0.5279, allocations: 36 kB / 0.598 GB, free: 8.273 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005287/0.5332, allocations: 2.737 MB / 0.6006 GB, free: 5.527 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01247/0.5457, allocations: 6.006 MB / 0.6065 GB, free: 15.39 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002279/0.548, allocations: 0.9946 MB / 0.6075 GB, free: 14.36 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.549, allocations: 0.5091 MB / 0.608 GB, free: 13.85 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01122/0.5602, allocations: 4.184 MB / 0.6121 GB, free: 9.641 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.756e-05/0.5603, allocations: 42.94 kB / 0.6121 GB, free: 9.59 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000543/0.5608, allocations: 99.03 kB / 0.6122 GB, free: 9.492 MB / 462.1 MB Notification: Performance of pre-optimization done (n=50): time 3.767e-06/0.5608, allocations: 4 kB / 0.6122 GB, free: 9.488 MB / 462.1 MB Notification: Performance of matching and sorting (n=50): time 0.002228/0.5631, allocations: 0.859 MB / 0.613 GB, free: 8.621 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.646e-05/0.5631, allocations: 111.2 kB / 0.6131 GB, free: 8.488 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001849/0.565, allocations: 1.299 MB / 0.6144 GB, free: 7.18 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.218e-05/0.565, allocations: 33.7 kB / 0.6144 GB, free: 7.141 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008325/0.5659, allocations: 0.9897 MB / 0.6154 GB, free: 6.141 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002036/0.5661, allocations: 202.4 kB / 0.6156 GB, free: 5.941 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004841/0.5666, allocations: 343.3 kB / 0.6159 GB, free: 5.598 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.5667, allocations: 305.1 kB / 0.6162 GB, free: 5.297 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006179/0.5673, allocations: 307.8 kB / 0.6165 GB, free: 4.996 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001455/0.5688, allocations: 1.32 MB / 0.6178 GB, free: 3.168 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002407/0.5712, allocations: 1.817 MB / 0.6196 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.607e-05/0.5712, allocations: 12 kB / 0.6196 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003064/0.5743, allocations: 1.699 MB / 0.6212 GB, free: 15.11 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.747e-05/0.5743, allocations: 22.5 kB / 0.6213 GB, free: 15.09 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.146e-05/0.5743, allocations: 36 kB / 0.6213 GB, free: 15.06 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006601/0.575, allocations: 161.4 kB / 0.6215 GB, free: 14.89 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/0.5764, allocations: 491.6 kB / 0.6219 GB, free: 14.41 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003345/0.5797, allocations: 3.877 MB / 0.6257 GB, free: 10.25 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/0.5809, allocations: 100.2 kB / 0.6258 GB, free: 10.15 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000202/0.5811, allocations: 127.8 kB / 0.6259 GB, free: 10.03 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.0006572/0.5818, allocations: 376.9 kB / 0.6263 GB, free: 9.652 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002745/0.582, allocations: 151 kB / 0.6264 GB, free: 9.504 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002623/0.5847, allocations: 1.387 MB / 0.6278 GB, free: 8.031 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.5847, allocations: 4 kB / 0.6278 GB, free: 8.027 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.5847, allocations: 0 / 0.6278 GB, free: 8.027 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.5847, allocations: 4 kB / 0.6278 GB, free: 8.023 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002613/0.5873, allocations: 1.428 MB / 0.6292 GB, free: 6.504 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.5873, allocations: 4 kB / 0.6292 GB, free: 6.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003201/0.5876, allocations: 71.89 kB / 0.6293 GB, free: 6.43 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007442/0.5884, allocations: 175.4 kB / 0.6294 GB, free: 6.246 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.331e-05/0.5884, allocations: 20 kB / 0.6294 GB, free: 6.227 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003103/0.5915, allocations: 3.74 MB / 0.6331 GB, free: 2.191 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.5915, allocations: 0 / 0.6331 GB, free: 2.191 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001586/0.5931, allocations: 0.993 MB / 0.6341 GB, free: 1.137 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000324/0.5934, allocations: 131 kB / 0.6342 GB, free: 1.008 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001893/0.5936, allocations: 15.98 kB / 0.6342 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004414/0.594, allocations: 8 kB / 0.6342 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.203e-05/0.5941, allocations: 47.88 kB / 0.6343 GB, free: 0.9375 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.315e-05/0.5942, allocations: 12 kB / 0.6343 GB, free: 0.9258 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001404/0.5956, allocations: 0.967 MB / 0.6352 GB, free: 15.96 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5956, allocations: 0 / 0.6352 GB, free: 15.96 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00262/0.5982, allocations: 0.868 MB / 0.6361 GB, free: 15.09 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.003706/0.6019, allocations: 2.496 MB / 0.6385 GB, free: 12.53 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002078/0.604, allocations: 0.8822 MB / 0.6394 GB, free: 11.65 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.604, allocations: 448 / 0.6394 GB, free: 11.65 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006104/0.6046, allocations: 405.1 kB / 0.6398 GB, free: 11.23 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001528/0.6061, allocations: 231.1 kB / 0.64 GB, free: 11.01 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01831/0.6244, allocations: 11.87 MB / 0.6516 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006882/0.6251, allocations: 0.6023 MB / 0.6522 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001303/0.6264, allocations: 410.5 kB / 0.6525 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009578/0.6274, allocations: 0.6739 MB / 0.6532 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of SimCode: time 1.894e-06/0.6274, allocations: 0 / 0.6532 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09391/0.7213, allocations: 41.56 MB / 0.6938 GB, free: 2.953 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.27/14.99, allocations: 3.938 kB / 0.6938 GB, free: 2.949 MB / 0.5294 GB " [Timeout remaining time 645] (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: 17.8781855199486] Failed to read output from testmodel.py, exit status != 0: 15.142979990225285 15.165634421 14.650975874 Calling exit ...