Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.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.0007899/0.0007899, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001339/0.001339, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8696/0.8696, allocations: 177.2 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.08882/0.08882, allocations: 17.37 MB / 276.6 MB, free: 11.85 MB / 266.7 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.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 7.154e-06/7.154e-06, allocations: 0 / 411.5 MB, free: 408 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.116e-05/2.831e-05, allocations: 2.281 kB / 411.5 MB, free: 404 kB / 378.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.009949/0.009977, allocations: 10.19 MB / 421.7 MB, free: 6.156 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.1892/0.1992, allocations: 29.71 MB / 451.4 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001349/0.2006, allocations: 38.19 kB / 451.4 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001519/0.2021, allocations: 0.6931 MB / 452.1 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006248/0.2083, allocations: 2.846 MB / 454.9 MB, free: 42.57 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008575/0.2169, allocations: 4.638 MB / 459.6 MB, free: 41.61 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.003233/0.2201, allocations: 3.539 MB / 463.1 MB, free: 40.71 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001669/0.2218, allocations: 1.685 MB / 464.8 MB, free: 40.05 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001982/0.2238, allocations: 2.355 MB / 467.2 MB, free: 39.23 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001367/0.2252, allocations: 1.502 MB / 468.7 MB, free: 38.93 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003342/0.2255, allocations: 325.3 kB / 469 MB, free: 38.93 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00707/0.2326, allocations: 3.579 MB / 472.6 MB, free: 38.28 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006855/0.2333, allocations: 0.7664 MB / 473.3 MB, free: 37.85 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001506/0.2348, allocations: 1.156 MB / 474.5 MB, free: 37.42 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01296/0.2477, allocations: 7.926 MB / 482.4 MB, free: 34.65 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.156e-06/0.2477, allocations: 4 kB / 482.4 MB, free: 34.65 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2477, allocations: 3.281 kB / 482.4 MB, free: 34.65 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.655e-05/0.2478, allocations: 1.094 kB / 482.4 MB, free: 34.65 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 669 * Number of variables: 669 Notification: Performance of Generate backend data structure: time 0.005972/0.2538, allocations: 3.677 MB / 486.1 MB, free: 32.6 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.2538, allocations: 9.281 kB / 486.1 MB, free: 32.6 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003028/0.2541, allocations: 362.7 kB / 486.5 MB, free: 32.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001676/0.2558, allocations: 0.6286 MB / 487.1 MB, free: 32.18 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001996/0.2578, allocations: 1.44 MB / 488.5 MB, free: 31.42 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/0.258, allocations: 303.5 kB / 488.8 MB, free: 31.21 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003164/0.2583, allocations: 276.7 kB / 489.1 MB, free: 31.11 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003938/0.2622, allocations: 3.155 MB / 492.2 MB, free: 29.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.635e-05/0.2623, allocations: 5.281 kB / 492.2 MB, free: 29.86 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001859/0.2625, allocations: 105.4 kB / 492.4 MB, free: 29.78 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.551e-05/0.2625, allocations: 69.38 kB / 492.4 MB, free: 29.78 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004999/0.2675, allocations: 3.814 MB / 496.2 MB, free: 28.65 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01187/0.2794, allocations: 8.194 MB / 0.4926 GB, free: 24.48 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002891/0.2823, allocations: 2.778 MB / 0.4953 GB, free: 23.36 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001242/0.2835, allocations: 1.225 MB / 0.4965 GB, free: 22.85 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008047/0.2915, allocations: 6.027 MB / 0.5024 GB, free: 20.42 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.2916, allocations: 61.47 kB / 0.5025 GB, free: 20.36 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006521/0.2922, allocations: 238.7 kB / 0.5027 GB, free: 20.22 MB / 410.7 MB Notification: Performance of pre-optimization done (n=177): time 5.401e-06/0.2922, allocations: 0 / 0.5027 GB, free: 20.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=251): time 0.02248/0.3147, allocations: 11.84 MB / 0.5142 GB, free: 8.973 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.3147, allocations: 81.34 kB / 0.5143 GB, free: 8.879 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009223/0.3157, allocations: 1.218 MB / 0.5155 GB, free: 7.648 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001376/0.3158, allocations: 65.7 kB / 0.5156 GB, free: 7.578 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002885/0.3161, allocations: 1.193 MB / 0.5167 GB, free: 6.387 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003609/0.3165, allocations: 0.8866 MB / 0.5176 GB, free: 5.512 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004527/0.3169, allocations: 0.5613 MB / 0.5182 GB, free: 4.941 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.428e-05/0.3169, allocations: 301.1 kB / 0.5184 GB, free: 4.645 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001014/0.318, allocations: 1.009 MB / 0.5194 GB, free: 3.633 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001188/0.3191, allocations: 1.905 MB / 0.5213 GB, free: 1.336 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002914/0.3221, allocations: 3.205 MB / 0.5244 GB, free: 13.71 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.376e-05/0.3221, allocations: 8 kB / 0.5244 GB, free: 13.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.00594/0.328, allocations: 4.121 MB / 0.5285 GB, free: 9.52 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.378e-05/0.328, allocations: 16 kB / 0.5285 GB, free: 9.504 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.202e-05/0.3281, allocations: 28 kB / 0.5285 GB, free: 9.477 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003181/0.3313, allocations: 1.353 MB / 0.5298 GB, free: 8.113 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001467/0.3327, allocations: 0.6512 MB / 0.5304 GB, free: 7.465 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007215/0.3399, allocations: 7.922 MB / 0.5382 GB, free: 15.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001804/0.3417, allocations: 95.98 kB / 0.5383 GB, free: 15.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003213/0.3421, allocations: 171.9 kB / 0.5384 GB, free: 14.92 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 127 * 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 (341): * Single equations (assignments): 336 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,15,77.8%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,25), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001183/0.3432, allocations: 0.5125 MB / 0.5389 GB, free: 14.4 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004289/0.3437, allocations: 206.6 kB / 0.5391 GB, free: 14.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00596/0.3496, allocations: 3.871 MB / 0.5429 GB, free: 10.26 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.449e-05/0.3496, allocations: 24 kB / 0.5429 GB, free: 10.23 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.3497, allocations: 4 kB / 0.5429 GB, free: 10.23 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-05/0.3497, allocations: 11.95 kB / 0.543 GB, free: 10.22 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008684/0.3584, allocations: 5.946 MB / 0.5488 GB, free: 4.184 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/0.3584, allocations: 4 kB / 0.5488 GB, free: 4.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001/0.3594, allocations: 439.7 kB / 0.5492 GB, free: 3.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003013/0.3624, allocations: 1.257 MB / 0.5504 GB, free: 2.477 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001961/0.3626, allocations: 99.94 kB / 0.5505 GB, free: 2.379 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006472/0.369, allocations: 7.407 MB / 0.5577 GB, free: 10.61 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/0.3691, allocations: 11.88 kB / 0.5578 GB, free: 10.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007937/0.377, allocations: 5.023 MB / 0.5627 GB, free: 5.43 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005974/0.3776, allocations: 186.6 kB / 0.5628 GB, free: 5.246 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002513/0.3778, allocations: 48.23 kB / 0.5629 GB, free: 5.199 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007371/0.3786, allocations: 63.97 kB / 0.5629 GB, free: 5.137 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003929/0.379, allocations: 237.7 kB / 0.5632 GB, free: 4.902 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001966/0.3792, allocations: 119.9 kB / 0.5633 GB, free: 4.785 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008633/0.38, allocations: 0.7272 MB / 0.564 GB, free: 4.059 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.38, allocations: 4 kB / 0.564 GB, free: 4.055 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003986/0.384, allocations: 1.504 MB / 0.5655 GB, free: 2.547 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (anode.temperature,cathode.temperature,solution1.temperature,Pb.logn,HSO4.logn,PbSO4_.logn,H.logn,PbO2.logn,H2O.logn,PbSO4.logn) * 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 (222): * Single equations (assignments): 217 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,15,66.7%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,27), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01058/0.3946, allocations: 7.063 MB / 0.5724 GB, free: 11.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004937/0.3995, allocations: 3.251 MB / 0.5755 GB, free: 8.18 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.3995, allocations: 0 / 0.5755 GB, free: 8.18 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002369/0.4019, allocations: 1.831 MB / 0.5773 GB, free: 6.305 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001474/0.4034, allocations: 411.5 kB / 0.5777 GB, free: 5.914 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02814/0.4315, allocations: 20.09 MB / 0.5973 GB, free: 0.6797 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008942/0.4324, allocations: 1.033 MB / 0.5984 GB, free: 15.61 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001532/0.434, allocations: 0.5046 MB / 0.5988 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001324/0.4353, allocations: 1.19 MB / 0.6 GB, free: 13.91 MB / 0.4948 GB Notification: Performance of SimCode: time 1.663e-06/0.4353, allocations: 0 / 0.6 GB, free: 13.91 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2568/0.692, allocations: 76.36 MB / 0.6746 GB, free: 129 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.913/10.61, allocations: 5.75 kB / 0.6746 GB, free: 129 MB / 0.5105 GB " [Timeout remaining time 649] (rm -f Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.LeadAcidBattery_res.csv --start-time 0 --stop-time 47800 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 19.12 Chemical_Chemical_Obsolete_Examples_LeadAcidBattery.fmu > Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.501475140452385] Failed to read output from testmodel.py, exit status != 0: 10.73174939211458 10.742541535 10.492328231 Calling exit ...