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.001255/0.001255, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00127/0.00127, allocations: 191.5 kB / 16.25 MB, free: 6.629 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.27/1.27, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1844/0.1844, allocations: 15.31 MB / 305.4 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 63.91 kB / 369.9 MB, free: 4.219 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09374/0.09503, allocations: 53.61 MB / 423.5 MB, free: 14.55 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.3246/0.4197, allocations: 27.32 MB / 450.9 MB, free: 39.03 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01437/0.4341, allocations: 18 MB / 468.9 MB, free: 30.37 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001166/0.4353, allocations: 34.88 kB / 468.9 MB, free: 30.35 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0012/0.4365, allocations: 427.5 kB / 469.3 MB, free: 30.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002057/0.4385, allocations: 0.7788 MB / 470.1 MB, free: 29.69 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00641/0.445, allocations: 2.507 MB / 472.6 MB, free: 28.45 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001996/0.447, allocations: 1.627 MB / 474.2 MB, free: 27.65 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009143/0.4479, allocations: 0.9254 MB / 475.2 MB, free: 27.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000723/0.4486, allocations: 0.725 MB / 475.9 MB, free: 26.94 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007475/0.4494, allocations: 0.817 MB / 476.7 MB, free: 26.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001908/0.4496, allocations: 145.8 kB / 476.8 MB, free: 26.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005273/0.4549, allocations: 1.809 MB / 478.7 MB, free: 26.13 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003574/0.4553, allocations: 361.3 kB / 479 MB, free: 25.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008386/0.4561, allocations: 0.7453 MB / 479.7 MB, free: 25.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008664/0.4648, allocations: 3.308 MB / 483.1 MB, free: 24.06 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.4648, allocations: 3.938 kB / 483.1 MB, free: 24.06 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4648, allocations: 1.188 kB / 483.1 MB, free: 24.06 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.038e-05/0.4649, allocations: 0 / 483.1 MB, free: 24.06 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.004257/0.4691, allocations: 1.928 MB / 485 MB, free: 22.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.4692, allocations: 9.875 kB / 485 MB, free: 22.84 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001921/0.4694, allocations: 177.1 kB / 485.2 MB, free: 22.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00164/0.471, allocations: 382.6 kB / 485.5 MB, free: 22.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001495/0.4726, allocations: 0.9476 MB / 486.5 MB, free: 22.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001213/0.4727, allocations: 149.5 kB / 486.6 MB, free: 21.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001871/0.4729, allocations: 117.9 kB / 486.8 MB, free: 21.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002431/0.4753, allocations: 1.646 MB / 488.4 MB, free: 21.19 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.865e-05/0.4754, allocations: 5.312 kB / 488.4 MB, free: 21.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001238/0.4755, allocations: 51 kB / 488.5 MB, free: 21.14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.506e-05/0.4755, allocations: 30.25 kB / 488.5 MB, free: 21.14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002848/0.4784, allocations: 2.098 MB / 490.6 MB, free: 20.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006757/0.4851, allocations: 5.429 MB / 496 MB, free: 17.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.4863, allocations: 0.731 MB / 496.7 MB, free: 16.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004859/0.4868, allocations: 359.1 kB / 497.1 MB, free: 16.69 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006375/0.4932, allocations: 5.059 MB / 0.4904 GB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.686e-05/0.4932, allocations: 34.56 kB / 0.4904 GB, free: 12.72 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003175/0.4936, allocations: 80.72 kB / 0.4905 GB, free: 12.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 2.154e-06/0.4936, allocations: 3.719 kB / 0.4905 GB, free: 12.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.00118/0.4948, allocations: 0.7497 MB / 0.4912 GB, free: 12.22 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/0.4948, allocations: 110.8 kB / 0.4913 GB, free: 12.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001046/0.4959, allocations: 1.198 MB / 0.4925 GB, free: 11.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/0.4959, allocations: 33.7 kB / 0.4925 GB, free: 11.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003462/0.4962, allocations: 0.7708 MB / 0.4933 GB, free: 10.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.646e-05/0.4963, allocations: 136.3 kB / 0.4934 GB, free: 10.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002863/0.4966, allocations: 272.6 kB / 0.4937 GB, free: 10.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.221e-05/0.4967, allocations: 351.4 kB / 0.494 GB, free: 10.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004401/0.4972, allocations: 321 kB / 0.4943 GB, free: 10.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007015/0.4979, allocations: 1.043 MB / 0.4953 GB, free: 9.129 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001119/0.499, allocations: 1.395 MB / 0.4967 GB, free: 7.785 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.168e-05/0.499, allocations: 4.969 kB / 0.4967 GB, free: 7.785 MB / 366.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.001908/0.5009, allocations: 1.442 MB / 0.4981 GB, free: 6.688 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/0.501, allocations: 24.69 kB / 0.4981 GB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.197e-05/0.501, allocations: 24 kB / 0.4982 GB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006119/0.5016, allocations: 159.1 kB / 0.4983 GB, free: 6.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/0.5027, allocations: 379.7 kB / 0.4987 GB, free: 6.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00205/0.5047, allocations: 4.06 MB / 0.5026 GB, free: 1.871 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009281/0.5057, allocations: 77.84 kB / 0.5027 GB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.5058, allocations: 103.5 kB / 0.5028 GB, free: 1.699 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.0004914/0.5063, allocations: 320.2 kB / 0.5031 GB, free: 1.383 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001645/0.5065, allocations: 98.69 kB / 0.5032 GB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001675/0.5082, allocations: 0.8517 MB / 0.504 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.5082, allocations: 7.938 kB / 0.5041 GB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.5082, allocations: 0 / 0.5041 GB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.5082, allocations: 1.828 kB / 0.5041 GB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002139/0.5103, allocations: 1.27 MB / 0.5053 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.5103, allocations: 0 / 0.5053 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002538/0.5106, allocations: 61.56 kB / 0.5054 GB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007367/0.5114, allocations: 177.7 kB / 0.5055 GB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.228e-05/0.5114, allocations: 17.64 kB / 0.5055 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002738/0.5142, allocations: 3.938 MB / 0.5094 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.5142, allocations: 8.594 kB / 0.5094 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001256/0.5154, allocations: 0.8462 MB / 0.5102 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002717/0.5157, allocations: 176.6 kB / 0.5104 GB, free: 9.926 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001349/0.5159, allocations: 8.938 kB / 0.5104 GB, free: 9.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003833/0.5163, allocations: 13.45 kB / 0.5104 GB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.401e-05/0.5163, allocations: 41.64 kB / 0.5104 GB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.023e-05/0.5164, allocations: 13.36 kB / 0.5105 GB, free: 9.863 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001101/0.5175, allocations: 0.8852 MB / 0.5113 GB, free: 9.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5175, allocations: 0 / 0.5113 GB, free: 9.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002065/0.5196, allocations: 0.6138 MB / 0.5119 GB, free: 8.488 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.003008/0.5226, allocations: 2.027 MB / 0.5139 GB, free: 6.527 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001807/0.5244, allocations: 0.8073 MB / 0.5147 GB, free: 5.809 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.5244, allocations: 4.188 kB / 0.5147 GB, free: 5.805 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004878/0.5249, allocations: 393.1 kB / 0.5151 GB, free: 5.426 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.5261, allocations: 167 kB / 0.5152 GB, free: 5.285 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01275/0.5389, allocations: 10.57 MB / 0.5256 GB, free: 9.84 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005894/0.5395, allocations: 1.056 MB / 0.5266 GB, free: 8.754 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001029/0.5405, allocations: 291.4 kB / 0.5269 GB, free: 8.473 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005711/0.5411, allocations: 0.4914 MB / 0.5273 GB, free: 7.98 MB / 398.1 MB Notification: Performance of SimCode: time 1.172e-06/0.5411, allocations: 4 kB / 0.5273 GB, free: 7.977 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04966/0.5908, allocations: 28.71 MB / 0.5554 GB, free: 11.44 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001954/0.591, allocations: 249.4 kB / 0.5556 GB, free: 11.18 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.514/3.105, allocations: 0 / 0.5556 GB, free: 11.18 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)