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.000906/0.000906, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008975/0.0008975, allocations: 192.7 kB / 16.53 MB, free: 6.391 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.165/1.165, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1577/0.1577, allocations: 15.32 MB / 305.7 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 72.08 kB / 370.4 MB, free: 3.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07557/0.0767, allocations: 53.6 MB / 424 MB, free: 14.2 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.2528/0.3295, allocations: 26.54 MB / 450.6 MB, free: 39.48 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01221/0.3418, allocations: 18.15 MB / 468.7 MB, free: 30.29 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004573/0.3422, allocations: 18.47 kB / 468.8 MB, free: 30.28 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007764/0.343, allocations: 478.3 kB / 469.2 MB, free: 30.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001341/0.3444, allocations: 0.8307 MB / 470.1 MB, free: 29.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004352/0.3487, allocations: 2.794 MB / 472.9 MB, free: 28.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001115/0.3499, allocations: 1.629 MB / 474.5 MB, free: 27.36 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007319/0.3506, allocations: 0.9287 MB / 475.4 MB, free: 26.94 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004945/0.3511, allocations: 0.7018 MB / 476.1 MB, free: 26.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000648/0.3518, allocations: 0.8034 MB / 476.9 MB, free: 26.31 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001723/0.3519, allocations: 140.7 kB / 477.1 MB, free: 26.31 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003585/0.3555, allocations: 1.756 MB / 478.8 MB, free: 25.87 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002146/0.3558, allocations: 360.6 kB / 479.2 MB, free: 25.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004717/0.3562, allocations: 0.7442 MB / 479.9 MB, free: 25.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003627/0.3599, allocations: 3.44 MB / 483.3 MB, free: 23.69 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.3599, allocations: 4 kB / 483.4 MB, free: 23.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3599, allocations: 0.875 kB / 483.4 MB, free: 23.69 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.467e-05/0.3599, allocations: 0 / 483.4 MB, free: 23.69 MB / 366.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.002293/0.3622, allocations: 1.926 MB / 485.3 MB, free: 22.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.212e-05/0.3622, allocations: 13.88 kB / 485.3 MB, free: 22.47 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001512/0.3624, allocations: 177.4 kB / 485.5 MB, free: 22.36 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001267/0.3637, allocations: 382.2 kB / 485.8 MB, free: 22.24 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001084/0.3648, allocations: 0.9473 MB / 486.8 MB, free: 21.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.513e-05/0.3649, allocations: 148.2 kB / 486.9 MB, free: 21.58 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.365, allocations: 121.9 kB / 487 MB, free: 21.54 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001908/0.367, allocations: 1.652 MB / 488.7 MB, free: 20.81 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/0.367, allocations: 5.094 kB / 488.7 MB, free: 20.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001092/0.3671, allocations: 46.97 kB / 488.8 MB, free: 20.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.252e-05/0.3671, allocations: 33.72 kB / 488.8 MB, free: 20.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002494/0.3696, allocations: 2.104 MB / 490.9 MB, free: 20.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005443/0.3751, allocations: 5.426 MB / 496.3 MB, free: 16.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009891/0.3761, allocations: 0.7318 MB / 497 MB, free: 16.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004337/0.3765, allocations: 359.6 kB / 497.4 MB, free: 16.31 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005084/0.3816, allocations: 5.031 MB / 0.4907 GB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.402e-05/0.3816, allocations: 39.08 kB / 0.4907 GB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002004/0.3818, allocations: 80.66 kB / 0.4908 GB, free: 12.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.633e-06/0.3819, allocations: 0 / 0.4908 GB, free: 12.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.001066/0.3829, allocations: 0.7452 MB / 0.4915 GB, free: 11.86 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.32e-05/0.383, allocations: 110.1 kB / 0.4916 GB, free: 11.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009607/0.3839, allocations: 1.201 MB / 0.4928 GB, free: 11.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.384, allocations: 34.27 kB / 0.4928 GB, free: 11.17 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00031/0.3843, allocations: 0.773 MB / 0.4936 GB, free: 10.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.278e-05/0.3844, allocations: 143.2 kB / 0.4937 GB, free: 10.44 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000243/0.3846, allocations: 273.5 kB / 0.494 GB, free: 10.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.695e-05/0.3847, allocations: 351.9 kB / 0.4943 GB, free: 9.984 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000382/0.3851, allocations: 323 kB / 0.4946 GB, free: 9.875 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000621/0.3857, allocations: 1.046 MB / 0.4956 GB, free: 8.754 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.3867, allocations: 1.392 MB / 0.497 GB, free: 7.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/0.3867, allocations: 10.81 kB / 0.497 GB, free: 7.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.001685/0.3884, allocations: 1.44 MB / 0.4984 GB, free: 6.805 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.3884, allocations: 22.53 kB / 0.4984 GB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.487e-05/0.3885, allocations: 27.83 kB / 0.4984 GB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005227/0.389, allocations: 154.4 kB / 0.4986 GB, free: 6.762 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009019/0.3899, allocations: 379.1 kB / 0.499 GB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001705/0.3916, allocations: 4.064 MB / 0.5029 GB, free: 2.145 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006242/0.3923, allocations: 76.66 kB / 0.503 GB, free: 2.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.211e-05/0.3924, allocations: 91.94 kB / 0.5031 GB, free: 1.984 MB / 366.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.0002751/0.3926, allocations: 311.9 kB / 0.5034 GB, free: 1.676 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001356/0.3928, allocations: 102.7 kB / 0.5035 GB, free: 1.574 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001422/0.3942, allocations: 0.855 MB / 0.5043 GB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3942, allocations: 8 kB / 0.5043 GB, free: 0.7891 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.3942, allocations: 0.6562 kB / 0.5043 GB, free: 0.7891 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.3942, allocations: 5.734 kB / 0.5043 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001587/0.3958, allocations: 1.258 MB / 0.5056 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.3958, allocations: 4 kB / 0.5056 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002311/0.3961, allocations: 62.2 kB / 0.5056 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006301/0.3967, allocations: 173.1 kB / 0.5058 GB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.605e-05/0.3968, allocations: 13.41 kB / 0.5058 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002209/0.399, allocations: 3.955 MB / 0.5097 GB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.399, allocations: 0 / 0.5097 GB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009771/0.4, allocations: 0.8509 MB / 0.5105 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/0.4001, allocations: 172.8 kB / 0.5107 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.4002, allocations: 8 kB / 0.5107 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003308/0.4006, allocations: 10.2 kB / 0.5107 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.731e-05/0.4006, allocations: 40.73 kB / 0.5107 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.357e-05/0.4007, allocations: 15.56 kB / 0.5107 GB, free: 10.15 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000854/0.4015, allocations: 0.8832 MB / 0.5116 GB, free: 9.375 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4015, allocations: 0 / 0.5116 GB, free: 9.375 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001536/0.4031, allocations: 0.6242 MB / 0.5122 GB, free: 8.762 MB / 382.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.002082/0.4052, allocations: 2.03 MB / 0.5142 GB, free: 6.738 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00128/0.4065, allocations: 0.8045 MB / 0.515 GB, free: 5.934 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4065, allocations: 0 / 0.515 GB, free: 5.934 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004154/0.4069, allocations: 399.2 kB / 0.5154 GB, free: 5.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009051/0.4078, allocations: 172.6 kB / 0.5155 GB, free: 5.348 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009352/0.4172, allocations: 10.11 MB / 0.5254 GB, free: 10.17 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004973/0.4177, allocations: 1.059 MB / 0.5264 GB, free: 9.086 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008421/0.4185, allocations: 275.2 kB / 0.5267 GB, free: 8.82 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004859/0.419, allocations: 499.2 kB / 0.5272 GB, free: 8.332 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.419, allocations: 0 / 0.5272 GB, free: 8.332 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04708/0.4661, allocations: 28.7 MB / 0.5552 GB, free: 11.75 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.52, allocations: 2.922 kB / 0.5552 GB, free: 11.75 MB / 430.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)