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.001155/0.001155, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.001482/0.001482, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.889/0.889, allocations: 177.1 MB / 202.8 MB, free: 5.723 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.09652/0.09652, allocations: 17.38 MB / 276.6 MB, free: 11.82 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 1.944e-06/1.944e-06, allocations: 1.125 kB / 411.4 MB, free: 13.25 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.1e-05/2.294e-05, allocations: 2.281 kB / 411.4 MB, free: 13.25 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.008032/0.008054, allocations: 10.19 MB / 421.6 MB, free: 6.602 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02638/0.03444, allocations: 29.73 MB / 451.4 MB, free: 1.398 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002487/0.03693, allocations: 38.53 kB / 451.4 MB, free: 1.379 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001963/0.03889, allocations: 0.6916 MB / 452.1 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00736/0.04625, allocations: 2.851 MB / 455 MB, free: 14.61 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0109/0.05715, allocations: 4.635 MB / 459.6 MB, free: 9.945 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004721/0.06187, allocations: 3.545 MB / 463.1 MB, free: 6.387 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002452/0.06432, allocations: 1.681 MB / 464.8 MB, free: 4.66 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003464/0.06778, allocations: 2.359 MB / 467.2 MB, free: 2.297 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00219/0.06997, allocations: 1.497 MB / 468.7 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006918/0.07067, allocations: 325.1 kB / 469 MB, free: 492 kB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008408/0.07907, allocations: 3.583 MB / 472.6 MB, free: 12.89 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009145/0.07999, allocations: 0.7632 MB / 473.3 MB, free: 12.12 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001794/0.08178, allocations: 1.158 MB / 474.5 MB, free: 10.96 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01642/0.0982, allocations: 7.924 MB / 482.4 MB, free: 3.012 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.09821, allocations: 0 / 482.4 MB, free: 3.012 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.075e-06/0.09821, allocations: 8 kB / 482.4 MB, free: 3.004 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000115/0.09833, allocations: 0 / 482.4 MB, free: 3.004 MB / 378.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.006461/0.1048, allocations: 3.677 MB / 486.1 MB, free: 15.27 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.1048, allocations: 8.031 kB / 486.1 MB, free: 15.26 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003623/0.1052, allocations: 363.2 kB / 486.5 MB, free: 14.9 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001682/0.1069, allocations: 0.6308 MB / 487.1 MB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002059/0.1089, allocations: 1.445 MB / 488.5 MB, free: 12.8 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002148/0.1092, allocations: 308.6 kB / 488.8 MB, free: 12.47 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004038/0.1096, allocations: 272.3 kB / 489.1 MB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004603/0.1142, allocations: 3.157 MB / 492.3 MB, free: 8.969 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.752e-05/0.1142, allocations: 0 / 492.3 MB, free: 8.969 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001989/0.1144, allocations: 108 kB / 492.4 MB, free: 8.863 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.096e-05/0.1144, allocations: 64 kB / 492.4 MB, free: 8.801 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004956/0.1194, allocations: 3.811 MB / 496.2 MB, free: 4.977 MB / 394.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.01239/0.1318, allocations: 8.199 MB / 0.4926 GB, free: 12.63 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003187/0.135, allocations: 2.775 MB / 0.4953 GB, free: 9.848 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001468/0.1364, allocations: 1.227 MB / 0.4965 GB, free: 8.613 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00958/0.146, allocations: 6.037 MB / 0.5024 GB, free: 2.543 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.437e-05/0.1461, allocations: 48.56 kB / 0.5025 GB, free: 2.484 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006537/0.1467, allocations: 238.5 kB / 0.5027 GB, free: 2.25 MB / 410.7 MB Notification: Performance of pre-optimization done (n=177): time 6.442e-06/0.1467, allocations: 0 / 0.5027 GB, free: 2.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=251): time 0.02524/0.172, allocations: 11.83 MB / 0.5143 GB, free: 6.379 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.172, allocations: 77.41 kB / 0.5143 GB, free: 6.289 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001181/0.1732, allocations: 1.226 MB / 0.5155 GB, free: 5.051 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002023/0.1734, allocations: 65.7 kB / 0.5156 GB, free: 4.98 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007953/0.1742, allocations: 1.184 MB / 0.5167 GB, free: 3.781 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006026/0.1748, allocations: 0.887 MB / 0.5176 GB, free: 2.887 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005844/0.1754, allocations: 0.5574 MB / 0.5182 GB, free: 2.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.643e-05/0.1754, allocations: 305.1 kB / 0.5184 GB, free: 2.02 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/0.1767, allocations: 1.013 MB / 0.5194 GB, free: 1.004 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001686/0.1784, allocations: 1.905 MB / 0.5213 GB, free: 14.71 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003613/0.182, allocations: 3.2 MB / 0.5244 GB, free: 11.09 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.311e-05/0.182, allocations: 8 kB / 0.5244 GB, free: 11.08 MB / 442.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.006778/0.1888, allocations: 4.13 MB / 0.5285 GB, free: 6.883 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.861e-05/0.1889, allocations: 16 kB / 0.5285 GB, free: 6.867 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.671e-05/0.1889, allocations: 31.44 kB / 0.5285 GB, free: 6.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003636/0.1925, allocations: 1.348 MB / 0.5298 GB, free: 5.477 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001677/0.1942, allocations: 0.6514 MB / 0.5305 GB, free: 4.824 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007871/0.2021, allocations: 7.915 MB / 0.5382 GB, free: 12.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001568/0.2036, allocations: 95.98 kB / 0.5383 GB, free: 12.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003482/0.204, allocations: 175.9 kB / 0.5384 GB, free: 12.28 MB / 458.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.001026/0.205, allocations: 0.5194 MB / 0.539 GB, free: 11.75 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003959/0.2054, allocations: 202.7 kB / 0.5391 GB, free: 11.55 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006225/0.2116, allocations: 3.872 MB / 0.5429 GB, free: 7.602 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.881e-05/0.2117, allocations: 24 kB / 0.5429 GB, free: 7.578 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.2117, allocations: 7.938 kB / 0.543 GB, free: 7.57 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.957e-05/0.2117, allocations: 15.94 kB / 0.543 GB, free: 7.555 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009687/0.2214, allocations: 5.942 MB / 0.5488 GB, free: 1.465 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.768e-06/0.2214, allocations: 4 kB / 0.5488 GB, free: 1.461 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.2224, allocations: 439.7 kB / 0.5492 GB, free: 1.031 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003367/0.2258, allocations: 1.267 MB / 0.5504 GB, free: 15.75 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000252/0.226, allocations: 99.92 kB / 0.5505 GB, free: 15.65 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006535/0.2326, allocations: 7.405 MB / 0.5578 GB, free: 7.879 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.2326, allocations: 4 kB / 0.5578 GB, free: 7.875 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00751/0.2401, allocations: 5.013 MB / 0.5627 GB, free: 2.711 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004961/0.2406, allocations: 186.9 kB / 0.5628 GB, free: 2.527 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002581/0.2408, allocations: 59.92 kB / 0.5629 GB, free: 2.469 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007257/0.2416, allocations: 67.92 kB / 0.563 GB, free: 2.402 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003712/0.2419, allocations: 233.6 kB / 0.5632 GB, free: 2.172 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001686/0.2421, allocations: 115.9 kB / 0.5633 GB, free: 2.059 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007657/0.2429, allocations: 0.7312 MB / 0.564 GB, free: 1.328 MB / 474.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2429, allocations: 0 / 0.564 GB, free: 1.328 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003759/0.2466, allocations: 1.496 MB / 0.5655 GB, free: 15.83 MB / 490.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.0104/0.257, allocations: 7.074 MB / 0.5724 GB, free: 8.59 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004972/0.262, allocations: 3.259 MB / 0.5756 GB, free: 5.262 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/0.262, allocations: 4 kB / 0.5756 GB, free: 5.258 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002362/0.2644, allocations: 1.832 MB / 0.5774 GB, free: 3.379 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001458/0.2658, allocations: 389.9 kB / 0.5777 GB, free: 3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1802/0.446, allocations: 20.09 MB / 0.5973 GB, free: 144.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/0.4472, allocations: 1.034 MB / 0.5984 GB, free: 144.6 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001652/0.4488, allocations: 0.4983 MB / 0.5988 GB, free: 144.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001306/0.4501, allocations: 1.188 MB / 0.6 GB, free: 143.7 MB / 490.7 MB Notification: Performance of SimCode: time 2.485e-06/0.4501, allocations: 0 / 0.6 GB, free: 143.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0911/0.5412, allocations: 76.36 MB / 0.6746 GB, free: 78.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.49, allocations: 4.062 kB / 0.6746 GB, free: 78.1 MB / 490.7 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_LeadAcidBattery_fmu --startTime=0 --stopTime=47800 --stepSize=19.12 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_LeadAcidBattery.fmu > Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.471472098492086] Failed to read output from testmodel.py, exit status != 0: 11.763994043692946 11.618438737 11.5184705 Calling exit ...