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.001245/0.001245, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001387/0.001387, allocations: 190.9 kB / 16.13 MB, free: 6.656 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.3/1.3, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1765/0.1765, allocations: 15.31 MB / 305.3 MB, free: 15.31 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 59.89 kB / 369.8 MB, free: 4.336 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09787/0.09916, allocations: 53.62 MB / 423.4 MB, free: 14.67 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.3593/0.4585, allocations: 29.46 MB / 452.8 MB, free: 38.77 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02296/0.4815, allocations: 28.2 MB / 481 MB, free: 23.83 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001709/0.4832, allocations: 48.03 kB / 481.1 MB, free: 23.8 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002009/0.4853, allocations: 0.6187 MB / 481.7 MB, free: 23.47 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003932/0.4892, allocations: 1.211 MB / 482.9 MB, free: 22.74 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01307/0.5023, allocations: 3.739 MB / 486.6 MB, free: 20.57 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003565/0.5059, allocations: 2.133 MB / 488.8 MB, free: 19.56 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001761/0.5077, allocations: 0.9881 MB / 489.8 MB, free: 19.12 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002087/0.5098, allocations: 1.006 MB / 490.8 MB, free: 18.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002204/0.512, allocations: 1.112 MB / 491.9 MB, free: 18.4 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000666/0.5127, allocations: 111.4 kB / 492 MB, free: 18.4 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009303/0.522, allocations: 2.626 MB / 494.6 MB, free: 17.74 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007769/0.5228, allocations: 421 kB / 495 MB, free: 17.53 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00191/0.5247, allocations: 0.9289 MB / 496 MB, free: 17.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01148/0.5362, allocations: 4.691 MB / 0.4889 GB, free: 15.06 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.5363, allocations: 0 / 0.4889 GB, free: 15.06 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.5363, allocations: 0 / 0.4889 GB, free: 15.06 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001022/0.5364, allocations: 2.562 kB / 0.4889 GB, free: 15.06 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.005858/0.5422, allocations: 2.531 MB / 0.4914 GB, free: 13.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.5423, allocations: 11.52 kB / 0.4914 GB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005088/0.5428, allocations: 214.3 kB / 0.4916 GB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002648/0.5455, allocations: 0.5209 MB / 0.4921 GB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002087/0.5476, allocations: 1.192 MB / 0.4933 GB, free: 12.22 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/0.5477, allocations: 175.6 kB / 0.4934 GB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003966/0.5481, allocations: 140 kB / 0.4936 GB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003005/0.5512, allocations: 2.029 MB / 0.4956 GB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.941e-05/0.5512, allocations: 0 / 0.4956 GB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001621/0.5514, allocations: 63.94 kB / 0.4956 GB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.097e-05/0.5514, allocations: 43.94 kB / 0.4957 GB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003656/0.5551, allocations: 2.758 MB / 0.4984 GB, free: 7.777 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009104/0.5642, allocations: 6.607 MB / 0.5048 GB, free: 2.027 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001532/0.5658, allocations: 1.065 MB / 0.5059 GB, free: 1.047 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007459/0.5665, allocations: 0.5657 MB / 0.5064 GB, free: 0.5352 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01144/0.578, allocations: 8.423 MB / 0.5146 GB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.578, allocations: 46.94 kB / 0.5147 GB, free: 7.215 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003951/0.5784, allocations: 102.6 kB / 0.5148 GB, free: 7.113 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.194e-06/0.5784, allocations: 0 / 0.5148 GB, free: 7.113 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.001813/0.5803, allocations: 0.9932 MB / 0.5157 GB, free: 6.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.626e-05/0.5803, allocations: 119.1 kB / 0.5159 GB, free: 5.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001398/0.5817, allocations: 1.237 MB / 0.5171 GB, free: 4.684 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.737e-05/0.5818, allocations: 37.95 kB / 0.5171 GB, free: 4.641 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006083/0.5824, allocations: 0.9628 MB / 0.518 GB, free: 3.664 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000184/0.5826, allocations: 197.5 kB / 0.5182 GB, free: 3.469 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004429/0.583, allocations: 339 kB / 0.5186 GB, free: 3.129 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.856e-05/0.5832, allocations: 301.1 kB / 0.5188 GB, free: 2.832 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005287/0.5837, allocations: 311.8 kB / 0.5191 GB, free: 2.527 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001193/0.5849, allocations: 1.32 MB / 0.5204 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001945/0.5868, allocations: 1.819 MB / 0.5222 GB, free: 14.37 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.3e-05/0.5869, allocations: 8 kB / 0.5222 GB, free: 14.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002572/0.5894, allocations: 1.682 MB / 0.5239 GB, free: 12.67 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.205e-05/0.5895, allocations: 20 kB / 0.5239 GB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-05/0.5895, allocations: 40.09 kB / 0.5239 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006251/0.5902, allocations: 169.4 kB / 0.5241 GB, free: 12.44 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/0.5914, allocations: 483.1 kB / 0.5245 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002809/0.5942, allocations: 3.887 MB / 0.5283 GB, free: 7.754 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001173/0.5954, allocations: 99.98 kB / 0.5284 GB, free: 7.656 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001736/0.5956, allocations: 124 kB / 0.5285 GB, free: 7.535 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.0006577/0.5963, allocations: 380.9 kB / 0.5289 GB, free: 7.152 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002358/0.5965, allocations: 138.2 kB / 0.529 GB, free: 7.016 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002653/0.5992, allocations: 1.381 MB / 0.5304 GB, free: 5.535 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-06/0.5992, allocations: 4 kB / 0.5304 GB, free: 5.531 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.5992, allocations: 3.938 kB / 0.5304 GB, free: 5.527 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.5992, allocations: 0 / 0.5304 GB, free: 5.527 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002405/0.6016, allocations: 1.518 MB / 0.5319 GB, free: 3.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.6016, allocations: 15.86 kB / 0.5319 GB, free: 3.895 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002958/0.6019, allocations: 67.95 kB / 0.532 GB, free: 3.828 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007477/0.6027, allocations: 183.4 kB / 0.5321 GB, free: 3.637 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.28e-05/0.6027, allocations: 16 kB / 0.5321 GB, free: 3.621 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002489/0.6052, allocations: 3.746 MB / 0.5358 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.6052, allocations: 12.22 kB / 0.5358 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.6066, allocations: 0.9768 MB / 0.5368 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002589/0.6068, allocations: 203.2 kB / 0.537 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001748/0.607, allocations: 15.94 kB / 0.537 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004298/0.6075, allocations: 12 kB / 0.537 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.291e-05/0.6075, allocations: 35.89 kB / 0.537 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.303e-05/0.6076, allocations: 20 kB / 0.537 GB, free: 14.19 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001243/0.6088, allocations: 0.9709 MB / 0.538 GB, free: 13.23 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6088, allocations: 0 / 0.538 GB, free: 13.23 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00283/0.6117, allocations: 0.8424 MB / 0.5388 GB, free: 12.38 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.003466/0.6152, allocations: 2.458 MB / 0.5412 GB, free: 9.855 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001967/0.6171, allocations: 0.9058 MB / 0.5421 GB, free: 8.957 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.6172, allocations: 0 / 0.5421 GB, free: 8.957 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005314/0.6177, allocations: 402.4 kB / 0.5425 GB, free: 8.539 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001398/0.6191, allocations: 225.7 kB / 0.5427 GB, free: 8.316 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01745/0.6366, allocations: 13.3 MB / 0.5557 GB, free: 9.57 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007485/0.6373, allocations: 1.189 MB / 0.5569 GB, free: 8.352 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001514/0.6389, allocations: 417 kB / 0.5572 GB, free: 7.945 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007975/0.6397, allocations: 0.6835 MB / 0.5579 GB, free: 7.266 MB / 430.1 MB Notification: Performance of SimCode: time 2.285e-06/0.6397, allocations: 0 / 0.5579 GB, free: 7.266 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05943/0.6991, allocations: 38.42 MB / 0.5954 GB, free: 0.9922 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002304/0.6994, allocations: 237.4 kB / 0.5957 GB, free: 0.7383 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.644/3.343, allocations: 8 kB / 0.5957 GB, free: 0.7305 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)