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.008074/0.008074, allocations: 101.8 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.00171/0.00171, allocations: 193 kB / 16.67 MB, free: 5.973 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.237/0.237, allocations: 15.32 MB / 305.9 MB, free: 15.22 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 63.89 kB / 424.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2469, allocations: 53.61 MB / 478.3 MB, free: 25.6 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.03121/0.2781, allocations: 27.15 MB / 0.4936 GB, free: 7.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02012/0.2983, allocations: 21.6 MB / 0.5147 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001252/0.2996, allocations: 19.88 kB / 0.5147 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001308/0.3009, allocations: 0.5313 MB / 0.5152 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002527/0.3034, allocations: 1.001 MB / 0.5162 GB, free: 352 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007593/0.311, allocations: 3.311 MB / 0.5195 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002401/0.3135, allocations: 1.805 MB / 0.5212 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001029/0.3145, allocations: 0.9418 MB / 0.5221 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007743/0.3153, allocations: 0.7868 MB / 0.5229 GB, free: 9.441 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009518/0.3162, allocations: 0.8834 MB / 0.5238 GB, free: 8.555 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000199/0.3165, allocations: 148 kB / 0.5239 GB, free: 8.41 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005662/0.3221, allocations: 2.063 MB / 0.5259 GB, free: 6.344 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004686/0.3226, allocations: 378.8 kB / 0.5263 GB, free: 5.973 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009287/0.3236, allocations: 0.8049 MB / 0.5271 GB, free: 5.164 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008226/0.3318, allocations: 3.947 MB / 0.5309 GB, free: 1.203 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3318, allocations: 0 / 0.5309 GB, free: 1.203 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3318, allocations: 4 kB / 0.5309 GB, free: 1.199 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.659e-05/0.3319, allocations: 0 / 0.5309 GB, free: 1.199 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.003567/0.3354, allocations: 2.085 MB / 0.533 GB, free: 15.06 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.404e-05/0.3355, allocations: 12.03 kB / 0.533 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003096/0.3358, allocations: 190.2 kB / 0.5332 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002135/0.338, allocations: 432 kB / 0.5336 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001603/0.3396, allocations: 1.052 MB / 0.5346 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001358/0.3397, allocations: 154.1 kB / 0.5348 GB, free: 13.17 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002107/0.34, allocations: 124 kB / 0.5349 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002616/0.3426, allocations: 1.752 MB / 0.5366 GB, free: 11.23 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.876e-05/0.3426, allocations: 3.938 kB / 0.5366 GB, free: 11.22 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001255/0.3428, allocations: 52 kB / 0.5366 GB, free: 11.17 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.567e-05/0.3428, allocations: 32 kB / 0.5367 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003314/0.3461, allocations: 2.315 MB / 0.5389 GB, free: 8.82 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007855/0.354, allocations: 5.566 MB / 0.5444 GB, free: 3.066 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001502/0.3555, allocations: 0.733 MB / 0.5451 GB, free: 2.305 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005606/0.3561, allocations: 368.3 kB / 0.5454 GB, free: 1.938 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008927/0.365, allocations: 5.685 MB / 0.551 GB, free: 11.55 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.628e-05/0.3651, allocations: 46.5 kB / 0.551 GB, free: 11.5 MB / 430.1 MB Notification: Performance of pre-optimization done (n=37): time 2.415e-06/0.3651, allocations: 0 / 0.551 GB, free: 11.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=37): time 0.001612/0.3667, allocations: 0.7925 MB / 0.5518 GB, free: 10.66 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.3668, allocations: 110.8 kB / 0.5519 GB, free: 10.52 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001503/0.3683, allocations: 1.291 MB / 0.5532 GB, free: 9.223 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.738e-05/0.3684, allocations: 33.7 kB / 0.5532 GB, free: 9.184 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005396/0.3689, allocations: 0.8343 MB / 0.554 GB, free: 8.336 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/0.3691, allocations: 150.1 kB / 0.5542 GB, free: 8.188 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004189/0.3695, allocations: 295.1 kB / 0.5544 GB, free: 7.895 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002283/0.3697, allocations: 357.9 kB / 0.5548 GB, free: 7.539 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004991/0.3702, allocations: 331.8 kB / 0.5551 GB, free: 7.215 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.3713, allocations: 1.152 MB / 0.5562 GB, free: 5.652 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001725/0.373, allocations: 1.533 MB / 0.5577 GB, free: 3.711 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.258e-05/0.373, allocations: 8 kB / 0.5577 GB, free: 3.703 MB / 430.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002389/0.3754, allocations: 1.547 MB / 0.5592 GB, free: 2.145 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.416e-05/0.3755, allocations: 24.16 kB / 0.5593 GB, free: 2.121 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.967e-05/0.3755, allocations: 28 kB / 0.5593 GB, free: 2.094 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006244/0.3761, allocations: 153.4 kB / 0.5594 GB, free: 1.938 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/0.3773, allocations: 395.4 kB / 0.5598 GB, free: 1.551 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003242/0.3805, allocations: 4.074 MB / 0.5638 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/0.3817, allocations: 189.9 kB / 0.564 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001465/0.3818, allocations: 104.1 kB / 0.5641 GB, free: 12.85 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.0005233/0.3824, allocations: 337.1 kB / 0.5644 GB, free: 12.51 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002072/0.3826, allocations: 106.6 kB / 0.5645 GB, free: 12.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001803/0.3844, allocations: 0.9442 MB / 0.5654 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.3844, allocations: 4 kB / 0.5654 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.3844, allocations: 0 / 0.5654 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.3844, allocations: 4 kB / 0.5654 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002129/0.3866, allocations: 1.381 MB / 0.5668 GB, free: 9.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.3866, allocations: 4 kB / 0.5668 GB, free: 9.906 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002497/0.3868, allocations: 59.91 kB / 0.5668 GB, free: 9.848 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007199/0.3876, allocations: 171.6 kB / 0.567 GB, free: 9.668 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.16e-05/0.3876, allocations: 12 kB / 0.567 GB, free: 9.656 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002868/0.3905, allocations: 3.951 MB / 0.5709 GB, free: 5.363 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.698e-06/0.3905, allocations: 4 kB / 0.5709 GB, free: 5.359 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001482/0.392, allocations: 0.901 MB / 0.5717 GB, free: 4.402 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003078/0.3923, allocations: 199.4 kB / 0.5719 GB, free: 4.188 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001276/0.3925, allocations: 12 kB / 0.5719 GB, free: 4.176 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003888/0.3928, allocations: 8 kB / 0.572 GB, free: 4.168 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.667e-05/0.3929, allocations: 43.89 kB / 0.572 GB, free: 4.125 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.41e-05/0.393, allocations: 20 kB / 0.572 GB, free: 4.105 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001309/0.3943, allocations: 0.9547 MB / 0.5729 GB, free: 3.148 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3943, allocations: 0 / 0.5729 GB, free: 3.148 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002418/0.3967, allocations: 0.7019 MB / 0.5736 GB, free: 2.445 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.003112/0.3998, allocations: 2.173 MB / 0.5758 GB, free: 208 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001845/0.4017, allocations: 0.8499 MB / 0.5766 GB, free: 15.36 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.749e-06/0.4017, allocations: 4 kB / 0.5766 GB, free: 15.36 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005398/0.4023, allocations: 394.2 kB / 0.577 GB, free: 14.95 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.4034, allocations: 196.5 kB / 0.5772 GB, free: 14.76 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0137/0.4171, allocations: 10.4 MB / 0.5873 GB, free: 3.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006801/0.4178, allocations: 1.095 MB / 0.5884 GB, free: 2.211 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008968/0.4187, allocations: 300.8 kB / 0.5887 GB, free: 1.918 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006066/0.4194, allocations: 0.5383 MB / 0.5892 GB, free: 1.379 MB / 462.1 MB Notification: Performance of SimCode: time 6.82e-07/0.4194, allocations: 0 / 0.5892 GB, free: 1.379 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3087/0.7281, allocations: 32.47 MB / 0.6209 GB, free: 114.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 24.16/24.89, allocations: 10.94 kB / 0.6209 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)