Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.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.00139/0.00139, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001697/0.001697, allocations: 213.8 kB / 22.24 MB, free: 4.855 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.446/1.446, 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.1327/0.1327, allocations: 23.99 MB / 336.4 MB, free: 10.87 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.StandardElectrochemicalCell2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",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.00208/0.00208, allocations: 71.89 kB / 471.3 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.3517, allocations: 59.89 MB / 0.5187 GB, free: 9.57 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.StandardElectrochemicalCell2): time 0.07703/0.4288, allocations: 27.19 MB / 0.5453 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02474/0.4535, allocations: 16.05 MB / 0.561 GB, free: 13.7 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001857/0.4553, allocations: 23.81 kB / 0.561 GB, free: 13.68 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001648/0.457, allocations: 427.8 kB / 0.5614 GB, free: 13.36 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003065/0.4601, allocations: 0.8028 MB / 0.5622 GB, free: 12.68 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008332/0.4684, allocations: 2.85 MB / 0.565 GB, free: 10.29 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002757/0.4711, allocations: 1.636 MB / 0.5666 GB, free: 8.676 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001227/0.4724, allocations: 0.7272 MB / 0.5673 GB, free: 7.926 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001145/0.4735, allocations: 0.7284 MB / 0.568 GB, free: 7.195 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001299/0.4748, allocations: 0.7274 MB / 0.5687 GB, free: 6.465 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003004/0.4751, allocations: 140 kB / 0.5688 GB, free: 6.328 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004844/0.48, allocations: 1.677 MB / 0.5705 GB, free: 4.648 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003952/0.4804, allocations: 358.9 kB / 0.5708 GB, free: 4.297 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008888/0.4812, allocations: 0.6184 MB / 0.5714 GB, free: 3.676 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007251/0.4885, allocations: 3.579 MB / 0.5749 GB, free: 84 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.4885, allocations: 0 / 0.5749 GB, free: 84 kB / 414.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4885, allocations: 0 / 0.5749 GB, free: 84 kB / 414.1 MB Notification: Performance of Transformations before backend: time 5.801e-05/0.4886, allocations: 0 / 0.5749 GB, free: 84 kB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.003691/0.4923, allocations: 1.889 MB / 0.5767 GB, free: 14.15 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.4923, allocations: 8.031 kB / 0.5768 GB, free: 14.14 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002454/0.4925, allocations: 181.8 kB / 0.5769 GB, free: 13.95 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00162/0.4942, allocations: 399 kB / 0.5773 GB, free: 13.56 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001905/0.4961, allocations: 0.9158 MB / 0.5782 GB, free: 12.62 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001954/0.4963, allocations: 205.3 kB / 0.5784 GB, free: 12.39 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002294/0.4965, allocations: 116 kB / 0.5785 GB, free: 12.28 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002858/0.4994, allocations: 1.664 MB / 0.5801 GB, free: 10.54 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.393e-05/0.4994, allocations: 4 kB / 0.5801 GB, free: 10.54 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001319/0.4995, allocations: 48 kB / 0.5802 GB, free: 10.49 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.669e-05/0.4995, allocations: 31.94 kB / 0.5802 GB, free: 10.46 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003378/0.5029, allocations: 2.108 MB / 0.5823 GB, free: 8.348 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008457/0.5114, allocations: 4.857 MB / 0.587 GB, free: 3.363 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/0.5127, allocations: 0.6899 MB / 0.5877 GB, free: 2.648 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006007/0.5133, allocations: 332.4 kB / 0.588 GB, free: 2.316 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006656/0.52, allocations: 2.652 MB / 0.5906 GB, free: 15.64 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.52, allocations: 42.55 kB / 0.5906 GB, free: 15.59 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003198/0.5203, allocations: 83.19 kB / 0.5907 GB, free: 15.51 MB / 446.1 MB Notification: Performance of pre-optimization done (n=34): time 2.615e-06/0.5204, allocations: 0 / 0.5907 GB, free: 15.51 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.001494/0.5218, allocations: 0.6121 MB / 0.5913 GB, free: 14.88 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.288e-05/0.5219, allocations: 106.8 kB / 0.5914 GB, free: 14.75 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001585/0.5235, allocations: 1.253 MB / 0.5926 GB, free: 13.48 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.168e-05/0.5235, allocations: 29.7 kB / 0.5927 GB, free: 13.45 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00062/0.5242, allocations: 0.7947 MB / 0.5934 GB, free: 12.64 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/0.5243, allocations: 154.9 kB / 0.5936 GB, free: 12.49 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00038/0.5247, allocations: 270.7 kB / 0.5939 GB, free: 12.22 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.5248, allocations: 353.9 kB / 0.5942 GB, free: 11.87 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005541/0.5254, allocations: 322.5 kB / 0.5945 GB, free: 11.55 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001263/0.5267, allocations: 1.058 MB / 0.5955 GB, free: 10.14 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002146/0.5288, allocations: 1.407 MB / 0.5969 GB, free: 8.363 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.48e-05/0.5288, allocations: 8 kB / 0.5969 GB, free: 8.355 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.003391/0.5322, allocations: 1.46 MB / 0.5983 GB, free: 6.883 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.23e-05/0.5323, allocations: 19.94 kB / 0.5984 GB, free: 6.863 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.913e-05/0.5324, allocations: 24 kB / 0.5984 GB, free: 6.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008033/0.5332, allocations: 153.3 kB / 0.5985 GB, free: 6.684 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/0.5344, allocations: 375.8 kB / 0.5989 GB, free: 6.316 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003534/0.5379, allocations: 3.862 MB / 0.6027 GB, free: 2.168 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009924/0.5389, allocations: 72.23 kB / 0.6027 GB, free: 2.098 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001912/0.5391, allocations: 91.98 kB / 0.6028 GB, free: 2.008 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 119 * 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 (155): * Single equations (assignments): 151 * 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.0006424/0.5397, allocations: 317.1 kB / 0.6031 GB, free: 1.688 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002828/0.54, allocations: 107.3 kB / 0.6032 GB, free: 1.582 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001926/0.5419, allocations: 0.862 MB / 0.6041 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.542, allocations: 4 kB / 0.6041 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.542, allocations: 0 / 0.6041 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.542, allocations: 0 / 0.6041 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00239/0.5444, allocations: 1.183 MB / 0.6052 GB, free: 15.42 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.5444, allocations: 4 kB / 0.6052 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002684/0.5446, allocations: 55.97 kB / 0.6053 GB, free: 15.36 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007668/0.5454, allocations: 171.2 kB / 0.6054 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.679e-05/0.5454, allocations: 20.09 kB / 0.6055 GB, free: 15.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003211/0.5486, allocations: 3.741 MB / 0.6091 GB, free: 11.12 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.5486, allocations: 7.938 kB / 0.6091 GB, free: 11.11 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001462/0.5501, allocations: 0.8481 MB / 0.6099 GB, free: 10.21 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002964/0.5504, allocations: 103.6 kB / 0.61 GB, free: 10.11 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001813/0.5506, allocations: 11.95 kB / 0.6101 GB, free: 10.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004153/0.551, allocations: 8 kB / 0.6101 GB, free: 10.09 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.932e-05/0.5511, allocations: 39.83 kB / 0.6101 GB, free: 10.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.444e-05/0.5511, allocations: 19.98 kB / 0.6101 GB, free: 10.04 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001221/0.5523, allocations: 0.8927 MB / 0.611 GB, free: 9.137 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5523, allocations: 0 / 0.611 GB, free: 9.137 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002106/0.5544, allocations: 0.6267 MB / 0.6116 GB, free: 8.508 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (27): * Single equations (assignments): 23 * 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.003162/0.5576, allocations: 2.063 MB / 0.6136 GB, free: 6.387 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001781/0.5594, allocations: 0.771 MB / 0.6144 GB, free: 5.621 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.5594, allocations: 0 / 0.6144 GB, free: 5.621 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005762/0.56, allocations: 392 kB / 0.6147 GB, free: 5.215 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.5611, allocations: 167.3 kB / 0.6149 GB, free: 5.059 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01461/0.5757, allocations: 9.664 MB / 0.6243 GB, free: 10.47 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000636/0.5763, allocations: 480.8 kB / 0.6248 GB, free: 9.965 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0009038/0.5772, allocations: 283.5 kB / 0.6251 GB, free: 9.703 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007059/0.5779, allocations: 0.4914 MB / 0.6255 GB, free: 9.211 MB / 478.1 MB Notification: Performance of SimCode: time 8.41e-07/0.5779, allocations: 0 / 0.6255 GB, free: 9.211 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07844/0.6564, allocations: 30.67 MB / 0.6555 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.78/14.43, allocations: 15.11 kB / 0.6555 GB, free: 10.78 MB / 0.4981 GB " [Timeout remaining time 645] (rm -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2.fmu > Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.23977660620585] Failed to read output from testmodel.py, exit status != 0: 14.572168979328126 14.599969063 14.105553726 Calling exit ...