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.001472/0.001472, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.00161/0.00161, allocations: 218.8 kB / 22.25 MB, free: 5.121 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.351/1.351, allocations: 230.6 MB / 256 MB, free: 7.992 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.1266/0.1266, allocations: 23.9 MB / 336.3 MB, free: 11.18 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.001882/0.001882, allocations: 59.91 kB / 471.2 MB, free: 7.664 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.28, allocations: 59.87 MB / 0.5187 GB, free: 9.605 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.03763/0.3177, allocations: 29.54 MB / 0.5475 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03464/0.3523, allocations: 28.47 MB / 0.5753 GB, free: 60 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001361/0.3537, allocations: 35.69 kB / 0.5753 GB, free: 24 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001752/0.3554, allocations: 0.6826 MB / 0.576 GB, free: 15.34 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003536/0.3589, allocations: 1.323 MB / 0.5773 GB, free: 14 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01087/0.3698, allocations: 4.36 MB / 0.5816 GB, free: 9.617 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003359/0.3732, allocations: 2.196 MB / 0.5837 GB, free: 7.414 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00116/0.3743, allocations: 0.9234 MB / 0.5846 GB, free: 6.453 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001112/0.3754, allocations: 1.044 MB / 0.5856 GB, free: 5.406 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00148/0.3769, allocations: 1.144 MB / 0.5867 GB, free: 4.258 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002586/0.3772, allocations: 180 kB / 0.5869 GB, free: 4.082 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006958/0.3841, allocations: 2.707 MB / 0.5896 GB, free: 1.371 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000469/0.3846, allocations: 482.5 kB / 0.59 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009554/0.3856, allocations: 0.98 MB / 0.591 GB, free: 15.91 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008625/0.3942, allocations: 5.186 MB / 0.596 GB, free: 10.71 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3942, allocations: 0 / 0.596 GB, free: 10.71 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3942, allocations: 0 / 0.596 GB, free: 10.71 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.968e-05/0.3942, allocations: 0 / 0.596 GB, free: 10.71 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.004248/0.3985, allocations: 2.52 MB / 0.5985 GB, free: 8.141 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.3985, allocations: 8.031 kB / 0.5985 GB, free: 8.133 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000266/0.3988, allocations: 215.6 kB / 0.5987 GB, free: 7.91 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00213/0.4009, allocations: 0.5299 MB / 0.5992 GB, free: 7.379 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00213/0.403, allocations: 1.179 MB / 0.6004 GB, free: 6.172 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001948/0.4032, allocations: 225.9 kB / 0.6006 GB, free: 5.926 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002557/0.4035, allocations: 144 kB / 0.6007 GB, free: 5.785 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003115/0.4066, allocations: 2.031 MB / 0.6027 GB, free: 3.684 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.921e-05/0.4066, allocations: 0 / 0.6027 GB, free: 3.684 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001665/0.4068, allocations: 68 kB / 0.6028 GB, free: 3.617 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.372e-05/0.4068, allocations: 40 kB / 0.6028 GB, free: 3.578 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004172/0.411, allocations: 2.772 MB / 0.6055 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01008/0.4211, allocations: 6.603 MB / 0.612 GB, free: 10 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001832/0.4229, allocations: 1.001 MB / 0.613 GB, free: 8.969 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000912/0.4238, allocations: 0.5207 MB / 0.6135 GB, free: 8.438 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009667/0.4335, allocations: 4.34 MB / 0.6177 GB, free: 4.07 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/0.4335, allocations: 42.94 kB / 0.6177 GB, free: 4.02 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003264/0.4338, allocations: 103 kB / 0.6178 GB, free: 3.918 MB / 462.1 MB Notification: Performance of pre-optimization done (n=50): time 2.234e-06/0.4338, allocations: 4 kB / 0.6178 GB, free: 3.914 MB / 462.1 MB Notification: Performance of matching and sorting (n=50): time 0.001864/0.4357, allocations: 0.8512 MB / 0.6187 GB, free: 3.055 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.03e-05/0.4358, allocations: 115.1 kB / 0.6188 GB, free: 2.918 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001616/0.4374, allocations: 1.237 MB / 0.62 GB, free: 1.672 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.777e-05/0.4375, allocations: 37.69 kB / 0.62 GB, free: 1.629 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000747/0.4382, allocations: 0.9973 MB / 0.621 GB, free: 0.6211 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001809/0.4384, allocations: 202.5 kB / 0.6212 GB, free: 432 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004199/0.4388, allocations: 343.6 kB / 0.6215 GB, free: 80 kB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.439, allocations: 301.1 kB / 0.6218 GB, free: 15.78 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005525/0.4395, allocations: 311.8 kB / 0.6221 GB, free: 15.48 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/0.441, allocations: 1.331 MB / 0.6234 GB, free: 13.64 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002211/0.4432, allocations: 1.809 MB / 0.6252 GB, free: 11.32 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.454e-05/0.4432, allocations: 8 kB / 0.6252 GB, free: 11.31 MB / 478.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002744/0.4459, allocations: 1.695 MB / 0.6268 GB, free: 9.602 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.625e-05/0.446, allocations: 20 kB / 0.6269 GB, free: 9.582 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.003e-05/0.446, allocations: 39.98 kB / 0.6269 GB, free: 9.543 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006338/0.4466, allocations: 166 kB / 0.6271 GB, free: 9.375 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001322/0.448, allocations: 483.1 kB / 0.6275 GB, free: 8.902 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003188/0.4511, allocations: 3.882 MB / 0.6313 GB, free: 4.734 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009273/0.4521, allocations: 92.05 kB / 0.6314 GB, free: 4.645 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001663/0.4522, allocations: 132 kB / 0.6315 GB, free: 4.516 MB / 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.0005897/0.4528, allocations: 383.7 kB / 0.6319 GB, free: 4.133 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002339/0.4531, allocations: 143.1 kB / 0.632 GB, free: 3.992 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00249/0.4556, allocations: 1.389 MB / 0.6334 GB, free: 2.52 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.353e-06/0.4556, allocations: 4 kB / 0.6334 GB, free: 2.516 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-06/0.4556, allocations: 0 / 0.6334 GB, free: 2.516 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.136e-06/0.4556, allocations: 7.984 kB / 0.6334 GB, free: 2.508 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002413/0.458, allocations: 1.488 MB / 0.6348 GB, free: 0.9258 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.458, allocations: 4 kB / 0.6348 GB, free: 0.9219 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002989/0.4583, allocations: 75.83 kB / 0.6349 GB, free: 0.8477 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006956/0.459, allocations: 167.4 kB / 0.6351 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.056e-05/0.459, allocations: 19.98 kB / 0.6351 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002948/0.462, allocations: 3.756 MB / 0.6388 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/0.462, allocations: 4 kB / 0.6388 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00137/0.4633, allocations: 0.9994 MB / 0.6397 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002231/0.4636, allocations: 131 kB / 0.6399 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001572/0.4637, allocations: 12 kB / 0.6399 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004095/0.4641, allocations: 11.98 kB / 0.6399 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.403e-05/0.4642, allocations: 51.83 kB / 0.6399 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.187e-05/0.4642, allocations: 19.98 kB / 0.64 GB, free: 11.32 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001263/0.4655, allocations: 0.967 MB / 0.6409 GB, free: 10.36 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4655, allocations: 3.938 kB / 0.6409 GB, free: 10.35 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002267/0.4678, allocations: 0.8603 MB / 0.6418 GB, free: 9.488 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.003318/0.4711, allocations: 2.484 MB / 0.6442 GB, free: 6.934 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001777/0.4729, allocations: 0.8742 MB / 0.645 GB, free: 6.066 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4729, allocations: 0 / 0.645 GB, free: 6.066 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005557/0.4734, allocations: 406.5 kB / 0.6454 GB, free: 5.645 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001187/0.4746, allocations: 232.6 kB / 0.6456 GB, free: 5.418 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01613/0.4907, allocations: 11.88 MB / 0.6572 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008552/0.4916, allocations: 1.188 MB / 0.6584 GB, free: 7.105 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00115/0.4927, allocations: 401.4 kB / 0.6588 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008535/0.4936, allocations: 0.6774 MB / 0.6594 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of SimCode: time 1.082e-06/0.4936, allocations: 0 / 0.6594 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08717/0.5808, allocations: 41.24 MB / 0.6997 GB, free: 12.99 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.97/15.55, allocations: 6.281 kB / 0.6997 GB, free: 12.98 MB / 0.545 GB " [Timeout remaining time 644] (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: 18.121057101001497] Failed to read output from testmodel.py, exit status != 0: 15.6847815719957 15.71198015 15.312539322 Calling exit ...