Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 91.61 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001215/0.001216, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1994/0.1994, allocations: 15.26 MB / 306.3 MB, free: 15.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002996/0.0002998, allocations: 12 kB / 371.6 MB, free: 3.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3045, allocations: 54.62 MB / 426.2 MB, free: 39.93 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011:65: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 1.4.0/package.mo:3011:6-3011:65: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.Examples.CheckSubstancesData.StandardElectrochemicalCell2): time 0.006656/0.3112, allocations: 7.251 MB / 433.4 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01594/0.3271, allocations: 16.74 MB / 450.2 MB, free: 25.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00156/0.3288, allocations: 31.94 kB / 450.2 MB, free: 25.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001207/0.33, allocations: 434.4 kB / 450.6 MB, free: 25.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002561/0.3326, allocations: 0.8692 MB / 451.5 MB, free: 24.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00673/0.3393, allocations: 2.281 MB / 453.8 MB, free: 23.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001991/0.3413, allocations: 1.509 MB / 455.3 MB, free: 22.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007185/0.342, allocations: 0.7129 MB / 456 MB, free: 22.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006156/0.3427, allocations: 0.5789 MB / 456.6 MB, free: 22.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000723/0.3434, allocations: 0.7124 MB / 457.3 MB, free: 22.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000124/0.3435, allocations: 74.47 kB / 457.4 MB, free: 22.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004395/0.3479, allocations: 1.655 MB / 459 MB, free: 21.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002315/0.3482, allocations: 280.5 kB / 459.3 MB, free: 21.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000259/0.3484, allocations: 278.1 kB / 459.6 MB, free: 21.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002911/0.3514, allocations: 2.596 MB / 462.2 MB, free: 20.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.3514, allocations: 7.938 kB / 462.2 MB, free: 20.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3514, allocations: 0 / 462.2 MB, free: 20.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.479e-05/0.3514, allocations: 0 / 462.2 MB, free: 20.48 MB / 350.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.002419/0.3538, allocations: 1.649 MB / 463.8 MB, free: 19.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.3539, allocations: 13.09 kB / 463.8 MB, free: 19.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001713/0.3541, allocations: 189.7 kB / 464 MB, free: 19.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00131/0.3554, allocations: 379.7 kB / 464.4 MB, free: 19.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001202/0.3566, allocations: 0.9061 MB / 465.3 MB, free: 18.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001118/0.3567, allocations: 145.4 kB / 465.4 MB, free: 18.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001687/0.3569, allocations: 120.9 kB / 465.5 MB, free: 18.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002287/0.3592, allocations: 1.637 MB / 467.2 MB, free: 17.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.715e-05/0.3592, allocations: 0 / 467.2 MB, free: 17.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000122/0.3594, allocations: 56.61 kB / 467.2 MB, free: 17.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.167e-05/0.3594, allocations: 29.75 kB / 467.3 MB, free: 17.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003334/0.3627, allocations: 2.092 MB / 469.4 MB, free: 17.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006987/0.3697, allocations: 5.395 MB / 474.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001185/0.371, allocations: 0.7243 MB / 475.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005289/0.3715, allocations: 359 kB / 475.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006244/0.3778, allocations: 4.944 MB / 480.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/0.3778, allocations: 37.72 kB / 480.8 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003492/0.3782, allocations: 80.59 kB / 480.9 MB, free: 9.262 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 2.404e-06/0.3782, allocations: 0.8125 kB / 480.9 MB, free: 9.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.001389/0.3796, allocations: 0.7565 MB / 481.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.3796, allocations: 107.9 kB / 481.8 MB, free: 8.699 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0016/0.3812, allocations: 1.19 MB / 482.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.38e-05/0.3813, allocations: 30.95 kB / 483 MB, free: 8.141 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004369/0.3817, allocations: 0.7708 MB / 483.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.3818, allocations: 138.6 kB / 483.9 MB, free: 7.414 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.865e-05/0.3819, allocations: 24.5 kB / 483.9 MB, free: 7.395 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.812e-05/0.382, allocations: 352.9 kB / 484.2 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005082/0.3825, allocations: 314.8 kB / 484.6 MB, free: 6.965 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000835/0.3834, allocations: 1.04 MB / 485.6 MB, free: 5.848 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007164/0.3841, allocations: 483.1 kB / 486.1 MB, free: 5.633 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.504e-05/0.3841, allocations: 7.656 kB / 486.1 MB, free: 5.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002207/0.3863, allocations: 1.43 MB / 487.5 MB, free: 5.031 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.916e-05/0.3864, allocations: 23.14 kB / 487.5 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.198e-05/0.3864, allocations: 27.98 kB / 487.6 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006104/0.387, allocations: 158.7 kB / 487.7 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00108/0.3881, allocations: 372.5 kB / 488.1 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002006/0.3901, allocations: 3.871 MB / 491.9 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009314/0.3911, allocations: 77.75 kB / 492 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/0.3912, allocations: 93.33 kB / 492.1 MB, free: 1.016 MB / 350.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 (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000411/0.3916, allocations: 316.5 kB / 492.4 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.3918, allocations: 101.3 kB / 492.5 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001769/0.3936, allocations: 0.8596 MB / 493.4 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.3936, allocations: 3.312 kB / 493.4 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.3936, allocations: 1.938 kB / 493.4 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.3936, allocations: 3.281 kB / 493.4 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002318/0.3959, allocations: 1.249 MB / 494.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.3959, allocations: 4 kB / 494.6 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003136/0.3963, allocations: 53.94 kB / 494.7 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007534/0.397, allocations: 190.8 kB / 494.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.083e-05/0.3971, allocations: 13.78 kB / 494.9 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00285/0.3999, allocations: 3.741 MB / 498.6 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.3999, allocations: 7.969 kB / 498.6 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.4011, allocations: 0.8467 MB / 499.5 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003131/0.4014, allocations: 203.8 kB / 499.7 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001198/0.4016, allocations: 11.98 kB / 499.7 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003675/0.4019, allocations: 8 kB / 499.7 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.371e-05/0.402, allocations: 47.86 kB / 499.8 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.262e-05/0.4021, allocations: 19.98 kB / 499.8 MB, free: 10.08 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00104/0.4031, allocations: 0.857 MB / 0.4889 GB, free: 9.219 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4031, allocations: 0 / 0.4889 GB, free: 9.219 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002166/0.4053, allocations: 0.6199 MB / 0.4895 GB, free: 8.598 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.002678/0.408, allocations: 2.017 MB / 0.4915 GB, free: 6.527 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.4097, allocations: 0.7899 MB / 0.4922 GB, free: 5.742 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/0.4097, allocations: 4.5 kB / 0.4922 GB, free: 5.738 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004884/0.4102, allocations: 379.4 kB / 0.4926 GB, free: 5.344 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001045/0.4113, allocations: 159.1 kB / 0.4928 GB, free: 5.195 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01061/0.4219, allocations: 6.895 MB / 0.4995 GB, free: 13.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008437/0.4228, allocations: 1.059 MB / 0.5005 GB, free: 12.56 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001169/0.424, allocations: 292.2 kB / 0.5008 GB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006847/0.4247, allocations: 0.4914 MB / 0.5013 GB, free: 11.8 MB / 382.1 MB Notification: Performance of SimCode: time 1.282e-06/0.4247, allocations: 0 / 0.5013 GB, free: 11.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.051/0.4757, allocations: 27.73 MB / 0.5284 GB, free: 340 kB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001802/0.4759, allocations: 219.6 kB / 0.5286 GB, free: 100 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.529/3.005, allocations: 2.812 kB / 0.5286 GB, free: 100 kB / 398.1 MB (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell2.fmu > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) Environment - environmentSimulation: