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.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.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.005586/0.005586, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001348/0.001348, allocations: 202.6 kB / 16.68 MB, free: 5.969 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1886/0.1886, allocations: 15.32 MB / 305.9 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 67.91 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/0.247, allocations: 53.6 MB / 478.3 MB, free: 25.79 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.StandardElectrochemicalCell): time 0.03463/0.2817, allocations: 27.72 MB / 0.4942 GB, free: 7.023 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0232/0.3049, allocations: 21.58 MB / 0.5153 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001246/0.3062, allocations: 19.88 kB / 0.5153 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001685/0.3079, allocations: 0.5313 MB / 0.5158 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003122/0.3111, allocations: 0.9971 MB / 0.5168 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008612/0.3197, allocations: 3.276 MB / 0.52 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003122/0.3229, allocations: 1.813 MB / 0.5217 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001621/0.3245, allocations: 0.9457 MB / 0.5227 GB, free: 9.707 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001356/0.3259, allocations: 0.7868 MB / 0.5234 GB, free: 8.918 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001495/0.3274, allocations: 0.8834 MB / 0.5243 GB, free: 8.031 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005176/0.328, allocations: 148 kB / 0.5244 GB, free: 7.887 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007129/0.3351, allocations: 2.056 MB / 0.5264 GB, free: 5.828 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007942/0.3359, allocations: 382.8 kB / 0.5268 GB, free: 5.453 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001346/0.3373, allocations: 0.8126 MB / 0.5276 GB, free: 4.637 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009192/0.3465, allocations: 3.945 MB / 0.5315 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.3466, allocations: 4 kB / 0.5315 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3466, allocations: 0 / 0.5315 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.313e-05/0.3466, allocations: 0 / 0.5315 GB, free: 0.6719 MB / 398.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.003796/0.3504, allocations: 2.151 MB / 0.5336 GB, free: 14.46 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.3505, allocations: 12.03 kB / 0.5336 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000254/0.3508, allocations: 190.3 kB / 0.5338 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001836/0.3526, allocations: 452.9 kB / 0.5342 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/0.3545, allocations: 1.041 MB / 0.5352 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001655/0.3547, allocations: 158.1 kB / 0.5354 GB, free: 12.56 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002454/0.3549, allocations: 132 kB / 0.5355 GB, free: 12.43 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003033/0.358, allocations: 1.748 MB / 0.5372 GB, free: 10.61 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.046e-05/0.358, allocations: 4 kB / 0.5372 GB, free: 10.61 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001491/0.3582, allocations: 52 kB / 0.5372 GB, free: 10.55 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.718e-05/0.3582, allocations: 28 kB / 0.5373 GB, free: 10.53 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003786/0.362, allocations: 2.319 MB / 0.5395 GB, free: 8.203 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008835/0.3709, allocations: 5.576 MB / 0.545 GB, free: 2.441 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001508/0.3724, allocations: 0.7329 MB / 0.5457 GB, free: 1.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006761/0.3731, allocations: 356.4 kB / 0.546 GB, free: 1.324 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008723/0.3819, allocations: 5.712 MB / 0.5516 GB, free: 10.92 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.976e-05/0.382, allocations: 42.56 kB / 0.5516 GB, free: 10.87 MB / 430.1 MB Notification: Performance of pre-optimization done (n=37): time 2.515e-06/0.382, allocations: 0 / 0.5516 GB, free: 10.87 MB / 430.1 MB Notification: Performance of matching and sorting (n=37): time 0.001758/0.3837, allocations: 0.7932 MB / 0.5524 GB, free: 10.02 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.314e-05/0.3838, allocations: 111 kB / 0.5525 GB, free: 9.891 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001731/0.3856, allocations: 1.299 MB / 0.5538 GB, free: 8.582 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.325e-05/0.3857, allocations: 29.7 kB / 0.5538 GB, free: 8.547 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006674/0.3863, allocations: 0.8646 MB / 0.5547 GB, free: 7.672 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001624/0.3865, allocations: 154.8 kB / 0.5548 GB, free: 7.52 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003868/0.3869, allocations: 295.4 kB / 0.5551 GB, free: 7.227 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.3871, allocations: 353.9 kB / 0.5554 GB, free: 6.875 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005586/0.3876, allocations: 335.8 kB / 0.5558 GB, free: 6.547 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001218/0.3889, allocations: 1.156 MB / 0.5569 GB, free: 4.98 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001918/0.3908, allocations: 1.533 MB / 0.5584 GB, free: 3.039 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.77e-05/0.3908, allocations: 8 kB / 0.5584 GB, free: 3.031 MB / 430.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002743/0.3936, allocations: 1.552 MB / 0.5599 GB, free: 1.469 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.286e-05/0.3936, allocations: 19.94 kB / 0.5599 GB, free: 1.449 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.571e-05/0.3937, allocations: 28 kB / 0.56 GB, free: 1.422 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006423/0.3943, allocations: 161.3 kB / 0.5601 GB, free: 1.258 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001228/0.3956, allocations: 399.4 kB / 0.5605 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003371/0.399, allocations: 4.074 MB / 0.5645 GB, free: 12.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/0.4001, allocations: 190.6 kB / 0.5646 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001779/0.4003, allocations: 104 kB / 0.5647 GB, free: 12.16 MB / 446.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 (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.0005501/0.4009, allocations: 325.1 kB / 0.5651 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002578/0.4011, allocations: 119.2 kB / 0.5652 GB, free: 11.72 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001902/0.403, allocations: 0.9483 MB / 0.5661 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/0.4031, allocations: 4 kB / 0.5661 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.4031, allocations: 0 / 0.5661 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.4031, allocations: 4 kB / 0.5661 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00254/0.4056, allocations: 1.368 MB / 0.5674 GB, free: 9.238 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/0.4057, allocations: 8 kB / 0.5674 GB, free: 9.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002741/0.406, allocations: 59.91 kB / 0.5675 GB, free: 9.172 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000784/0.4068, allocations: 179.5 kB / 0.5677 GB, free: 8.984 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.508e-05/0.4068, allocations: 12 kB / 0.5677 GB, free: 8.973 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003264/0.4101, allocations: 3.955 MB / 0.5715 GB, free: 4.676 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.416e-06/0.4101, allocations: 7.938 kB / 0.5716 GB, free: 4.668 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001462/0.4116, allocations: 0.9173 MB / 0.5725 GB, free: 3.695 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003309/0.412, allocations: 180.3 kB / 0.5726 GB, free: 3.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002174/0.4122, allocations: 23.88 kB / 0.5726 GB, free: 3.477 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004523/0.4126, allocations: 8 kB / 0.5727 GB, free: 3.469 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.723e-05/0.4127, allocations: 43.91 kB / 0.5727 GB, free: 3.426 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.015e-05/0.4128, allocations: 19.98 kB / 0.5727 GB, free: 3.406 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001398/0.4142, allocations: 0.9547 MB / 0.5736 GB, free: 2.449 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4142, allocations: 4 kB / 0.5737 GB, free: 2.445 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00226/0.4165, allocations: 0.7045 MB / 0.5743 GB, free: 1.738 MB / 446.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 (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.003592/0.4201, allocations: 2.199 MB / 0.5765 GB, free: 15.47 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001995/0.4221, allocations: 0.8534 MB / 0.5773 GB, free: 14.62 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/0.4222, allocations: 0 / 0.5773 GB, free: 14.62 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006207/0.4228, allocations: 390.6 kB / 0.5777 GB, free: 14.21 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001341/0.4241, allocations: 195.9 kB / 0.5779 GB, free: 14.03 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01619/0.4404, allocations: 10.45 MB / 0.5881 GB, free: 2.547 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000907/0.4413, allocations: 1.095 MB / 0.5892 GB, free: 1.418 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001017/0.4424, allocations: 308.2 kB / 0.5895 GB, free: 1.117 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007912/0.4432, allocations: 0.5344 MB / 0.59 GB, free: 0.582 MB / 462.1 MB Notification: Performance of SimCode: time 6.82e-07/0.4432, allocations: 0 / 0.59 GB, free: 0.582 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2686/0.7118, allocations: 32.47 MB / 0.6217 GB, free: 114.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 24.15/24.86, allocations: 6.938 kB / 0.6217 GB, free: 114.9 MB / 478.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/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)