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.001761/0.001761, allocations: 109.6 kB / 16.45 MB, free: 6.496 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.002055/0.002055, allocations: 213.7 kB / 19.43 MB, free: 3.656 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.363/1.363, allocations: 230.6 MB / 252.8 MB, free: 8.965 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.1321/0.1321, allocations: 23.89 MB / 332.7 MB, free: 12.31 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.002171/0.002171, allocations: 67.91 kB / 466 MB, free: 10.02 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3182/0.3204, allocations: 59.84 MB / 0.5136 GB, free: 8.816 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.04165/0.3621, allocations: 29.48 MB / 0.5423 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03792/0.4, allocations: 28.41 MB / 0.5701 GB, free: 1.102 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001946/0.4019, allocations: 35.69 kB / 0.5701 GB, free: 1.066 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002457/0.4044, allocations: 0.6843 MB / 0.5708 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004979/0.4094, allocations: 1.323 MB / 0.5721 GB, free: 15.27 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0134/0.4228, allocations: 4.297 MB / 0.5763 GB, free: 10.94 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004164/0.4269, allocations: 2.196 MB / 0.5784 GB, free: 8.73 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001802/0.4287, allocations: 0.9543 MB / 0.5794 GB, free: 7.742 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002036/0.4308, allocations: 1.044 MB / 0.5804 GB, free: 6.695 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00215/0.4329, allocations: 1.144 MB / 0.5815 GB, free: 5.547 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006361/0.4336, allocations: 179.9 kB / 0.5817 GB, free: 5.371 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009611/0.4432, allocations: 2.703 MB / 0.5843 GB, free: 2.664 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009708/0.4441, allocations: 482.5 kB / 0.5848 GB, free: 2.191 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002297/0.4464, allocations: 0.9799 MB / 0.5857 GB, free: 1.207 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01524/0.4617, allocations: 5.182 MB / 0.5908 GB, free: 12 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.4617, allocations: 8 kB / 0.5908 GB, free: 12 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.4617, allocations: 0 / 0.5908 GB, free: 12 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001122/0.4618, allocations: 0 / 0.5908 GB, free: 12 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.006218/0.468, allocations: 2.595 MB / 0.5933 GB, free: 9.336 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.4681, allocations: 12.03 kB / 0.5933 GB, free: 9.324 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003214/0.4684, allocations: 211.7 kB / 0.5935 GB, free: 9.105 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002424/0.4708, allocations: 0.5298 MB / 0.5941 GB, free: 8.574 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002162/0.473, allocations: 1.248 MB / 0.5953 GB, free: 7.285 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001792/0.4732, allocations: 174.5 kB / 0.5954 GB, free: 7.102 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000265/0.4734, allocations: 140 kB / 0.5956 GB, free: 6.965 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003395/0.4768, allocations: 2.035 MB / 0.5976 GB, free: 4.859 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.985e-05/0.4768, allocations: 4 kB / 0.5976 GB, free: 4.855 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001794/0.477, allocations: 63.94 kB / 0.5976 GB, free: 4.793 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.174e-05/0.4771, allocations: 36 kB / 0.5977 GB, free: 4.758 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004439/0.4815, allocations: 2.776 MB / 0.6004 GB, free: 1.973 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01224/0.4937, allocations: 6.68 MB / 0.6069 GB, free: 11.09 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002426/0.4962, allocations: 1.009 MB / 0.6079 GB, free: 10.06 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009594/0.4971, allocations: 0.5052 MB / 0.6084 GB, free: 9.547 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01268/0.5098, allocations: 8.431 MB / 0.6166 GB, free: 80 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.5098, allocations: 43 kB / 0.6166 GB, free: 28 kB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003734/0.5102, allocations: 107 kB / 0.6167 GB, free: 15.92 MB / 478.1 MB Notification: Performance of pre-optimization done (n=50): time 2.484e-06/0.5102, allocations: 0 / 0.6167 GB, free: 15.92 MB / 478.1 MB Notification: Performance of matching and sorting (n=50): time 0.002053/0.5123, allocations: 1.006 MB / 0.6177 GB, free: 14.87 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.433e-05/0.5123, allocations: 115.4 kB / 0.6178 GB, free: 14.73 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001585/0.5139, allocations: 1.241 MB / 0.6191 GB, free: 13.48 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.428e-05/0.514, allocations: 37.7 kB / 0.6191 GB, free: 13.44 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007627/0.5147, allocations: 0.9974 MB / 0.6201 GB, free: 12.43 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000177/0.5149, allocations: 194.5 kB / 0.6202 GB, free: 12.24 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004399/0.5154, allocations: 339.3 kB / 0.6206 GB, free: 11.9 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.5155, allocations: 313 kB / 0.6209 GB, free: 11.59 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005761/0.5161, allocations: 311.8 kB / 0.6212 GB, free: 11.29 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001584/0.5177, allocations: 1.324 MB / 0.6225 GB, free: 9.457 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002266/0.5199, allocations: 1.813 MB / 0.6242 GB, free: 7.133 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.314e-05/0.5199, allocations: 8 kB / 0.6242 GB, free: 7.125 MB / 478.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002837/0.5228, allocations: 1.703 MB / 0.6259 GB, free: 5.41 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.221e-05/0.5228, allocations: 20 kB / 0.6259 GB, free: 5.391 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.382e-05/0.5228, allocations: 40 kB / 0.626 GB, free: 5.352 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000644/0.5235, allocations: 161.4 kB / 0.6261 GB, free: 5.188 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/0.5249, allocations: 479.3 kB / 0.6266 GB, free: 4.719 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003562/0.5284, allocations: 4.097 MB / 0.6306 GB, free: 292 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009133/0.5293, allocations: 91.89 kB / 0.6307 GB, free: 200 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001971/0.5295, allocations: 128 kB / 0.6308 GB, free: 72 kB / 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.0006147/0.5301, allocations: 376.9 kB / 0.6311 GB, free: 15.69 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002353/0.5304, allocations: 147 kB / 0.6313 GB, free: 15.55 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002613/0.533, allocations: 1.376 MB / 0.6326 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.533, allocations: 4 kB / 0.6326 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.533, allocations: 4 kB / 0.6326 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.533, allocations: 0 / 0.6326 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002463/0.5355, allocations: 1.523 MB / 0.6341 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.5355, allocations: 0 / 0.6341 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003331/0.5358, allocations: 79.83 kB / 0.6342 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007428/0.5365, allocations: 175.5 kB / 0.6344 GB, free: 12.19 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.088e-05/0.5366, allocations: 12 kB / 0.6344 GB, free: 12.18 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003282/0.5399, allocations: 3.955 MB / 0.6382 GB, free: 7.879 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.5399, allocations: 4 kB / 0.6382 GB, free: 7.875 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001426/0.5413, allocations: 0.9996 MB / 0.6392 GB, free: 6.816 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000264/0.5416, allocations: 204.2 kB / 0.6394 GB, free: 6.598 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/0.5417, allocations: 16 kB / 0.6394 GB, free: 6.582 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004269/0.5421, allocations: 12 kB / 0.6394 GB, free: 6.57 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.678e-05/0.5422, allocations: 43.92 kB / 0.6395 GB, free: 6.527 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.636e-05/0.5422, allocations: 19.98 kB / 0.6395 GB, free: 6.508 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001317/0.5436, allocations: 0.967 MB / 0.6404 GB, free: 5.547 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5436, allocations: 0 / 0.6404 GB, free: 5.547 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002514/0.5461, allocations: 0.8681 MB / 0.6413 GB, free: 4.676 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.00356/0.5496, allocations: 2.491 MB / 0.6437 GB, free: 2.113 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00191/0.5515, allocations: 0.8741 MB / 0.6446 GB, free: 1.246 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.5515, allocations: 1 kB / 0.6446 GB, free: 1.246 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005741/0.5521, allocations: 405.2 kB / 0.645 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001202/0.5533, allocations: 229.4 kB / 0.6452 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01559/0.5689, allocations: 11.88 MB / 0.6568 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008866/0.5698, allocations: 1.188 MB / 0.6579 GB, free: 2.289 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001152/0.5709, allocations: 409.1 kB / 0.6583 GB, free: 1.902 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000858/0.5718, allocations: 0.6783 MB / 0.659 GB, free: 1.227 MB / 0.4981 GB Notification: Performance of SimCode: time 8.22e-07/0.5718, allocations: 4 kB / 0.659 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08432/0.6561, allocations: 40.3 MB / 0.6984 GB, free: 9.121 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.34/14.99, allocations: 10.19 kB / 0.6984 GB, free: 9.113 MB / 0.545 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.6392593330238] Failed to read output from testmodel.py, exit status != 0: 15.109120985958725 15.132056114 14.665972658 Calling exit ...