Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.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.StandardElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell",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.0008888/0.0008887, allocations: 92.23 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.0008618/0.0008619, 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.344/1.344, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2356/0.2356, allocations: 15.27 MB / 306.3 MB, free: 15.77 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003123/0.0003124, allocations: 8.219 kB / 371.6 MB, free: 3.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2747, allocations: 54.62 MB / 426.2 MB, free: 39.98 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.StandardElectrochemicalCell): time 0.006149/0.2809, allocations: 7.914 MB / 434.1 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01507/0.296, allocations: 19.86 MB / 454 MB, free: 23.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001152/0.2972, allocations: 38.97 kB / 454 MB, free: 23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00114/0.2983, allocations: 496.5 kB / 454.5 MB, free: 22.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002325/0.3007, allocations: 1.041 MB / 455.5 MB, free: 22.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00683/0.3075, allocations: 2.68 MB / 458.2 MB, free: 20.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002536/0.3101, allocations: 1.657 MB / 459.9 MB, free: 19.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008623/0.311, allocations: 0.7478 MB / 460.6 MB, free: 19.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006916/0.3117, allocations: 0.6375 MB / 461.2 MB, free: 19.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008987/0.3126, allocations: 0.7894 MB / 462 MB, free: 18.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000175/0.3128, allocations: 78 kB / 462.1 MB, free: 18.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005433/0.3182, allocations: 1.947 MB / 464.1 MB, free: 18.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004186/0.3186, allocations: 301.2 kB / 464.3 MB, free: 18.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004351/0.3191, allocations: 297.2 kB / 464.6 MB, free: 18.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003794/0.3229, allocations: 2.963 MB / 467.6 MB, free: 17.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3229, allocations: 1.156 kB / 467.6 MB, free: 17.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3229, allocations: 0 / 467.6 MB, free: 17.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.821e-05/0.3229, allocations: 0 / 467.6 MB, free: 17.02 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: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.002698/0.3256, allocations: 1.781 MB / 469.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.3257, allocations: 10.16 kB / 469.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001989/0.3259, allocations: 185.5 kB / 469.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001541/0.3274, allocations: 440.4 kB / 470 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001352/0.3288, allocations: 0.9569 MB / 471 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/0.3289, allocations: 155.5 kB / 471.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001841/0.3291, allocations: 125.9 kB / 471.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002419/0.3315, allocations: 1.744 MB / 473 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.58e-05/0.3316, allocations: 9.641 kB / 473 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001219/0.3317, allocations: 55.44 kB / 473 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.5e-05/0.3317, allocations: 32.19 kB / 473.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003103/0.3349, allocations: 2.301 MB / 475.4 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006464/0.3413, allocations: 5.536 MB / 480.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/0.3425, allocations: 0.7436 MB / 481.7 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005414/0.3431, allocations: 355.7 kB / 482 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006181/0.3493, allocations: 5.577 MB / 487.6 MB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.704e-05/0.3493, allocations: 48.48 kB / 487.6 MB, free: 5.047 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.883e-06/0.3493, allocations: 0 / 487.6 MB, free: 5.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.001334/0.3506, allocations: 0.7937 MB / 488.4 MB, free: 4.602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.899e-05/0.3507, allocations: 115.7 kB / 488.5 MB, free: 4.469 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001314/0.352, allocations: 1.277 MB / 489.8 MB, free: 3.922 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.046e-05/0.352, allocations: 31.08 kB / 489.8 MB, free: 3.887 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003783/0.3524, allocations: 0.8333 MB / 490.7 MB, free: 3.211 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.555e-05/0.3525, allocations: 150.1 kB / 490.8 MB, free: 3.102 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.846e-05/0.3526, allocations: 25.5 kB / 490.8 MB, free: 3.082 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.585e-05/0.3527, allocations: 357.3 kB / 491.2 MB, free: 2.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004779/0.3531, allocations: 331.5 kB / 491.5 MB, free: 2.645 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007698/0.3539, allocations: 1.149 MB / 492.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006783/0.3546, allocations: 0.5038 MB / 493.2 MB, free: 1.137 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.354e-05/0.3546, allocations: 6.406 kB / 493.2 MB, free: 1.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.001956/0.3566, allocations: 1.53 MB / 494.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.954e-05/0.3566, allocations: 20.22 kB / 494.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.742e-05/0.3567, allocations: 32.09 kB / 494.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005996/0.3573, allocations: 165.3 kB / 494.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/0.3584, allocations: 403.3 kB / 495.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002565/0.361, allocations: 3.864 MB / 499.2 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/0.362, allocations: 198.3 kB / 499.4 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001472/0.3622, allocations: 99.98 kB / 499.5 MB, free: 10.77 MB / 366.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 (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.0005103/0.3627, allocations: 337 kB / 499.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001881/0.3629, allocations: 110.6 kB / 499.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001964/0.3649, allocations: 0.9502 MB / 0.4891 GB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.3649, allocations: 4 kB / 0.4891 GB, free: 9.332 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.3649, allocations: 0 / 0.4891 GB, free: 9.332 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.3649, allocations: 4 kB / 0.4891 GB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002306/0.3672, allocations: 1.354 MB / 0.4904 GB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.3673, allocations: 8.031 kB / 0.4905 GB, free: 7.875 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002391/0.3675, allocations: 59.91 kB / 0.4905 GB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006952/0.3682, allocations: 179.1 kB / 0.4907 GB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.041e-05/0.3682, allocations: 19.92 kB / 0.4907 GB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002591/0.3708, allocations: 3.754 MB / 0.4944 GB, free: 3.523 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.74e-06/0.3709, allocations: 7.953 kB / 0.4944 GB, free: 3.516 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.372, allocations: 0.9039 MB / 0.4953 GB, free: 2.555 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002992/0.3723, allocations: 219.6 kB / 0.4955 GB, free: 2.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001356/0.3725, allocations: 15.98 kB / 0.4955 GB, free: 2.305 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003641/0.3728, allocations: 11.94 kB / 0.4955 GB, free: 2.293 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.166e-05/0.3729, allocations: 35.97 kB / 0.4955 GB, free: 2.258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.061e-05/0.3729, allocations: 19.94 kB / 0.4955 GB, free: 2.238 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001091/0.374, allocations: 0.9346 MB / 0.4965 GB, free: 1.301 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.374, allocations: 4 kB / 0.4965 GB, free: 1.297 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002286/0.3763, allocations: 0.6941 MB / 0.4971 GB, free: 0.6016 MB / 366.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 (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.002709/0.379, allocations: 2.176 MB / 0.4993 GB, free: 14.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001511/0.3806, allocations: 0.8339 MB / 0.5001 GB, free: 13.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3806, allocations: 0 / 0.5001 GB, free: 13.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004603/0.3811, allocations: 401.9 kB / 0.5005 GB, free: 13.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.3821, allocations: 180.7 kB / 0.5006 GB, free: 12.94 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009314/0.3914, allocations: 7.527 MB / 0.508 GB, free: 4.684 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005964/0.3921, allocations: 1.095 MB / 0.5091 GB, free: 3.559 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001088/0.3931, allocations: 311.8 kB / 0.5094 GB, free: 3.273 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006271/0.3938, allocations: 0.5418 MB / 0.5099 GB, free: 2.734 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3938, allocations: 0 / 0.5099 GB, free: 2.734 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04742/0.4412, allocations: 31.1 MB / 0.5403 GB, free: 3.902 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001806/0.4414, allocations: 225.2 kB / 0.5405 GB, free: 3.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.571/3.012, allocations: 0 / 0.5405 GB, free: 3.66 MB / 414.1 MB (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell.fmu > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1) Environment - environmentSimulation: