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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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.0007629/0.0007628, allocations: 92.23 kB / 15.06 MB, free: 1.098 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.0008353/0.0008356, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2014/0.2014, allocations: 15.26 MB / 306.3 MB, free: 15.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002991/0.0002991, allocations: 12.22 kB / 371.6 MB, free: 3.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2654, allocations: 54.61 MB / 426.2 MB, free: 39.91 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011:65: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.0/package.mo:3011:6-3011:65: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.007223/0.2727, allocations: 9.174 MB / 435.4 MB, free: 36.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02045/0.2932, allocations: 25.98 MB / 461.3 MB, free: 17.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001453/0.2947, allocations: 46.06 kB / 461.4 MB, free: 17.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001401/0.2961, allocations: 0.6154 MB / 462 MB, free: 17.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003508/0.2996, allocations: 1.335 MB / 463.3 MB, free: 16.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008509/0.3081, allocations: 3.493 MB / 466.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002451/0.3106, allocations: 2.001 MB / 468.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001085/0.3117, allocations: 0.9272 MB / 469.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001135/0.3129, allocations: 0.8267 MB / 470.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001217/0.3141, allocations: 1.026 MB / 471.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002115/0.3143, allocations: 93.38 kB / 471.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007847/0.3222, allocations: 2.532 MB / 474.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007272/0.3229, allocations: 392.5 kB / 474.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007019/0.3236, allocations: 347.6 kB / 474.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005719/0.3294, allocations: 3.785 MB / 478.7 MB, free: 10 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3294, allocations: 0 / 478.7 MB, free: 10 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3294, allocations: 0.6094 kB / 478.7 MB, free: 10 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.864e-05/0.3295, allocations: 3.594 kB / 478.7 MB, free: 10 MB / 350.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.004536/0.334, allocations: 2.129 MB / 480.9 MB, free: 8.676 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.3341, allocations: 9.125 kB / 480.9 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002997/0.3344, allocations: 217.1 kB / 481.1 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002068/0.3365, allocations: 0.5207 MB / 481.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001727/0.3382, allocations: 1.11 MB / 482.7 MB, free: 7.766 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.3383, allocations: 170.1 kB / 482.9 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002491/0.3386, allocations: 143.5 kB / 483 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003219/0.3418, allocations: 2.016 MB / 485 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.946e-05/0.3419, allocations: 1.281 kB / 485 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001669/0.342, allocations: 64.72 kB / 485.1 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.374e-05/0.3421, allocations: 37.31 kB / 485.1 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004121/0.3462, allocations: 2.755 MB / 487.9 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008752/0.355, allocations: 6.547 MB / 494.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001438/0.3564, allocations: 1.049 MB / 495.5 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008271/0.3573, allocations: 0.5637 MB / 496.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01042/0.3677, allocations: 8.204 MB / 0.4924 GB, free: 6.465 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.332e-05/0.3678, allocations: 43 kB / 0.4925 GB, free: 6.414 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004843/0.3683, allocations: 102.6 kB / 0.4926 GB, free: 6.312 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.485e-06/0.3683, allocations: 0 / 0.4926 GB, free: 6.312 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.001747/0.37, allocations: 1.005 MB / 0.4936 GB, free: 5.262 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.432e-05/0.3701, allocations: 111.2 kB / 0.4937 GB, free: 5.129 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001437/0.3716, allocations: 1.229 MB / 0.4949 GB, free: 3.891 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.148e-05/0.3716, allocations: 37.7 kB / 0.4949 GB, free: 3.848 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007234/0.3724, allocations: 0.9551 MB / 0.4958 GB, free: 2.879 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001895/0.3726, allocations: 197.5 kB / 0.496 GB, free: 2.684 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.236e-05/0.3726, allocations: 28 kB / 0.4961 GB, free: 2.656 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.3728, allocations: 365.9 kB / 0.4964 GB, free: 2.293 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005465/0.3734, allocations: 307.9 kB / 0.4967 GB, free: 1.992 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001409/0.3748, allocations: 1.312 MB / 0.498 GB, free: 176 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009226/0.3757, allocations: 0.519 MB / 0.4985 GB, free: 15.65 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.514e-05/0.3758, allocations: 8 kB / 0.4985 GB, free: 15.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002991/0.3788, allocations: 1.678 MB / 0.5001 GB, free: 13.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.509e-05/0.3788, allocations: 20 kB / 0.5001 GB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.892e-05/0.3789, allocations: 36 kB / 0.5002 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000669/0.3795, allocations: 173.4 kB / 0.5003 GB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001307/0.3809, allocations: 483.5 kB / 0.5008 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002991/0.3839, allocations: 3.892 MB / 0.5046 GB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/0.3851, allocations: 99.73 kB / 0.5047 GB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001951/0.3853, allocations: 131.9 kB / 0.5048 GB, free: 8.805 MB / 382.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 (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006459/0.3859, allocations: 372.9 kB / 0.5052 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002311/0.3862, allocations: 138.2 kB / 0.5053 GB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002721/0.3889, allocations: 1.398 MB / 0.5067 GB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.3889, allocations: 4 kB / 0.5067 GB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.3889, allocations: 0 / 0.5067 GB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.3889, allocations: 8 kB / 0.5067 GB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002644/0.3916, allocations: 1.48 MB / 0.5081 GB, free: 5.227 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3916, allocations: 0 / 0.5081 GB, free: 5.227 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003032/0.3919, allocations: 75.89 kB / 0.5082 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007322/0.3927, allocations: 191.5 kB / 0.5084 GB, free: 4.953 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.904e-05/0.3927, allocations: 15.98 kB / 0.5084 GB, free: 4.938 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002884/0.3956, allocations: 3.746 MB / 0.5121 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.3956, allocations: 7.969 kB / 0.5121 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001428/0.3971, allocations: 0.9639 MB / 0.513 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005013/0.3976, allocations: 255.1 kB / 0.5133 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002863/0.3979, allocations: 8 kB / 0.5133 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005694/0.3985, allocations: 19.92 kB / 0.5133 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.649e-05/0.3985, allocations: 43.95 kB / 0.5133 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.354e-05/0.3986, allocations: 16 kB / 0.5133 GB, free: 15.48 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001386/0.4, allocations: 0.919 MB / 0.5142 GB, free: 14.56 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4, allocations: 0 / 0.5142 GB, free: 14.56 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003109/0.4031, allocations: 0.8539 MB / 0.5151 GB, free: 13.71 MB / 398.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.004034/0.4071, allocations: 2.459 MB / 0.5175 GB, free: 11.19 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002009/0.4092, allocations: 0.8983 MB / 0.5184 GB, free: 10.3 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.4092, allocations: 0 / 0.5184 GB, free: 10.3 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005397/0.4097, allocations: 402.1 kB / 0.5187 GB, free: 9.883 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001642/0.4114, allocations: 218.9 kB / 0.5189 GB, free: 9.668 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01426/0.4257, allocations: 8.694 MB / 0.5274 GB, free: 88 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008927/0.4266, allocations: 1.189 MB / 0.5286 GB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001651/0.4283, allocations: 415.7 kB / 0.529 GB, free: 14.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008919/0.4292, allocations: 0.6782 MB / 0.5297 GB, free: 13.81 MB / 414.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4292, allocations: 0 / 0.5297 GB, free: 13.81 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06294/0.4921, allocations: 37.97 MB / 0.5667 GB, free: 8.098 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001798/0.4924, allocations: 220.1 kB / 0.5669 GB, free: 7.859 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.804/3.297, allocations: 2.531 kB / 0.5669 GB, free: 7.859 MB / 446.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/linux/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) Environment - environmentSimulation: