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.001402/0.001402, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001995/0.001995, allocations: 218.5 kB / 23.03 MB, free: 4.922 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.496/1.496, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.1531/0.1531, allocations: 23.91 MB / 337.1 MB, free: 10.95 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential",fmuType="cs",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.00201/0.00201, allocations: 71.89 kB / 472 MB, free: 7.469 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3464/0.3484, allocations: 59.86 MB / 0.5193 GB, free: 9.516 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.07497/0.4234, allocations: 28.31 MB / 0.547 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0345/0.4579, allocations: 24.84 MB / 0.5713 GB, free: 4.703 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001798/0.4597, allocations: 35.69 kB / 0.5713 GB, free: 4.668 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002276/0.462, allocations: 0.6049 MB / 0.5719 GB, free: 4.059 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004669/0.4666, allocations: 1.28 MB / 0.5731 GB, free: 2.77 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01296/0.4796, allocations: 4.344 MB / 0.5774 GB, free: 14.39 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00434/0.4839, allocations: 2.188 MB / 0.5795 GB, free: 12.2 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001745/0.4857, allocations: 0.9273 MB / 0.5804 GB, free: 11.24 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001693/0.4874, allocations: 1.052 MB / 0.5814 GB, free: 10.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001995/0.4894, allocations: 1.144 MB / 0.5826 GB, free: 9.035 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004325/0.4898, allocations: 180 kB / 0.5827 GB, free: 8.859 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00835/0.4981, allocations: 2.609 MB / 0.5853 GB, free: 6.246 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009008/0.499, allocations: 478.6 kB / 0.5857 GB, free: 5.777 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001378/0.5004, allocations: 0.8246 MB / 0.5865 GB, free: 4.949 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0133/0.5137, allocations: 5.159 MB / 0.5916 GB, free: 15.77 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.5137, allocations: 0 / 0.5916 GB, free: 15.77 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.5137, allocations: 0 / 0.5916 GB, free: 15.77 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.941e-05/0.5138, allocations: 0 / 0.5916 GB, free: 15.77 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.005656/0.5195, allocations: 2.516 MB / 0.594 GB, free: 13.21 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.5195, allocations: 8.031 kB / 0.594 GB, free: 13.2 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.153e-05/0.5196, allocations: 39.14 kB / 0.5941 GB, free: 13.16 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003188/0.5199, allocations: 219.6 kB / 0.5943 GB, free: 12.93 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002518/0.5224, allocations: 0.5298 MB / 0.5948 GB, free: 12.4 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002451/0.5249, allocations: 1.179 MB / 0.596 GB, free: 11.2 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002101/0.5251, allocations: 221.7 kB / 0.5962 GB, free: 10.95 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003408/0.5254, allocations: 144 kB / 0.5963 GB, free: 10.81 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003839/0.5293, allocations: 2.027 MB / 0.5983 GB, free: 8.715 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.956e-05/0.5293, allocations: 7.938 kB / 0.5983 GB, free: 8.707 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001798/0.5295, allocations: 64 kB / 0.5984 GB, free: 8.645 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.585e-05/0.5295, allocations: 36 kB / 0.5984 GB, free: 8.609 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004901/0.5344, allocations: 2.772 MB / 0.6011 GB, free: 5.828 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01234/0.5468, allocations: 5.993 MB / 0.6069 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00212/0.5489, allocations: 1.002 MB / 0.6079 GB, free: 14.67 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009605/0.5499, allocations: 0.513 MB / 0.6084 GB, free: 14.15 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01103/0.5609, allocations: 4.188 MB / 0.6125 GB, free: 9.934 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.794e-05/0.5609, allocations: 39 kB / 0.6126 GB, free: 9.887 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004583/0.5614, allocations: 110.9 kB / 0.6127 GB, free: 9.777 MB / 462.1 MB Notification: Performance of pre-optimization done (n=50): time 2.725e-06/0.5614, allocations: 0 / 0.6127 GB, free: 9.777 MB / 462.1 MB Notification: Performance of matching and sorting (n=50): time 0.00204/0.5634, allocations: 0.855 MB / 0.6135 GB, free: 8.914 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.5635, allocations: 111.5 kB / 0.6136 GB, free: 8.781 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001775/0.5653, allocations: 1.237 MB / 0.6148 GB, free: 7.535 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.096e-05/0.5654, allocations: 37.7 kB / 0.6148 GB, free: 7.492 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007738/0.5661, allocations: 1.005 MB / 0.6158 GB, free: 6.477 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001995/0.5663, allocations: 198.5 kB / 0.616 GB, free: 6.281 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004513/0.5668, allocations: 343.3 kB / 0.6163 GB, free: 5.938 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.5669, allocations: 301.1 kB / 0.6166 GB, free: 5.641 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005921/0.5675, allocations: 311.8 kB / 0.6169 GB, free: 5.336 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001518/0.569, allocations: 1.32 MB / 0.6182 GB, free: 3.508 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002396/0.5714, allocations: 1.813 MB / 0.62 GB, free: 1.184 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.644e-05/0.5715, allocations: 8 kB / 0.62 GB, free: 1.176 MB / 462.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003158/0.5746, allocations: 1.707 MB / 0.6217 GB, free: 15.46 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.358e-05/0.5747, allocations: 20 kB / 0.6217 GB, free: 15.44 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.9e-05/0.5747, allocations: 36 kB / 0.6217 GB, free: 15.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006446/0.5753, allocations: 169.5 kB / 0.6219 GB, free: 15.23 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001413/0.5767, allocations: 487.3 kB / 0.6223 GB, free: 14.75 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003265/0.58, allocations: 3.87 MB / 0.6261 GB, free: 10.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001154/0.5812, allocations: 92.11 kB / 0.6262 GB, free: 10.51 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000226/0.5814, allocations: 128 kB / 0.6263 GB, free: 10.38 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.0006411/0.582, allocations: 380.9 kB / 0.6267 GB, free: 10 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002848/0.5823, allocations: 143.1 kB / 0.6268 GB, free: 9.859 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002639/0.585, allocations: 1.376 MB / 0.6282 GB, free: 8.398 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.585, allocations: 0 / 0.6282 GB, free: 8.398 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-06/0.585, allocations: 8 kB / 0.6282 GB, free: 8.391 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.585, allocations: 48 / 0.6282 GB, free: 8.391 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002634/0.5876, allocations: 1.424 MB / 0.6296 GB, free: 6.875 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/0.5876, allocations: 12.22 kB / 0.6296 GB, free: 6.863 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003389/0.588, allocations: 79.88 kB / 0.6297 GB, free: 6.785 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007641/0.5887, allocations: 175 kB / 0.6298 GB, free: 6.602 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.955e-05/0.5888, allocations: 15.98 kB / 0.6298 GB, free: 6.586 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003057/0.5918, allocations: 3.733 MB / 0.6335 GB, free: 2.559 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.5918, allocations: 7.938 kB / 0.6335 GB, free: 2.551 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/0.5934, allocations: 1.001 MB / 0.6345 GB, free: 1.488 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003147/0.5938, allocations: 127 kB / 0.6346 GB, free: 1.363 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001964/0.594, allocations: 12.09 kB / 0.6346 GB, free: 1.352 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004616/0.5944, allocations: 16 kB / 0.6346 GB, free: 1.336 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.26e-05/0.5945, allocations: 43.81 kB / 0.6347 GB, free: 1.293 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.085e-05/0.5945, allocations: 20 kB / 0.6347 GB, free: 1.273 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001403/0.5959, allocations: 0.967 MB / 0.6356 GB, free: 320 kB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5959, allocations: 0 / 0.6356 GB, free: 320 kB / 478.1 MB Notification: Performance of remove unused functions: time 0.002708/0.5986, allocations: 0.8603 MB / 0.6365 GB, free: 15.45 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.004172/0.6028, allocations: 2.496 MB / 0.6389 GB, free: 12.88 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002233/0.6051, allocations: 0.8745 MB / 0.6398 GB, free: 12.02 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.6051, allocations: 0 / 0.6398 GB, free: 12.02 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000621/0.6057, allocations: 402.2 kB / 0.6401 GB, free: 11.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001652/0.6073, allocations: 242.8 kB / 0.6404 GB, free: 11.36 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01797/0.6253, allocations: 11.87 MB / 0.652 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007112/0.626, allocations: 0.5945 MB / 0.6525 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00135/0.6274, allocations: 409.9 kB / 0.6529 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009473/0.6283, allocations: 0.6821 MB / 0.6536 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of SimCode: time 1.192e-06/0.6283, allocations: 0 / 0.6536 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08849/0.7168, allocations: 41.59 MB / 0.6942 GB, free: 3.316 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.01/16.72, allocations: 3.938 kB / 0.6942 GB, free: 3.312 MB / 0.5294 GB " [Timeout remaining time 643] (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: 19.787856199080124] Failed to read output from testmodel.py, exit status != 0: 16.930296052945778 16.953663139 16.436203002 Calling exit ...