Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.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.StandardLeadAcidPotential,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardLeadAcidPotential",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardLeadAcidPotential",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.00122/0.00122, 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.001459/0.001459, allocations: 190.3 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.155/1.155, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1632/0.1632, allocations: 15.32 MB / 305.7 MB, free: 15.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 64.14 kB / 370.4 MB, free: 3.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07778/0.07891, allocations: 53.61 MB / 424.1 MB, free: 14.17 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.StandardLeadAcidPotential): time 0.2568/0.3358, allocations: 28.24 MB / 452.3 MB, free: 39.29 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01872/0.3545, allocations: 28.27 MB / 480.6 MB, free: 23.72 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007158/0.3553, allocations: 22.72 kB / 480.6 MB, free: 23.71 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001178/0.3564, allocations: 0.6741 MB / 481.3 MB, free: 23.32 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002159/0.3586, allocations: 1.308 MB / 482.6 MB, free: 22.51 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007588/0.3662, allocations: 4.255 MB / 486.8 MB, free: 20 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001623/0.3678, allocations: 2.19 MB / 489 MB, free: 18.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008828/0.3687, allocations: 1.144 MB / 490.2 MB, free: 18.41 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007367/0.3695, allocations: 1.018 MB / 491.2 MB, free: 18.04 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009212/0.3704, allocations: 1.124 MB / 492.3 MB, free: 17.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002461/0.3707, allocations: 177.2 kB / 492.5 MB, free: 17.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006329/0.377, allocations: 2.664 MB / 495.1 MB, free: 16.92 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003352/0.3773, allocations: 480 kB / 495.6 MB, free: 16.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006286/0.378, allocations: 0.9793 MB / 496.6 MB, free: 16.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00637/0.3844, allocations: 4.998 MB / 0.4898 GB, free: 13.89 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3844, allocations: 4 kB / 0.4898 GB, free: 13.89 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3844, allocations: 0.75 kB / 0.4898 GB, free: 13.89 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.892e-05/0.3844, allocations: 3.938 kB / 0.4898 GB, free: 13.88 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: 376 * Number of variables: 376 Notification: Performance of Generate backend data structure: time 0.003102/0.3875, allocations: 2.532 MB / 0.4923 GB, free: 12.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.043e-05/0.3876, allocations: 15.77 kB / 0.4923 GB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001992/0.3878, allocations: 213.1 kB / 0.4925 GB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00187/0.3896, allocations: 0.5227 MB / 0.493 GB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001387/0.391, allocations: 1.186 MB / 0.4942 GB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.3911, allocations: 175.5 kB / 0.4944 GB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002037/0.3913, allocations: 146.4 kB / 0.4945 GB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002422/0.3938, allocations: 2.014 MB / 0.4965 GB, free: 9.949 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/0.3938, allocations: 8.734 kB / 0.4965 GB, free: 9.941 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000148/0.394, allocations: 60 kB / 0.4965 GB, free: 9.883 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.837e-05/0.394, allocations: 40 kB / 0.4966 GB, free: 9.844 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003093/0.3971, allocations: 2.768 MB / 0.4993 GB, free: 7.484 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00689/0.404, allocations: 6.62 MB / 0.5057 GB, free: 1.629 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/0.4053, allocations: 1.062 MB / 0.5068 GB, free: 0.543 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006672/0.406, allocations: 0.5521 MB / 0.5073 GB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009485/0.4155, allocations: 8.415 MB / 0.5155 GB, free: 6.535 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.4155, allocations: 39 kB / 0.5156 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002484/0.4158, allocations: 98.59 kB / 0.5157 GB, free: 6.391 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 1.784e-06/0.4158, allocations: 4 kB / 0.5157 GB, free: 6.387 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.00161/0.4174, allocations: 0.9973 MB / 0.5166 GB, free: 5.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.4175, allocations: 115.2 kB / 0.5168 GB, free: 5.203 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001163/0.4186, allocations: 1.237 MB / 0.518 GB, free: 3.957 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.709e-05/0.4187, allocations: 33.7 kB / 0.518 GB, free: 3.918 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000533/0.4192, allocations: 0.9589 MB / 0.5189 GB, free: 2.945 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.4194, allocations: 193.5 kB / 0.5191 GB, free: 2.754 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003282/0.4197, allocations: 343 kB / 0.5194 GB, free: 2.414 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.716e-05/0.4198, allocations: 305.2 kB / 0.5197 GB, free: 2.113 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000484/0.4203, allocations: 311.8 kB / 0.52 GB, free: 1.809 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00103/0.4213, allocations: 1.324 MB / 0.5213 GB, free: 15.97 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001705/0.423, allocations: 1.803 MB / 0.5231 GB, free: 13.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.224e-05/0.423, allocations: 12 kB / 0.5231 GB, free: 13.65 MB / 398.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002308/0.4253, allocations: 1.686 MB / 0.5247 GB, free: 11.95 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/0.4254, allocations: 20 kB / 0.5248 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.861e-05/0.4254, allocations: 36 kB / 0.5248 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005261/0.4259, allocations: 169.8 kB / 0.525 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001146/0.4271, allocations: 483.1 kB / 0.5254 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002533/0.4296, allocations: 4.093 MB / 0.5294 GB, free: 6.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007544/0.4304, allocations: 95.58 kB / 0.5295 GB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/0.4305, allocations: 128 kB / 0.5296 GB, free: 6.602 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 166 * 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 (197): * Single equations (assignments): 193 * 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.000429/0.431, allocations: 377 kB / 0.53 GB, free: 6.223 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000192/0.4312, allocations: 142.2 kB / 0.5301 GB, free: 6.082 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002328/0.4335, allocations: 1.371 MB / 0.5315 GB, free: 4.605 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.4335, allocations: 4 kB / 0.5315 GB, free: 4.602 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.4335, allocations: 0 / 0.5315 GB, free: 4.602 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.4335, allocations: 0 / 0.5315 GB, free: 4.602 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001932/0.4355, allocations: 1.523 MB / 0.533 GB, free: 2.977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.4355, allocations: 4 kB / 0.533 GB, free: 2.973 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002736/0.4358, allocations: 79.77 kB / 0.533 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006235/0.4364, allocations: 179.5 kB / 0.5332 GB, free: 2.707 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.617e-05/0.4364, allocations: 16 kB / 0.5332 GB, free: 2.691 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002342/0.4388, allocations: 3.947 MB / 0.5371 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.4388, allocations: 7.938 kB / 0.5371 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.44, allocations: 0.9754 MB / 0.538 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002066/0.4402, allocations: 195.3 kB / 0.5382 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/0.4404, allocations: 15.98 kB / 0.5382 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004026/0.4408, allocations: 12 kB / 0.5382 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.277e-05/0.4408, allocations: 39.83 kB / 0.5383 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-05/0.4409, allocations: 20 kB / 0.5383 GB, free: 13.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001059/0.4419, allocations: 0.9671 MB / 0.5392 GB, free: 12.1 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4419, allocations: 0 / 0.5392 GB, free: 12.1 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001989/0.4439, allocations: 0.8502 MB / 0.5401 GB, free: 11.25 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (anode.temperature,cathode.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 (31): * Single equations (assignments): 27 * 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.003177/0.4471, allocations: 2.469 MB / 0.5425 GB, free: 8.711 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001502/0.4486, allocations: 0.9291 MB / 0.5434 GB, free: 7.789 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.4487, allocations: 0 / 0.5434 GB, free: 7.789 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004621/0.4491, allocations: 410.3 kB / 0.5438 GB, free: 7.363 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001123/0.4503, allocations: 228.2 kB / 0.544 GB, free: 7.145 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01341/0.4637, allocations: 12.76 MB / 0.5565 GB, free: 8.938 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006718/0.4644, allocations: 1.192 MB / 0.5576 GB, free: 7.715 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001271/0.4656, allocations: 400.7 kB / 0.558 GB, free: 7.324 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007017/0.4663, allocations: 0.6778 MB / 0.5587 GB, free: 6.648 MB / 430.1 MB Notification: Performance of SimCode: time 1.633e-06/0.4664, allocations: 0 / 0.5587 GB, free: 6.648 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.191/0.6574, allocations: 39.02 MB / 0.5968 GB, free: 134 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/10.86, allocations: 7.844 kB / 0.5968 GB, free: 134 MB / 462.1 MB (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_StandardLeadAcidPotential_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_StandardLeadAcidPotential.fmu > Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe 2>&1)