Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.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.001307/0.001307, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.00141/0.00141, allocations: 218.5 kB / 22.25 MB, free: 5.105 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 / 256 MB, free: 7.801 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.1252/0.1252, allocations: 23.93 MB / 336.4 MB, free: 10.91 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.StandardElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell",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.001927/0.001927, allocations: 79.88 kB / 471.2 MB, free: 7.445 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2763, allocations: 59.87 MB / 0.5186 GB, free: 9.531 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.StandardElectrochemicalCell): time 0.06697/0.3433, allocations: 27.59 MB / 0.5456 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02462/0.3679, allocations: 19.03 MB / 0.5641 GB, free: 10.75 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001439/0.3693, allocations: 27.75 kB / 0.5642 GB, free: 10.72 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001697/0.371, allocations: 497.1 kB / 0.5646 GB, free: 10.35 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003188/0.3742, allocations: 0.9596 MB / 0.5656 GB, free: 9.535 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008977/0.3832, allocations: 3.353 MB / 0.5689 GB, free: 6.363 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002787/0.386, allocations: 1.802 MB / 0.5706 GB, free: 4.555 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001177/0.3872, allocations: 0.7627 MB / 0.5714 GB, free: 3.77 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001063/0.3882, allocations: 0.8064 MB / 0.5721 GB, free: 2.961 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001368/0.3896, allocations: 0.899 MB / 0.573 GB, free: 2.059 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003069/0.3899, allocations: 148 kB / 0.5732 GB, free: 1.914 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005025/0.3949, allocations: 2.009 MB / 0.5751 GB, free: 15.9 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004644/0.3954, allocations: 386.7 kB / 0.5755 GB, free: 15.52 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008124/0.3962, allocations: 0.6691 MB / 0.5761 GB, free: 14.85 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007883/0.4041, allocations: 4.054 MB / 0.5801 GB, free: 10.78 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.4041, allocations: 0 / 0.5801 GB, free: 10.78 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.4041, allocations: 0 / 0.5801 GB, free: 10.78 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.82e-05/0.4041, allocations: 0 / 0.5801 GB, free: 10.78 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.003462/0.4076, allocations: 2.072 MB / 0.5821 GB, free: 8.668 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.4076, allocations: 8.031 kB / 0.5821 GB, free: 8.66 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002301/0.4078, allocations: 186.3 kB / 0.5823 GB, free: 8.469 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001775/0.4096, allocations: 443.1 kB / 0.5827 GB, free: 8.035 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001875/0.4115, allocations: 0.992 MB / 0.5837 GB, free: 7.016 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001803/0.4117, allocations: 205.5 kB / 0.5839 GB, free: 6.789 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002279/0.4119, allocations: 120 kB / 0.584 GB, free: 6.672 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002797/0.4147, allocations: 1.768 MB / 0.5857 GB, free: 4.832 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.224e-05/0.4147, allocations: 3.938 kB / 0.5857 GB, free: 4.828 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001409/0.4149, allocations: 52 kB / 0.5858 GB, free: 4.777 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.822e-05/0.4149, allocations: 32 kB / 0.5858 GB, free: 4.746 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003447/0.4183, allocations: 2.307 MB / 0.5881 GB, free: 2.434 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008139/0.4265, allocations: 4.988 MB / 0.593 GB, free: 13.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001382/0.4279, allocations: 0.6978 MB / 0.5936 GB, free: 12.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000586/0.4285, allocations: 336.4 kB / 0.594 GB, free: 12.26 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007183/0.4356, allocations: 2.866 MB / 0.5968 GB, free: 9.371 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.829e-05/0.4357, allocations: 42.55 kB / 0.5968 GB, free: 9.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=37): time 2.104e-06/0.4357, allocations: 0 / 0.5968 GB, free: 9.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=37): time 0.001494/0.4372, allocations: 0.6465 MB / 0.5974 GB, free: 8.66 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.126e-05/0.4372, allocations: 114.8 kB / 0.5975 GB, free: 8.523 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001539/0.4388, allocations: 1.341 MB / 0.5988 GB, free: 7.172 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.746e-05/0.4388, allocations: 41.7 kB / 0.5989 GB, free: 7.125 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006367/0.4395, allocations: 0.8684 MB / 0.5997 GB, free: 6.246 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/0.4396, allocations: 150.8 kB / 0.5999 GB, free: 6.098 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003654/0.44, allocations: 291.4 kB / 0.6002 GB, free: 5.809 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.4401, allocations: 357.9 kB / 0.6005 GB, free: 5.453 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005302/0.4407, allocations: 339.8 kB / 0.6008 GB, free: 5.121 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001194/0.4419, allocations: 1.159 MB / 0.602 GB, free: 3.551 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00184/0.4437, allocations: 1.533 MB / 0.6034 GB, free: 1.609 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.37e-05/0.4437, allocations: 12 kB / 0.6035 GB, free: 1.598 MB / 446.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002518/0.4462, allocations: 1.567 MB / 0.605 GB, free: 20 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.47e-05/0.4463, allocations: 23.98 kB / 0.605 GB, free: 15.99 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.061e-05/0.4463, allocations: 28 kB / 0.605 GB, free: 15.96 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006019/0.4469, allocations: 153.3 kB / 0.6052 GB, free: 15.81 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/0.4481, allocations: 399.6 kB / 0.6056 GB, free: 15.42 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003159/0.4513, allocations: 3.878 MB / 0.6094 GB, free: 11.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009909/0.4522, allocations: 194.9 kB / 0.6095 GB, free: 11.06 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000148/0.4524, allocations: 99.98 kB / 0.6096 GB, free: 10.96 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * 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 (167): * Single equations (assignments): 163 * 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.0004816/0.4529, allocations: 336.2 kB / 0.61 GB, free: 10.63 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002154/0.4531, allocations: 119.2 kB / 0.6101 GB, free: 10.51 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001871/0.455, allocations: 0.942 MB / 0.611 GB, free: 9.523 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.455, allocations: 4 kB / 0.611 GB, free: 9.52 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.455, allocations: 0 / 0.611 GB, free: 9.52 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.455, allocations: 4 kB / 0.611 GB, free: 9.516 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/0.4571, allocations: 1.282 MB / 0.6122 GB, free: 8.148 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/0.4571, allocations: 7.938 kB / 0.6123 GB, free: 8.141 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002618/0.4574, allocations: 55.91 kB / 0.6123 GB, free: 8.086 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007645/0.4582, allocations: 183.3 kB / 0.6125 GB, free: 7.895 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.085e-05/0.4582, allocations: 12 kB / 0.6125 GB, free: 7.883 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002961/0.4611, allocations: 3.742 MB / 0.6161 GB, free: 3.852 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.4612, allocations: 8.094 kB / 0.6162 GB, free: 3.844 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001332/0.4625, allocations: 0.9131 MB / 0.617 GB, free: 2.875 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000228/0.4627, allocations: 107.2 kB / 0.6172 GB, free: 2.77 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001461/0.4629, allocations: 23.88 kB / 0.6172 GB, free: 2.746 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003928/0.4633, allocations: 8.094 kB / 0.6172 GB, free: 2.738 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.918e-05/0.4633, allocations: 39.88 kB / 0.6172 GB, free: 2.699 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.238e-05/0.4634, allocations: 24.06 kB / 0.6172 GB, free: 2.676 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001184/0.4645, allocations: 0.9703 MB / 0.6182 GB, free: 1.703 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4645, allocations: 0 / 0.6182 GB, free: 1.703 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001954/0.4665, allocations: 0.7045 MB / 0.6189 GB, free: 0.9961 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (cathode.temperature,anode.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 (30): * Single equations (assignments): 26 * 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.002896/0.4694, allocations: 2.199 MB / 0.621 GB, free: 14.73 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001669/0.4711, allocations: 0.8307 MB / 0.6218 GB, free: 13.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.4711, allocations: 0 / 0.6218 GB, free: 13.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000526/0.4716, allocations: 385.1 kB / 0.6222 GB, free: 13.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00107/0.4727, allocations: 202.7 kB / 0.6224 GB, free: 13.31 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01359/0.4862, allocations: 10.48 MB / 0.6326 GB, free: 1.805 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005221/0.4868, allocations: 0.5035 MB / 0.6331 GB, free: 1.266 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008707/0.4876, allocations: 306.1 kB / 0.6334 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006867/0.4883, allocations: 0.5421 MB / 0.6339 GB, free: 452 kB / 478.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4883, allocations: 0 / 0.6339 GB, free: 452 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09477/0.5831, allocations: 34.57 MB / 0.6677 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/13.75, allocations: 8 kB / 0.6677 GB, free: 14.12 MB / 0.5137 GB " [Timeout remaining time 646] (rm -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell.fmu > Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.296487724990584] Failed to read output from testmodel.py, exit status != 0: 13.885013293998782 13.911510368 13.502606807 Calling exit ...