Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.LeadAcidBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001781/0.001781, allocations: 106.6 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002062/0.002062, allocations: 191.7 kB / 19.41 MB, free: 3.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 225.6 MB / 247.8 MB, free: 13.96 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09065/0.09065, allocations: 15.53 MB / 318.2 MB, free: 10.24 MB / 254.1 MB " [Timeout remaining time 180] Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00226/0.00226, allocations: 63.91 kB / 444.9 MB, free: 13.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1233, allocations: 56.54 MB / 0.4897 GB, free: 4.93 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01492/0.1382, allocations: 11.72 MB / 0.5012 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2794/0.4177, allocations: 33.84 MB / 0.5342 GB, free: 4 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001908/0.4196, allocations: 30.95 kB / 0.5342 GB, free: 15.99 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002381/0.422, allocations: 0.7451 MB / 0.535 GB, free: 15.58 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009144/0.4311, allocations: 2.785 MB / 0.5377 GB, free: 14.05 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01334/0.4444, allocations: 4.453 MB / 0.542 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00606/0.4505, allocations: 3.424 MB / 0.5454 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002854/0.4533, allocations: 1.734 MB / 0.5471 GB, free: 9.277 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002863/0.4562, allocations: 1.657 MB / 0.5487 GB, free: 8.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00359/0.4598, allocations: 1.889 MB / 0.5505 GB, free: 7.336 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000723/0.4605, allocations: 322.7 kB / 0.5508 GB, free: 7.336 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01375/0.4743, allocations: 3.774 MB / 0.5545 GB, free: 5.969 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001568/0.4758, allocations: 0.753 MB / 0.5553 GB, free: 5.352 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003517/0.4794, allocations: 1.585 MB / 0.5568 GB, free: 4.285 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02299/0.5024, allocations: 7.29 MB / 0.5639 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.889e-06/0.5024, allocations: 0 / 0.5639 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.5024, allocations: 0 / 0.5639 GB, free: 14.88 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002268/0.5026, allocations: 4 kB / 0.5639 GB, free: 14.87 MB / 414.1 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.01296/0.5155, allocations: 3.788 MB / 0.5676 GB, free: 11.01 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.814e-05/0.5156, allocations: 8.031 kB / 0.5676 GB, free: 11 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001101/0.5167, allocations: 363.2 kB / 0.568 GB, free: 10.64 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003522/0.5202, allocations: 0.6269 MB / 0.5686 GB, free: 10.01 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003994/0.5242, allocations: 1.506 MB / 0.5701 GB, free: 8.457 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003346/0.5246, allocations: 257 kB / 0.5703 GB, free: 8.191 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008294/0.5254, allocations: 271.9 kB / 0.5706 GB, free: 7.926 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007132/0.5325, allocations: 3.132 MB / 0.5736 GB, free: 4.723 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.019e-05/0.5326, allocations: 0 / 0.5736 GB, free: 4.723 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003969/0.533, allocations: 111.9 kB / 0.5737 GB, free: 4.613 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.016e-05/0.533, allocations: 64 kB / 0.5738 GB, free: 4.551 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007153/0.5402, allocations: 3.854 MB / 0.5776 GB, free: 0.6836 MB / 414.1 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.02111/0.5613, allocations: 9.944 MB / 0.5873 GB, free: 6.363 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005949/0.5673, allocations: 3.32 MB / 0.5905 GB, free: 2.91 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002603/0.5699, allocations: 1.235 MB / 0.5917 GB, free: 1.668 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01949/0.5894, allocations: 10.91 MB / 0.6024 GB, free: 5.598 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.307e-05/0.5894, allocations: 60.25 kB / 0.6024 GB, free: 5.535 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001101/0.5905, allocations: 234.5 kB / 0.6027 GB, free: 5.305 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 9.077e-06/0.5905, allocations: 0 / 0.6027 GB, free: 5.305 MB / 446.1 MB Notification: Performance of matching and sorting (n=251): time 0.05015/0.6407, allocations: 12.3 MB / 0.6147 GB, free: 8.852 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.325e-05/0.6407, allocations: 77.41 kB / 0.6147 GB, free: 8.766 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001891/0.6426, allocations: 1.172 MB / 0.6159 GB, free: 7.582 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004362/0.6431, allocations: 65.7 kB / 0.616 GB, free: 7.512 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009881/0.6441, allocations: 1.184 MB / 0.6171 GB, free: 6.316 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001157/0.6452, allocations: 0.9064 MB / 0.618 GB, free: 5.402 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001272/0.6465, allocations: 0.5613 MB / 0.6185 GB, free: 4.832 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.6466, allocations: 305.1 kB / 0.6188 GB, free: 4.531 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002057/0.6487, allocations: 1.013 MB / 0.6198 GB, free: 3.516 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003005/0.6517, allocations: 1.901 MB / 0.6217 GB, free: 1.223 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005741/0.6574, allocations: 3.2 MB / 0.6248 GB, free: 13.6 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.914e-05/0.6574, allocations: 8 kB / 0.6248 GB, free: 13.59 MB / 478.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01155/0.669, allocations: 4.118 MB / 0.6288 GB, free: 9.41 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.991e-05/0.669, allocations: 20.06 kB / 0.6289 GB, free: 9.391 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.35e-05/0.6691, allocations: 28 kB / 0.6289 GB, free: 9.363 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006456/0.6756, allocations: 1.366 MB / 0.6302 GB, free: 7.988 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002694/0.6783, allocations: 0.6474 MB / 0.6308 GB, free: 7.34 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01318/0.6914, allocations: 8.281 MB / 0.6389 GB, free: 14.61 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002818/0.6943, allocations: 99.98 kB / 0.639 GB, free: 14.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007031/0.695, allocations: 175.3 kB / 0.6392 GB, free: 14.35 MB / 494.1 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.001903/0.6969, allocations: 0.5086 MB / 0.6397 GB, free: 13.83 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001037/0.6979, allocations: 206.6 kB / 0.6399 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01266/0.7106, allocations: 3.865 MB / 0.6437 GB, free: 9.688 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.298e-05/0.7106, allocations: 24 kB / 0.6437 GB, free: 9.664 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.933e-05/0.7106, allocations: 8 kB / 0.6437 GB, free: 9.656 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.207e-05/0.7107, allocations: 11.95 kB / 0.6437 GB, free: 9.645 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01693/0.7276, allocations: 6.32 MB / 0.6499 GB, free: 3.168 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.34e-05/0.7276, allocations: 4 kB / 0.6499 GB, free: 3.164 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002122/0.7297, allocations: 431.4 kB / 0.6503 GB, free: 2.742 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006178/0.7359, allocations: 1.272 MB / 0.6515 GB, free: 1.453 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000572/0.7365, allocations: 95.94 kB / 0.6516 GB, free: 1.359 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01159/0.7481, allocations: 7.799 MB / 0.6592 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.7481, allocations: 8 kB / 0.6593 GB, free: 9.117 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01364/0.7617, allocations: 5.024 MB / 0.6642 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006102/0.7623, allocations: 263.6 kB / 0.6644 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000562/0.7629, allocations: 55.98 kB / 0.6645 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001622/0.7645, allocations: 59.98 kB / 0.6645 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006191/0.7651, allocations: 229.7 kB / 0.6647 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003116/0.7655, allocations: 111.9 kB / 0.6648 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001221/0.7667, allocations: 0.735 MB / 0.6656 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8e-08/0.7667, allocations: 0 / 0.6656 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005556/0.7722, allocations: 1.496 MB / 0.667 GB, free: 0.9805 MB / 0.4981 GB 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.01737/0.7896, allocations: 7.006 MB / 0.6739 GB, free: 9.812 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008482/0.7981, allocations: 3.336 MB / 0.6771 GB, free: 6.387 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/0.7981, allocations: 1.875 kB / 0.6771 GB, free: 6.387 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004488/0.8026, allocations: 1.903 MB / 0.679 GB, free: 4.418 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002619/0.8052, allocations: 393.4 kB / 0.6794 GB, free: 4.031 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04929/0.8545, allocations: 20.19 MB / 0.6991 GB, free: 14.69 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002222/0.8567, allocations: 1.595 MB / 0.7006 GB, free: 13.06 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002595/0.8593, allocations: 0.4969 MB / 0.7011 GB, free: 12.56 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002287/0.8616, allocations: 1.189 MB / 0.7023 GB, free: 11.38 MB / 0.545 GB Notification: Performance of SimCode: time 1.443e-06/0.8616, allocations: 0 / 0.7023 GB, free: 11.38 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3652/1.227, allocations: 74.02 MB / 0.7746 GB, free: 142.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.86/27.09, allocations: 11.7 kB / 0.7746 GB, free: 142.3 MB / 0.545 GB " [Timeout remaining time 633] (rm -f Chemical_Chemical.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_Chemical.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_Chemical.Examples.LeadAcidBattery.pipe >> ../files/Chemical_Chemical.Examples.LeadAcidBattery.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_LeadAcidBattery_fmu --startTime=0 --stopTime=47800 --stepSize=19.12 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_LeadAcidBattery.fmu > Chemical_Chemical.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 30.13115376699716] Failed to read output from testmodel.py, exit status != 0: 27.230283530894667 27.248251907 26.741990257 Calling exit ...