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.00716/0.00716, allocations: 103.6 kB / 15.73 MB, free: 6.035 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.001733/0.001733, allocations: 193.8 kB / 16.67 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1708/0.1708, allocations: 15.32 MB / 305.9 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 67.89 kB / 424.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2529, allocations: 53.61 MB / 478.3 MB, free: 25.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.StandardElectrochemicalCell): time 0.03114/0.2841, allocations: 27.12 MB / 0.4936 GB, free: 7.605 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02115/0.3053, allocations: 21.59 MB / 0.5147 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001436/0.3068, allocations: 23.88 kB / 0.5147 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001482/0.3083, allocations: 0.5313 MB / 0.5152 GB, free: 1.371 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002795/0.3111, allocations: 0.9892 MB / 0.5162 GB, free: 384 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008167/0.3193, allocations: 3.28 MB / 0.5194 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002646/0.3219, allocations: 1.805 MB / 0.5211 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001179/0.3231, allocations: 0.9496 MB / 0.5221 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008936/0.324, allocations: 0.7868 MB / 0.5228 GB, free: 9.496 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001045/0.3251, allocations: 0.8834 MB / 0.5237 GB, free: 8.609 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002224/0.3253, allocations: 152 kB / 0.5239 GB, free: 8.461 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00626/0.3316, allocations: 2.056 MB / 0.5259 GB, free: 6.402 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006493/0.3323, allocations: 378.8 kB / 0.5262 GB, free: 6.031 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001154/0.3334, allocations: 0.8165 MB / 0.527 GB, free: 5.211 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009136/0.3426, allocations: 3.935 MB / 0.5309 GB, free: 1.262 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3426, allocations: 0 / 0.5309 GB, free: 1.262 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3427, allocations: 0 / 0.5309 GB, free: 1.262 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.628e-05/0.3427, allocations: 0 / 0.5309 GB, free: 1.262 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.004163/0.3469, allocations: 2.085 MB / 0.5329 GB, free: 15.12 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.347, allocations: 16.02 kB / 0.5329 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002112/0.3472, allocations: 186.3 kB / 0.5331 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001857/0.349, allocations: 436 kB / 0.5335 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001758/0.3508, allocations: 1.048 MB / 0.5345 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001465/0.351, allocations: 158.1 kB / 0.5347 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002029/0.3512, allocations: 124 kB / 0.5348 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002604/0.3538, allocations: 1.752 MB / 0.5365 GB, free: 11.29 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/0.3538, allocations: 0 / 0.5365 GB, free: 11.29 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001485/0.354, allocations: 52 kB / 0.5366 GB, free: 11.23 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.761e-05/0.354, allocations: 32 kB / 0.5366 GB, free: 11.2 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003283/0.3573, allocations: 2.319 MB / 0.5389 GB, free: 8.879 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007886/0.3652, allocations: 5.562 MB / 0.5443 GB, free: 3.129 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.3666, allocations: 0.7368 MB / 0.545 GB, free: 2.363 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006084/0.3672, allocations: 364.4 kB / 0.5454 GB, free: 2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008097/0.3754, allocations: 5.693 MB / 0.5509 GB, free: 11.61 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.321e-05/0.3754, allocations: 46.5 kB / 0.551 GB, free: 11.55 MB / 430.1 MB Notification: Performance of pre-optimization done (n=37): time 2.074e-06/0.3754, allocations: 0 / 0.551 GB, free: 11.55 MB / 430.1 MB Notification: Performance of matching and sorting (n=37): time 0.001551/0.377, allocations: 0.7886 MB / 0.5517 GB, free: 10.71 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.045e-05/0.3771, allocations: 118.9 kB / 0.5518 GB, free: 10.57 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001503/0.3786, allocations: 1.291 MB / 0.5531 GB, free: 9.273 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.832e-05/0.3786, allocations: 29.7 kB / 0.5531 GB, free: 9.238 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005603/0.3792, allocations: 0.8304 MB / 0.5539 GB, free: 8.395 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.3793, allocations: 150.1 kB / 0.5541 GB, free: 8.246 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003451/0.3797, allocations: 295.1 kB / 0.5544 GB, free: 7.953 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.3798, allocations: 353.9 kB / 0.5547 GB, free: 7.602 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005163/0.3803, allocations: 331.8 kB / 0.555 GB, free: 7.277 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001055/0.3814, allocations: 1.152 MB / 0.5561 GB, free: 5.715 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00167/0.3831, allocations: 1.533 MB / 0.5576 GB, free: 3.773 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/0.3831, allocations: 8 kB / 0.5576 GB, free: 3.766 MB / 430.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002449/0.3856, allocations: 1.547 MB / 0.5592 GB, free: 2.207 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.313e-05/0.3856, allocations: 19.94 kB / 0.5592 GB, free: 2.188 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.91e-05/0.3857, allocations: 28 kB / 0.5592 GB, free: 2.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006634/0.3863, allocations: 161.3 kB / 0.5594 GB, free: 1.996 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/0.3875, allocations: 399.6 kB / 0.5597 GB, free: 1.605 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003046/0.3905, allocations: 4.07 MB / 0.5637 GB, free: 13.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/0.3916, allocations: 190.1 kB / 0.5639 GB, free: 13.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000142/0.3918, allocations: 99.98 kB / 0.564 GB, free: 12.91 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.0005007/0.3923, allocations: 333.1 kB / 0.5643 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001981/0.3925, allocations: 106.6 kB / 0.5644 GB, free: 12.47 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001785/0.3943, allocations: 0.9449 MB / 0.5653 GB, free: 11.46 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.3943, allocations: 4 kB / 0.5653 GB, free: 11.45 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.3943, allocations: 0 / 0.5653 GB, free: 11.45 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.3943, allocations: 8 kB / 0.5653 GB, free: 11.45 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002107/0.3964, allocations: 1.368 MB / 0.5667 GB, free: 9.984 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.3964, allocations: 4 kB / 0.5667 GB, free: 9.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000264/0.3967, allocations: 59.91 kB / 0.5667 GB, free: 9.922 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007423/0.3975, allocations: 175.6 kB / 0.5669 GB, free: 9.738 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.38e-05/0.3975, allocations: 15.94 kB / 0.5669 GB, free: 9.723 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002874/0.4004, allocations: 3.951 MB / 0.5708 GB, free: 5.43 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.4004, allocations: 4 kB / 0.5708 GB, free: 5.426 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00137/0.4018, allocations: 0.9127 MB / 0.5717 GB, free: 4.457 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00028/0.4021, allocations: 195.4 kB / 0.5719 GB, free: 4.246 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001496/0.4022, allocations: 12 kB / 0.5719 GB, free: 4.234 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004017/0.4027, allocations: 12.06 kB / 0.5719 GB, free: 4.223 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.649e-05/0.4027, allocations: 43.83 kB / 0.5719 GB, free: 4.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.99e-05/0.4028, allocations: 16 kB / 0.5719 GB, free: 4.164 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001192/0.404, allocations: 0.9547 MB / 0.5729 GB, free: 3.207 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.404, allocations: 0 / 0.5729 GB, free: 3.207 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002159/0.4061, allocations: 0.7019 MB / 0.5736 GB, free: 2.504 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.003105/0.4093, allocations: 2.176 MB / 0.5757 GB, free: 264 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001875/0.4112, allocations: 0.8453 MB / 0.5765 GB, free: 15.41 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.4112, allocations: 4 kB / 0.5765 GB, free: 15.41 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005267/0.4117, allocations: 403 kB / 0.5769 GB, free: 14.99 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001242/0.413, allocations: 187.2 kB / 0.5771 GB, free: 14.82 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01339/0.4264, allocations: 10.39 MB / 0.5872 GB, free: 3.41 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006957/0.4271, allocations: 1.095 MB / 0.5883 GB, free: 2.281 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009091/0.428, allocations: 304.5 kB / 0.5886 GB, free: 1.984 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006434/0.4287, allocations: 0.5383 MB / 0.5891 GB, free: 1.445 MB / 462.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4287, allocations: 0 / 0.5891 GB, free: 1.445 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2609/0.6896, allocations: 32.87 MB / 0.6212 GB, free: 114.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.47/24.16, allocations: 16.11 kB / 0.6212 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)