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.005551/0.005551, allocations: 100.6 kB / 15.73 MB, free: 5.492 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.001299/0.001299, allocations: 186.5 kB / 16.67 MB, free: 5.422 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.0811/0.0811, allocations: 15.31 MB / 305.8 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 67.83 kB / 424.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1023, allocations: 53.6 MB / 478.3 MB, free: 6.309 MB / 350.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.03665/0.139, allocations: 26.57 MB / 0.493 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2342/0.3732, allocations: 18.16 MB / 0.5108 GB, free: 17.69 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008518/0.3741, allocations: 16.81 kB / 0.5108 GB, free: 17.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001219/0.3753, allocations: 474.2 kB / 0.5112 GB, free: 17.69 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002449/0.3778, allocations: 0.8414 MB / 0.512 GB, free: 17.67 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007763/0.3856, allocations: 2.815 MB / 0.5148 GB, free: 16.72 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002469/0.3881, allocations: 1.642 MB / 0.5164 GB, free: 16.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001275/0.3894, allocations: 0.913 MB / 0.5173 GB, free: 16.29 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001067/0.3904, allocations: 0.7123 MB / 0.518 GB, free: 16.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001224/0.3917, allocations: 0.8028 MB / 0.5188 GB, free: 16.03 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002959/0.392, allocations: 141.5 kB / 0.5189 GB, free: 16.03 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008568/0.4006, allocations: 1.761 MB / 0.5206 GB, free: 15.72 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009184/0.4015, allocations: 350.1 kB / 0.521 GB, free: 15.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001356/0.4029, allocations: 0.7498 MB / 0.5217 GB, free: 15.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01366/0.4166, allocations: 3.47 MB / 0.5251 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.137e-06/0.4166, allocations: 2.656 kB / 0.5251 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4166, allocations: 1.281 kB / 0.5251 GB, free: 13.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.809e-05/0.4167, allocations: 0 / 0.5251 GB, free: 13.79 MB / 382.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.005025/0.4218, allocations: 1.921 MB / 0.527 GB, free: 12.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/0.4218, allocations: 9.438 kB / 0.527 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002079/0.422, allocations: 181.4 kB / 0.5271 GB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001763/0.4238, allocations: 386.6 kB / 0.5275 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001785/0.4256, allocations: 0.9754 MB / 0.5285 GB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001299/0.4258, allocations: 153.3 kB / 0.5286 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001926/0.426, allocations: 116.1 kB / 0.5287 GB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002392/0.4284, allocations: 1.647 MB / 0.5303 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.996e-05/0.4284, allocations: 0 / 0.5303 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/0.4285, allocations: 59.38 kB / 0.5304 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.321e-05/0.4285, allocations: 29.34 kB / 0.5304 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002887/0.4314, allocations: 2.105 MB / 0.5325 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007747/0.4392, allocations: 5.401 MB / 0.5377 GB, free: 6.047 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001363/0.4406, allocations: 0.7274 MB / 0.5385 GB, free: 5.664 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005977/0.4412, allocations: 364.6 kB / 0.5388 GB, free: 5.473 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006495/0.4477, allocations: 5.027 MB / 0.5437 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.967e-05/0.4478, allocations: 39.25 kB / 0.5437 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000308/0.4481, allocations: 74.91 kB / 0.5438 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of pre-optimization done (n=34): time 2.154e-06/0.4481, allocations: 0 / 0.5438 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of matching and sorting (n=34): time 0.001287/0.4494, allocations: 0.7487 MB / 0.5445 GB, free: 15.73 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.837e-05/0.4495, allocations: 106.8 kB / 0.5447 GB, free: 15.6 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001346/0.4508, allocations: 1.205 MB / 0.5458 GB, free: 14.38 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.556e-05/0.4509, allocations: 29.7 kB / 0.5459 GB, free: 14.34 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004857/0.4514, allocations: 0.7739 MB / 0.5466 GB, free: 13.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.4515, allocations: 133.7 kB / 0.5467 GB, free: 13.44 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003355/0.4518, allocations: 274.5 kB / 0.547 GB, free: 13.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.452, allocations: 360.5 kB / 0.5473 GB, free: 12.81 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004816/0.4524, allocations: 318.5 kB / 0.5476 GB, free: 12.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009499/0.4534, allocations: 1.039 MB / 0.5487 GB, free: 11.11 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001457/0.4549, allocations: 1.408 MB / 0.55 GB, free: 9.402 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-05/0.4549, allocations: 8.844 kB / 0.55 GB, free: 9.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002178/0.4571, allocations: 1.431 MB / 0.5514 GB, free: 7.973 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.941e-05/0.4571, allocations: 20 kB / 0.5515 GB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.911e-05/0.4571, allocations: 27.94 kB / 0.5515 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006296/0.4578, allocations: 159.9 kB / 0.5516 GB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/0.4589, allocations: 371.4 kB / 0.552 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002952/0.4619, allocations: 4.065 MB / 0.556 GB, free: 3.016 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001011/0.4629, allocations: 70.42 kB / 0.556 GB, free: 2.949 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001425/0.463, allocations: 98.67 kB / 0.5561 GB, free: 2.855 MB / 398.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.0005282/0.4636, allocations: 313.1 kB / 0.5564 GB, free: 2.539 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001982/0.4638, allocations: 98.69 kB / 0.5565 GB, free: 2.441 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001609/0.4654, allocations: 0.8557 MB / 0.5574 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.4654, allocations: 6.656 kB / 0.5574 GB, free: 1.594 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.644e-06/0.4654, allocations: 0 / 0.5574 GB, free: 1.594 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.4654, allocations: 0 / 0.5574 GB, free: 1.594 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002182/0.4676, allocations: 1.27 MB / 0.5586 GB, free: 256 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.4676, allocations: 2.625 kB / 0.5586 GB, free: 256 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002604/0.4679, allocations: 59.97 kB / 0.5587 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007475/0.4687, allocations: 177.6 kB / 0.5588 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.688e-05/0.4687, allocations: 18.64 kB / 0.5588 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00273/0.4715, allocations: 3.94 MB / 0.5627 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/0.4715, allocations: 10.66 kB / 0.5627 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001323/0.4728, allocations: 0.8556 MB / 0.5635 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003281/0.4732, allocations: 171.7 kB / 0.5637 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001341/0.4733, allocations: 8 kB / 0.5637 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003816/0.4737, allocations: 12 kB / 0.5637 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.485e-05/0.4738, allocations: 42.45 kB / 0.5638 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.806e-05/0.4738, allocations: 16 kB / 0.5638 GB, free: 10.56 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001214/0.475, allocations: 0.881 MB / 0.5646 GB, free: 9.676 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4751, allocations: 0 / 0.5646 GB, free: 9.676 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002583/0.4776, allocations: 0.6148 MB / 0.5652 GB, free: 9.062 MB / 414.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.003122/0.4808, allocations: 2.041 MB / 0.5672 GB, free: 7.094 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001809/0.4826, allocations: 0.7915 MB / 0.568 GB, free: 6.316 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.4826, allocations: 2.656 kB / 0.568 GB, free: 6.316 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005236/0.4832, allocations: 391.7 kB / 0.5684 GB, free: 5.91 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001237/0.4844, allocations: 166 kB / 0.5685 GB, free: 5.766 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01302/0.4974, allocations: 9.585 MB / 0.5779 GB, free: 11.45 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005897/0.4981, allocations: 1.059 MB / 0.5789 GB, free: 10.38 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008505/0.4989, allocations: 279.5 kB / 0.5792 GB, free: 10.19 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006573/0.4996, allocations: 0.4896 MB / 0.5797 GB, free: 9.707 MB / 430.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4996, allocations: 0 / 0.5797 GB, free: 9.707 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05807/0.5577, allocations: 29.13 MB / 0.6081 GB, free: 13.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.88/22.44, allocations: 7.094 kB / 0.6081 GB, free: 13.12 MB / 462.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)