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.007119/0.007119, allocations: 100.7 kB / 15.73 MB, free: 6.039 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.001669/0.001669, allocations: 186.9 kB / 16.67 MB, free: 5.977 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1946/0.1946, allocations: 15.34 MB / 305.9 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 67.91 kB / 424.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2554, allocations: 53.6 MB / 478.3 MB, free: 25.77 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.03553/0.2909, allocations: 26.54 MB / 0.493 GB, free: 8.18 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01814/0.3091, allocations: 18.16 MB / 0.5108 GB, free: 5.949 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001164/0.3103, allocations: 19.88 kB / 0.5108 GB, free: 5.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001538/0.3119, allocations: 476.6 kB / 0.5112 GB, free: 5.461 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002849/0.3147, allocations: 0.8339 MB / 0.512 GB, free: 4.621 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007334/0.3221, allocations: 2.791 MB / 0.5148 GB, free: 1.812 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002457/0.3246, allocations: 1.637 MB / 0.5164 GB, free: 168 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001331/0.3259, allocations: 0.9181 MB / 0.5173 GB, free: 15.22 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000976/0.3269, allocations: 0.7127 MB / 0.518 GB, free: 14.51 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001216/0.3281, allocations: 0.7978 MB / 0.5187 GB, free: 13.71 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003792/0.3285, allocations: 144 kB / 0.5189 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005411/0.334, allocations: 1.751 MB / 0.5206 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005215/0.3345, allocations: 358.8 kB / 0.5209 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001152/0.3357, allocations: 0.7467 MB / 0.5217 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007592/0.3433, allocations: 3.472 MB / 0.5251 GB, free: 7.227 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3433, allocations: 0 / 0.5251 GB, free: 7.227 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3433, allocations: 0 / 0.5251 GB, free: 7.227 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.049e-05/0.3434, allocations: 0 / 0.5251 GB, free: 7.227 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: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.003788/0.3472, allocations: 1.922 MB / 0.5269 GB, free: 5.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.3472, allocations: 8.031 kB / 0.5269 GB, free: 5.242 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002768/0.3475, allocations: 181.8 kB / 0.5271 GB, free: 5.055 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001625/0.3492, allocations: 384.4 kB / 0.5275 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001698/0.3509, allocations: 0.9846 MB / 0.5284 GB, free: 3.652 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001579/0.351, allocations: 153.9 kB / 0.5286 GB, free: 3.488 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000232/0.3513, allocations: 116 kB / 0.5287 GB, free: 3.375 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002724/0.354, allocations: 1.649 MB / 0.5303 GB, free: 1.652 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.015e-05/0.3541, allocations: 4 kB / 0.5303 GB, free: 1.648 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001319/0.3542, allocations: 44 kB / 0.5304 GB, free: 1.605 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.383e-05/0.3542, allocations: 35.94 kB / 0.5304 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003022/0.3573, allocations: 2.1 MB / 0.5324 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008119/0.3654, allocations: 5.405 MB / 0.5377 GB, free: 9.867 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001338/0.3668, allocations: 0.729 MB / 0.5384 GB, free: 9.109 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006025/0.3674, allocations: 356.4 kB / 0.5388 GB, free: 8.754 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007307/0.3747, allocations: 5.026 MB / 0.5437 GB, free: 3.148 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.3748, allocations: 42.55 kB / 0.5437 GB, free: 3.098 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003441/0.3751, allocations: 74.97 kB / 0.5438 GB, free: 3.023 MB / 414.1 MB Notification: Performance of pre-optimization done (n=34): time 2.895e-06/0.3751, allocations: 4 kB / 0.5438 GB, free: 3.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.001463/0.3766, allocations: 0.746 MB / 0.5445 GB, free: 2.223 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.738e-05/0.3767, allocations: 106.8 kB / 0.5446 GB, free: 2.094 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001512/0.3782, allocations: 1.202 MB / 0.5458 GB, free: 0.875 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.957e-05/0.3783, allocations: 33.95 kB / 0.5458 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005071/0.3788, allocations: 0.7722 MB / 0.5466 GB, free: 52 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.3789, allocations: 138.4 kB / 0.5467 GB, free: 15.91 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003366/0.3793, allocations: 270.5 kB / 0.547 GB, free: 15.64 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.3794, allocations: 353.9 kB / 0.5473 GB, free: 15.29 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000528/0.38, allocations: 318.5 kB / 0.5476 GB, free: 14.98 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001025/0.381, allocations: 1.05 MB / 0.5486 GB, free: 13.56 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001627/0.3826, allocations: 1.402 MB / 0.55 GB, free: 11.8 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-05/0.3827, allocations: 8 kB / 0.55 GB, free: 11.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002375/0.385, allocations: 1.44 MB / 0.5514 GB, free: 10.34 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.126e-05/0.3851, allocations: 19.94 kB / 0.5514 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.468e-05/0.3851, allocations: 28.09 kB / 0.5515 GB, free: 10.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006519/0.3858, allocations: 145.6 kB / 0.5516 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/0.3869, allocations: 375.5 kB / 0.552 GB, free: 9.773 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00309/0.3901, allocations: 4.073 MB / 0.5559 GB, free: 5.359 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008986/0.391, allocations: 71.72 kB / 0.556 GB, free: 5.289 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001341/0.3911, allocations: 91.98 kB / 0.5561 GB, free: 5.199 MB / 430.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.0004904/0.3916, allocations: 313.3 kB / 0.5564 GB, free: 4.883 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000221/0.3918, allocations: 102.7 kB / 0.5565 GB, free: 4.781 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0016/0.3934, allocations: 0.8462 MB / 0.5573 GB, free: 3.887 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.3935, allocations: 4 kB / 0.5573 GB, free: 3.883 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.3935, allocations: 4 kB / 0.5573 GB, free: 3.879 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.3935, allocations: 11.98 kB / 0.5573 GB, free: 3.867 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002056/0.3955, allocations: 1.259 MB / 0.5586 GB, free: 2.516 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.3956, allocations: 7.984 kB / 0.5586 GB, free: 2.508 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002561/0.3958, allocations: 59.91 kB / 0.5586 GB, free: 2.449 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007042/0.3965, allocations: 175.2 kB / 0.5588 GB, free: 2.266 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.991e-05/0.3966, allocations: 12 kB / 0.5588 GB, free: 2.254 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002692/0.3993, allocations: 3.951 MB / 0.5627 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3993, allocations: 0 / 0.5627 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001144/0.4005, allocations: 0.8482 MB / 0.5635 GB, free: 13.06 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002318/0.4007, allocations: 179.7 kB / 0.5637 GB, free: 12.86 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001541/0.4009, allocations: 8 kB / 0.5637 GB, free: 12.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003774/0.4012, allocations: 8 kB / 0.5637 GB, free: 12.85 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.414e-05/0.4013, allocations: 31.91 kB / 0.5637 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.018e-05/0.4014, allocations: 19.98 kB / 0.5637 GB, free: 12.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001059/0.4024, allocations: 0.8888 MB / 0.5646 GB, free: 11.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4024, allocations: 0 / 0.5646 GB, free: 11.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001774/0.4042, allocations: 0.6161 MB / 0.5652 GB, free: 11.29 MB / 446.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.002658/0.4069, allocations: 2.046 MB / 0.5672 GB, free: 9.18 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001553/0.4084, allocations: 0.7822 MB / 0.568 GB, free: 8.402 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4085, allocations: 4.812 kB / 0.568 GB, free: 8.398 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004961/0.409, allocations: 397.3 kB / 0.5684 GB, free: 7.984 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.41, allocations: 176.5 kB / 0.5685 GB, free: 7.82 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01207/0.4221, allocations: 9.578 MB / 0.5779 GB, free: 13.32 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007696/0.4229, allocations: 1.059 MB / 0.5789 GB, free: 12.23 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008615/0.4237, allocations: 276.1 kB / 0.5792 GB, free: 11.96 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006374/0.4244, allocations: 0.4953 MB / 0.5797 GB, free: 11.46 MB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4244, allocations: 0 / 0.5797 GB, free: 11.46 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2614/0.6859, allocations: 29.47 MB / 0.6084 GB, free: 116.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.43/22.11, allocations: 7.75 kB / 0.6084 GB, free: 116.7 MB / 478.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)