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.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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.001251/0.001251, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001244/0.001244, allocations: 195.3 kB / 16.14 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1966/0.1966, allocations: 15.32 MB / 305.3 MB, free: 15.38 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 55.91 kB / 369.8 MB, free: 4.352 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0953/0.09667, allocations: 53.61 MB / 423.4 MB, free: 14.69 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.CheckSubstancesData.StandardElectrochemicalCell2): time 0.3005/0.3972, allocations: 27.32 MB / 450.7 MB, free: 39.07 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0137/0.4109, allocations: 18.16 MB / 468.9 MB, free: 30.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001015/0.412, allocations: 38.75 kB / 468.9 MB, free: 30.36 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001008/0.413, allocations: 418.5 kB / 469.3 MB, free: 30.16 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001715/0.4147, allocations: 0.7811 MB / 470.1 MB, free: 29.71 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006093/0.4208, allocations: 2.448 MB / 472.5 MB, free: 28.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001727/0.4226, allocations: 1.598 MB / 474.1 MB, free: 27.67 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008197/0.4234, allocations: 0.7994 MB / 474.9 MB, free: 27.31 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000654/0.424, allocations: 0.6737 MB / 475.6 MB, free: 27.08 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007263/0.4248, allocations: 0.7845 MB / 476.4 MB, free: 26.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001645/0.425, allocations: 90.22 kB / 476.5 MB, free: 26.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004949/0.4299, allocations: 1.715 MB / 478.2 MB, free: 26.33 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002542/0.4302, allocations: 311.2 kB / 478.5 MB, free: 26.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005813/0.4308, allocations: 0.6984 MB / 479.2 MB, free: 25.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005493/0.4363, allocations: 3.233 MB / 482.4 MB, free: 24.4 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.4363, allocations: 0 / 482.4 MB, free: 24.4 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.4363, allocations: 4 kB / 482.4 MB, free: 24.4 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.418e-05/0.4363, allocations: 1.5 kB / 482.4 MB, free: 24.4 MB / 366.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.002919/0.4393, allocations: 1.921 MB / 484.3 MB, free: 23.19 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.4393, allocations: 8.5 kB / 484.4 MB, free: 23.19 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001759/0.4395, allocations: 178.1 kB / 484.5 MB, free: 23.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001482/0.441, allocations: 389.5 kB / 484.9 MB, free: 22.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001284/0.4423, allocations: 0.9482 MB / 485.9 MB, free: 22.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001161/0.4424, allocations: 149.8 kB / 486 MB, free: 22.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001705/0.4426, allocations: 116.5 kB / 486.1 MB, free: 22.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002181/0.4448, allocations: 1.646 MB / 487.8 MB, free: 21.53 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.521e-05/0.4448, allocations: 9.906 kB / 487.8 MB, free: 21.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000116/0.4449, allocations: 50.78 kB / 487.8 MB, free: 21.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.486e-05/0.4449, allocations: 29.91 kB / 487.9 MB, free: 21.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002681/0.4476, allocations: 2.105 MB / 490 MB, free: 20.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006129/0.4538, allocations: 5.43 MB / 495.4 MB, free: 17.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.4548, allocations: 0.728 MB / 496.1 MB, free: 17.17 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004767/0.4553, allocations: 357.3 kB / 496.5 MB, free: 17.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005616/0.4609, allocations: 5.049 MB / 0.4898 GB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.678e-05/0.461, allocations: 42.16 kB / 0.4898 GB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002514/0.4612, allocations: 76.72 kB / 0.4899 GB, free: 13 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.813e-06/0.4612, allocations: 0 / 0.4899 GB, free: 13 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.001123/0.4624, allocations: 0.7552 MB / 0.4906 GB, free: 12.56 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/0.4624, allocations: 114.5 kB / 0.4907 GB, free: 12.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/0.4635, allocations: 1.195 MB / 0.4919 GB, free: 11.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.4635, allocations: 29.7 kB / 0.4919 GB, free: 11.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003282/0.4638, allocations: 0.7717 MB / 0.4927 GB, free: 11.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.624e-05/0.4639, allocations: 139.3 kB / 0.4928 GB, free: 11.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002578/0.4642, allocations: 276.5 kB / 0.4931 GB, free: 11.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.502e-05/0.4642, allocations: 351.7 kB / 0.4934 GB, free: 10.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004225/0.4647, allocations: 320.1 kB / 0.4937 GB, free: 10.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006901/0.4654, allocations: 1.045 MB / 0.4947 GB, free: 9.469 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.4665, allocations: 1.39 MB / 0.4961 GB, free: 8.125 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.999e-06/0.4665, allocations: 8.031 kB / 0.4961 GB, free: 8.125 MB / 366.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.001806/0.4683, allocations: 1.454 MB / 0.4975 GB, free: 7.309 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.4683, allocations: 21.66 kB / 0.4975 GB, free: 7.289 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.915e-05/0.4683, allocations: 24 kB / 0.4976 GB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005574/0.4689, allocations: 159.9 kB / 0.4977 GB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009536/0.4699, allocations: 372 kB / 0.4981 GB, free: 6.812 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001867/0.4717, allocations: 3.867 MB / 0.5018 GB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008517/0.4726, allocations: 78.62 kB / 0.5019 GB, free: 2.633 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/0.4727, allocations: 95.23 kB / 0.502 GB, free: 2.543 MB / 366.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.0003848/0.4731, allocations: 320 kB / 0.5023 GB, free: 2.227 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00017/0.4733, allocations: 99.25 kB / 0.5024 GB, free: 2.129 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001524/0.4748, allocations: 0.8617 MB / 0.5032 GB, free: 1.344 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.4749, allocations: 4.984 kB / 0.5033 GB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.185e-06/0.4749, allocations: 0 / 0.5033 GB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.4749, allocations: 1.312 kB / 0.5033 GB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001755/0.4766, allocations: 1.254 MB / 0.5045 GB, free: 228 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-06/0.4767, allocations: 0.75 kB / 0.5045 GB, free: 228 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002465/0.4769, allocations: 65.27 kB / 0.5045 GB, free: 172 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006835/0.4776, allocations: 178.9 kB / 0.5047 GB, free: 16 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.107e-05/0.4777, allocations: 21 kB / 0.5047 GB, free: 0 / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002552/0.4802, allocations: 3.734 MB / 0.5084 GB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.4802, allocations: 4.547 kB / 0.5084 GB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001161/0.4814, allocations: 0.8617 MB / 0.5092 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002311/0.4816, allocations: 169.3 kB / 0.5094 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000133/0.4818, allocations: 9.125 kB / 0.5094 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003839/0.4822, allocations: 20.56 kB / 0.5094 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.891e-05/0.4822, allocations: 34.25 kB / 0.5094 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.912e-05/0.4823, allocations: 20.98 kB / 0.5095 GB, free: 10.91 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001073/0.4834, allocations: 0.8853 MB / 0.5103 GB, free: 10.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.363e-06/0.4834, allocations: 0 / 0.5103 GB, free: 10.13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00186/0.4852, allocations: 0.6136 MB / 0.5109 GB, free: 9.531 MB / 382.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.002563/0.4878, allocations: 2.033 MB / 0.5129 GB, free: 7.566 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001495/0.4893, allocations: 0.7797 MB / 0.5137 GB, free: 6.875 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.4893, allocations: 0 / 0.5137 GB, free: 6.875 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004447/0.4898, allocations: 381.9 kB / 0.514 GB, free: 6.504 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.4908, allocations: 157.8 kB / 0.5142 GB, free: 6.371 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/0.5021, allocations: 10.57 MB / 0.5245 GB, free: 10.92 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005393/0.5026, allocations: 1.063 MB / 0.5255 GB, free: 9.824 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009657/0.5036, allocations: 289.5 kB / 0.5258 GB, free: 9.543 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005309/0.5041, allocations: 495.2 kB / 0.5263 GB, free: 9.062 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.5041, allocations: 0 / 0.5263 GB, free: 9.062 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0433/0.5475, allocations: 28.14 MB / 0.5538 GB, free: 13.07 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002081/0.5477, allocations: 244.2 kB / 0.554 GB, free: 12.82 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.352/2.9, allocations: 4 kB / 0.554 GB, free: 12.81 MB / 430.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/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)