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.0008053/0.0008053, 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.0008022/0.0008022, allocations: 169.9 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.8096/0.8096, allocations: 177.1 MB / 202.8 MB, free: 5.73 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.08295/0.08295, allocations: 17.45 MB / 276.6 MB, free: 11.74 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.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: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 411.6 MB, free: 12.45 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.672e-05/2.82e-05, allocations: 4.625 kB / 411.6 MB, free: 12.45 MB / 330.7 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.02686/0.02689, allocations: 28.94 MB / 440.5 MB, free: 11.44 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01948/0.04637, allocations: 24.85 MB / 465.4 MB, free: 4.09 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001277/0.04765, allocations: 27.75 kB / 465.4 MB, free: 4.062 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001239/0.04889, allocations: 0.6162 MB / 466 MB, free: 3.441 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003028/0.05192, allocations: 1.322 MB / 467.3 MB, free: 2.109 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009048/0.06096, allocations: 4.482 MB / 471.8 MB, free: 13.6 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002362/0.06333, allocations: 2.269 MB / 474.1 MB, free: 11.32 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001063/0.06439, allocations: 0.9234 MB / 475 MB, free: 10.37 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001104/0.06549, allocations: 1.419 MB / 476.4 MB, free: 8.945 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009396/0.06643, allocations: 0.9315 MB / 477.4 MB, free: 8.012 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001939/0.06663, allocations: 176 kB / 477.5 MB, free: 7.84 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00533/0.07196, allocations: 2.565 MB / 480.1 MB, free: 5.27 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006154/0.07257, allocations: 490.4 kB / 480.6 MB, free: 4.789 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007857/0.07336, allocations: 0.6977 MB / 481.3 MB, free: 4.09 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008261/0.08162, allocations: 5.464 MB / 486.7 MB, free: 14.61 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.08162, allocations: 0 / 486.7 MB, free: 14.61 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.08162, allocations: 0 / 486.7 MB, free: 14.61 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.079e-05/0.08165, allocations: 4 kB / 486.7 MB, free: 14.6 MB / 394.7 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.002663/0.08431, allocations: 2.488 MB / 489.2 MB, free: 12.07 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.08435, allocations: 12.03 kB / 489.2 MB, free: 12.05 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000171/0.08452, allocations: 211.6 kB / 489.5 MB, free: 11.84 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00123/0.08575, allocations: 0.5337 MB / 490 MB, free: 11.3 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001349/0.0871, allocations: 1.178 MB / 491.2 MB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/0.08724, allocations: 222.3 kB / 491.4 MB, free: 9.844 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001698/0.08741, allocations: 144.4 kB / 491.5 MB, free: 9.703 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002316/0.08972, allocations: 2.035 MB / 493.6 MB, free: 7.598 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/0.08975, allocations: 0 / 493.6 MB, free: 7.598 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/0.08986, allocations: 64 kB / 493.6 MB, free: 7.535 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.328e-05/0.08988, allocations: 36 kB / 493.7 MB, free: 7.5 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002815/0.0927, allocations: 2.733 MB / 496.4 MB, free: 4.758 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006788/0.09949, allocations: 6.001 MB / 0.4906 GB, free: 14.64 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/0.1007, allocations: 0.9978 MB / 0.4916 GB, free: 13.61 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005667/0.1013, allocations: 0.5091 MB / 0.4921 GB, free: 13.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005935/0.1072, allocations: 4.185 MB / 0.4962 GB, free: 8.879 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.1073, allocations: 43 kB / 0.4962 GB, free: 8.828 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003206/0.1076, allocations: 110.9 kB / 0.4963 GB, free: 8.719 MB / 410.7 MB Notification: Performance of pre-optimization done (n=50): time 2.915e-06/0.1076, allocations: 0 / 0.4963 GB, free: 8.719 MB / 410.7 MB Notification: Performance of matching and sorting (n=50): time 0.001304/0.1089, allocations: 0.8492 MB / 0.4972 GB, free: 7.859 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.115e-05/0.1089, allocations: 115.3 kB / 0.4973 GB, free: 7.723 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001075/0.11, allocations: 1.295 MB / 0.4985 GB, free: 6.418 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.556e-05/0.1101, allocations: 33.7 kB / 0.4986 GB, free: 6.379 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004357/0.1105, allocations: 0.9857 MB / 0.4995 GB, free: 5.383 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.1106, allocations: 202.4 kB / 0.4997 GB, free: 5.184 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002572/0.1108, allocations: 339.3 kB / 0.5 GB, free: 4.848 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.999e-05/0.1109, allocations: 309.3 kB / 0.5003 GB, free: 4.543 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003581/0.1113, allocations: 311.8 kB / 0.5006 GB, free: 4.238 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001076/0.1124, allocations: 1.324 MB / 0.5019 GB, free: 2.406 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001314/0.1137, allocations: 1.813 MB / 0.5037 GB, free: 84 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.211e-05/0.1137, allocations: 16 kB / 0.5037 GB, free: 68 kB / 410.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.001749/0.1154, allocations: 1.686 MB / 0.5054 GB, free: 14.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.803e-05/0.1155, allocations: 20 kB / 0.5054 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.245e-05/0.1155, allocations: 36 kB / 0.5054 GB, free: 14.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004247/0.1159, allocations: 170.2 kB / 0.5056 GB, free: 14.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007349/0.1166, allocations: 483.2 kB / 0.506 GB, free: 13.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002091/0.1187, allocations: 3.885 MB / 0.5098 GB, free: 9.496 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006848/0.1194, allocations: 87.86 kB / 0.5099 GB, free: 9.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/0.1195, allocations: 124 kB / 0.51 GB, free: 9.289 MB / 426.7 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.0004468/0.12, allocations: 388.9 kB / 0.5104 GB, free: 8.898 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/0.1201, allocations: 143.1 kB / 0.5105 GB, free: 8.758 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001605/0.1217, allocations: 1.39 MB / 0.5119 GB, free: 7.281 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.1217, allocations: 4 kB / 0.5119 GB, free: 7.277 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.1217, allocations: 4 kB / 0.5119 GB, free: 7.273 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.1217, allocations: 7.984 kB / 0.5119 GB, free: 7.266 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001709/0.1234, allocations: 1.41 MB / 0.5133 GB, free: 5.762 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.1234, allocations: 4 kB / 0.5133 GB, free: 5.758 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001652/0.1236, allocations: 71.89 kB / 0.5134 GB, free: 5.688 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003945/0.124, allocations: 179.3 kB / 0.5135 GB, free: 5.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.487e-05/0.124, allocations: 23.98 kB / 0.5136 GB, free: 5.477 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00198/0.126, allocations: 3.729 MB / 0.5172 GB, free: 1.453 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.126, allocations: 3.938 kB / 0.5172 GB, free: 1.449 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/0.1271, allocations: 0.9821 MB / 0.5182 GB, free: 416 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002619/0.1274, allocations: 135 kB / 0.5183 GB, free: 280 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.1275, allocations: 12 kB / 0.5183 GB, free: 268 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002525/0.1277, allocations: 11.98 kB / 0.5183 GB, free: 256 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.452e-05/0.1278, allocations: 43.83 kB / 0.5183 GB, free: 212 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-05/0.1278, allocations: 16 kB / 0.5184 GB, free: 196 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009546/0.1288, allocations: 0.9671 MB / 0.5193 GB, free: 15.23 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1288, allocations: 4 kB / 0.5193 GB, free: 15.22 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002052/0.1308, allocations: 0.8642 MB / 0.5202 GB, free: 14.36 MB / 442.7 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.002652/0.1335, allocations: 2.533 MB / 0.5226 GB, free: 11.75 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001312/0.1348, allocations: 0.8784 MB / 0.5235 GB, free: 10.88 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.1348, allocations: 0 / 0.5235 GB, free: 10.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003382/0.1351, allocations: 398.4 kB / 0.5239 GB, free: 10.47 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009278/0.1361, allocations: 235.9 kB / 0.5241 GB, free: 10.24 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/0.1473, allocations: 11.73 MB / 0.5355 GB, free: 13.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/0.1477, allocations: 0.6102 MB / 0.5361 GB, free: 12.64 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0008479/0.1486, allocations: 403.6 kB / 0.5365 GB, free: 12.27 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005618/0.1491, allocations: 0.6753 MB / 0.5372 GB, free: 11.59 MB / 458.7 MB Notification: Performance of SimCode: time 1.753e-06/0.1491, allocations: 0 / 0.5372 GB, free: 11.59 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05471/0.2039, allocations: 41.77 MB / 0.578 GB, free: 2.09 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.245/8.449, allocations: 14.83 kB / 0.578 GB, free: 2.078 MB / 490.7 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 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: 10.4252983443439] Failed to read output from testmodel.py, exit status != 0: 8.6819250555709 8.706431345 8.622872767 Calling exit ...