Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.0006999/0.0006999, 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.0007577/0.0007577, 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.8218/0.8218, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.07665/0.07665, allocations: 17.45 MB / 276.6 MB, free: 11.77 MB / 266.7 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.LeadAcidBattery,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.LeadAcidBattery,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 411.6 MB, free: 232 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.757e-05/1.916e-05, allocations: 2.281 kB / 411.6 MB, free: 228 kB / 378.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.007348/0.007367, allocations: 10.19 MB / 421.8 MB, free: 5.988 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.1675/0.1749, allocations: 29.71 MB / 451.5 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001223/0.1761, allocations: 36.91 kB / 451.6 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001165/0.1772, allocations: 0.6944 MB / 452.2 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005547/0.1828, allocations: 2.854 MB / 455.1 MB, free: 42.54 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00749/0.1903, allocations: 4.636 MB / 459.7 MB, free: 41.58 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002816/0.1931, allocations: 3.543 MB / 463.3 MB, free: 40.66 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001318/0.1944, allocations: 1.686 MB / 465 MB, free: 39.98 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001558/0.196, allocations: 2.353 MB / 467.3 MB, free: 39.17 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001283/0.1973, allocations: 1.498 MB / 468.8 MB, free: 38.86 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002969/0.1976, allocations: 322.4 kB / 469.1 MB, free: 38.86 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006168/0.2037, allocations: 3.587 MB / 472.7 MB, free: 38.19 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004735/0.2042, allocations: 0.7621 MB / 473.5 MB, free: 37.77 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001104/0.2053, allocations: 1.16 MB / 474.6 MB, free: 37.33 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01204/0.2173, allocations: 7.926 MB / 482.6 MB, free: 34.57 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.2174, allocations: 1.219 kB / 482.6 MB, free: 34.57 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2174, allocations: 0 / 482.6 MB, free: 34.57 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.664e-05/0.2174, allocations: 0 / 482.6 MB, free: 34.57 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.004704/0.2221, allocations: 3.68 MB / 486.2 MB, free: 32.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.2222, allocations: 9.781 kB / 486.3 MB, free: 32.52 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002811/0.2224, allocations: 358.2 kB / 486.6 MB, free: 32.3 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001523/0.224, allocations: 0.624 MB / 487.2 MB, free: 32.1 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001813/0.2258, allocations: 1.441 MB / 488.7 MB, free: 31.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001525/0.2259, allocations: 305.6 kB / 489 MB, free: 31.13 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002763/0.2262, allocations: 276.2 kB / 489.2 MB, free: 31.03 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003532/0.2297, allocations: 3.158 MB / 492.4 MB, free: 29.78 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.441e-05/0.2298, allocations: 5.609 kB / 492.4 MB, free: 29.78 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001854/0.23, allocations: 106.4 kB / 492.5 MB, free: 29.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.63e-05/0.23, allocations: 63.09 kB / 492.6 MB, free: 29.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004116/0.2341, allocations: 3.819 MB / 496.4 MB, free: 28.57 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.009575/0.2437, allocations: 8.197 MB / 0.4928 GB, free: 24.39 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002547/0.2462, allocations: 2.777 MB / 0.4955 GB, free: 23.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001042/0.2473, allocations: 1.226 MB / 0.4967 GB, free: 22.76 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007114/0.2544, allocations: 6.03 MB / 0.5026 GB, free: 20.33 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.678e-05/0.2544, allocations: 58.5 kB / 0.5026 GB, free: 20.27 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005783/0.255, allocations: 241.5 kB / 0.5028 GB, free: 20.12 MB / 410.7 MB Notification: Performance of pre-optimization done (n=177): time 3.938e-06/0.255, allocations: 0 / 0.5028 GB, free: 20.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=251): time 0.02105/0.276, allocations: 11.83 MB / 0.5144 GB, free: 8.836 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.831e-05/0.2761, allocations: 81.34 kB / 0.5145 GB, free: 8.742 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008547/0.2769, allocations: 1.218 MB / 0.5157 GB, free: 7.512 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001341/0.2771, allocations: 69.7 kB / 0.5157 GB, free: 7.438 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002705/0.2773, allocations: 1.176 MB / 0.5169 GB, free: 6.258 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003082/0.2777, allocations: 0.8951 MB / 0.5178 GB, free: 5.375 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000435/0.2781, allocations: 0.5574 MB / 0.5183 GB, free: 4.809 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.079e-05/0.2781, allocations: 305.1 kB / 0.5186 GB, free: 4.508 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000959/0.2791, allocations: 1.009 MB / 0.5196 GB, free: 3.496 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001175/0.2802, allocations: 1.905 MB / 0.5214 GB, free: 1.199 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002812/0.2831, allocations: 3.2 MB / 0.5246 GB, free: 13.58 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.378e-05/0.2831, allocations: 8 kB / 0.5246 GB, free: 13.57 MB / 426.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.005774/0.2888, allocations: 4.125 MB / 0.5286 GB, free: 9.383 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.233e-05/0.2889, allocations: 16 kB / 0.5286 GB, free: 9.367 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.17e-05/0.2889, allocations: 28.38 kB / 0.5286 GB, free: 9.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003014/0.2919, allocations: 1.358 MB / 0.53 GB, free: 7.973 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/0.2932, allocations: 0.6541 MB / 0.5306 GB, free: 7.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006621/0.2998, allocations: 7.91 MB / 0.5383 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001428/0.3012, allocations: 104 kB / 0.5384 GB, free: 14.95 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000199/0.3014, allocations: 171.9 kB / 0.5386 GB, free: 14.78 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.0008461/0.3023, allocations: 0.5103 MB / 0.5391 GB, free: 14.26 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002956/0.3026, allocations: 207.8 kB / 0.5393 GB, free: 14.06 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005474/0.308, allocations: 3.868 MB / 0.5431 GB, free: 10.12 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.28e-05/0.308, allocations: 24 kB / 0.5431 GB, free: 10.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.3081, allocations: 4 kB / 0.5431 GB, free: 10.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.632e-05/0.3081, allocations: 19.94 kB / 0.5431 GB, free: 10.08 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007966/0.316, allocations: 5.949 MB / 0.5489 GB, free: 4.039 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.316, allocations: 0 / 0.5489 GB, free: 4.039 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009276/0.317, allocations: 431.4 kB / 0.5493 GB, free: 3.617 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002836/0.3198, allocations: 1.27 MB / 0.5506 GB, free: 2.332 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001802/0.32, allocations: 99.92 kB / 0.5507 GB, free: 2.234 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005963/0.326, allocations: 7.399 MB / 0.5579 GB, free: 10.47 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.666e-06/0.326, allocations: 3.938 kB / 0.5579 GB, free: 10.47 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007097/0.3331, allocations: 5.023 MB / 0.5628 GB, free: 5.297 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004503/0.3335, allocations: 190.5 kB / 0.563 GB, free: 5.109 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001872/0.3337, allocations: 55.98 kB / 0.563 GB, free: 5.055 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000707/0.3344, allocations: 59.98 kB / 0.5631 GB, free: 4.996 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003401/0.3347, allocations: 233.7 kB / 0.5633 GB, free: 4.766 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000153/0.3349, allocations: 119.9 kB / 0.5634 GB, free: 4.648 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0007188/0.3356, allocations: 0.7233 MB / 0.5641 GB, free: 3.926 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3356, allocations: 0 / 0.5641 GB, free: 3.926 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003189/0.3388, allocations: 1.504 MB / 0.5656 GB, free: 2.418 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.009587/0.3484, allocations: 7.071 MB / 0.5725 GB, free: 11.36 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00456/0.3529, allocations: 3.257 MB / 0.5757 GB, free: 8.039 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.3529, allocations: 0 / 0.5757 GB, free: 8.039 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002104/0.3551, allocations: 1.829 MB / 0.5775 GB, free: 6.164 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001359/0.3564, allocations: 405.2 kB / 0.5779 GB, free: 5.777 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02555/0.382, allocations: 20.1 MB / 0.5975 GB, free: 0.5352 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007865/0.3828, allocations: 1.029 MB / 0.5985 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001267/0.384, allocations: 0.5047 MB / 0.599 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001096/0.3851, allocations: 1.185 MB / 0.6002 GB, free: 13.78 MB / 0.4948 GB Notification: Performance of SimCode: time 1.422e-06/0.3851, allocations: 0 / 0.6002 GB, free: 13.78 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2292/0.6143, allocations: 76.36 MB / 0.6747 GB, free: 128.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.603/10.22, allocations: 6.906 kB / 0.6747 GB, free: 128.8 MB / 0.5105 GB " [Timeout remaining time 650] (rm -f Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_LeadAcidBattery_fmu --startTime=0 --stopTime=47800 --stepSize=19.12 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_LeadAcidBattery.fmu > Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.908558070659637] Failed to read output from testmodel.py, exit status != 0: 10.339865849353373 10.347441869 10.128540991 Calling exit ...