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.005679/0.00568, allocations: 101.6 kB / 15.73 MB, free: 5.996 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.001398/0.001398, allocations: 190.3 kB / 16.67 MB, free: 5.93 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.201/0.201, allocations: 15.32 MB / 305.9 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 59.91 kB / 424.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2254/0.2272, allocations: 53.61 MB / 478.3 MB, free: 25.62 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.03162/0.2589, allocations: 28.83 MB / 0.4953 GB, free: 5.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02986/0.2887, allocations: 28.26 MB / 0.5229 GB, free: 9.535 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001352/0.2901, allocations: 23.88 kB / 0.5229 GB, free: 9.512 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00173/0.2919, allocations: 0.6749 MB / 0.5235 GB, free: 8.832 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003478/0.2954, allocations: 1.311 MB / 0.5248 GB, free: 7.512 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01045/0.3058, allocations: 4.254 MB / 0.529 GB, free: 3.23 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003214/0.3091, allocations: 2.199 MB / 0.5311 GB, free: 1.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001363/0.3105, allocations: 1.146 MB / 0.5322 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001186/0.3117, allocations: 1.021 MB / 0.5332 GB, free: 14.82 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00143/0.3131, allocations: 1.125 MB / 0.5343 GB, free: 13.69 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003217/0.3134, allocations: 176 kB / 0.5345 GB, free: 13.52 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008197/0.3216, allocations: 2.668 MB / 0.5371 GB, free: 10.84 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007421/0.3224, allocations: 482.5 kB / 0.5376 GB, free: 10.37 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00131/0.3237, allocations: 0.9799 MB / 0.5385 GB, free: 9.387 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01029/0.334, allocations: 5.05 MB / 0.5435 GB, free: 4.316 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3341, allocations: 0 / 0.5435 GB, free: 4.316 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3341, allocations: 0 / 0.5435 GB, free: 4.316 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.89e-05/0.3341, allocations: 0 / 0.5435 GB, free: 4.316 MB / 414.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.00411/0.3382, allocations: 2.607 MB / 0.546 GB, free: 1.645 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.3383, allocations: 8.031 kB / 0.546 GB, free: 1.637 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002575/0.3385, allocations: 219.6 kB / 0.5462 GB, free: 1.41 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002121/0.3407, allocations: 0.526 MB / 0.5467 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001938/0.3426, allocations: 1.24 MB / 0.5479 GB, free: 15.6 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001612/0.3428, allocations: 174.4 kB / 0.5481 GB, free: 15.42 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002385/0.343, allocations: 144 kB / 0.5483 GB, free: 15.28 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003154/0.3462, allocations: 2.019 MB / 0.5502 GB, free: 13.19 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.946e-05/0.3462, allocations: 0 / 0.5502 GB, free: 13.19 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001725/0.3464, allocations: 64 kB / 0.5503 GB, free: 13.12 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.09e-05/0.3464, allocations: 36 kB / 0.5503 GB, free: 13.09 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00421/0.3507, allocations: 2.764 MB / 0.553 GB, free: 10.32 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009764/0.3604, allocations: 6.619 MB / 0.5595 GB, free: 3.5 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001891/0.3624, allocations: 1.06 MB / 0.5605 GB, free: 2.41 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009274/0.3633, allocations: 0.5598 MB / 0.5611 GB, free: 1.844 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01161/0.3749, allocations: 8.4 MB / 0.5693 GB, free: 8.414 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.511e-05/0.375, allocations: 42.94 kB / 0.5693 GB, free: 8.363 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003295/0.3753, allocations: 98.98 kB / 0.5694 GB, free: 8.266 MB / 446.1 MB Notification: Performance of pre-optimization done (n=50): time 2.585e-06/0.3753, allocations: 0 / 0.5694 GB, free: 8.266 MB / 446.1 MB Notification: Performance of matching and sorting (n=50): time 0.001904/0.3772, allocations: 1.006 MB / 0.5704 GB, free: 7.211 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.068e-05/0.3773, allocations: 115.1 kB / 0.5705 GB, free: 7.074 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001496/0.3788, allocations: 1.245 MB / 0.5717 GB, free: 5.82 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.442e-05/0.3789, allocations: 29.7 kB / 0.5717 GB, free: 5.785 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007413/0.3796, allocations: 0.9897 MB / 0.5727 GB, free: 4.785 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001751/0.3798, allocations: 210.3 kB / 0.5729 GB, free: 4.578 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004124/0.3802, allocations: 343.3 kB / 0.5732 GB, free: 4.234 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.3804, allocations: 305.2 kB / 0.5735 GB, free: 3.934 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000569/0.3809, allocations: 315.8 kB / 0.5738 GB, free: 3.625 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001401/0.3823, allocations: 1.312 MB / 0.5751 GB, free: 1.805 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002259/0.3846, allocations: 1.817 MB / 0.5769 GB, free: 15.48 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.721e-05/0.3846, allocations: 15.94 kB / 0.5769 GB, free: 15.46 MB / 462.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002779/0.3874, allocations: 1.699 MB / 0.5786 GB, free: 13.75 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/0.3875, allocations: 21.41 kB / 0.5786 GB, free: 13.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-05/0.3875, allocations: 36 kB / 0.5786 GB, free: 13.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006247/0.3881, allocations: 161.6 kB / 0.5788 GB, free: 13.53 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/0.3896, allocations: 487.5 kB / 0.5792 GB, free: 13.05 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003431/0.393, allocations: 4.081 MB / 0.5832 GB, free: 8.637 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009847/0.394, allocations: 99.94 kB / 0.5833 GB, free: 8.539 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001649/0.3942, allocations: 124 kB / 0.5834 GB, free: 8.418 MB / 462.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.0006053/0.3948, allocations: 380.9 kB / 0.5838 GB, free: 8.035 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002534/0.395, allocations: 143.1 kB / 0.5839 GB, free: 7.895 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00257/0.3976, allocations: 1.38 MB / 0.5853 GB, free: 6.414 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.3976, allocations: 4 kB / 0.5853 GB, free: 6.41 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.3976, allocations: 0 / 0.5853 GB, free: 6.41 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3977, allocations: 0 / 0.5853 GB, free: 6.41 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002584/0.4002, allocations: 1.53 MB / 0.5868 GB, free: 4.781 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.4003, allocations: 4.281 kB / 0.5868 GB, free: 4.777 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003492/0.4006, allocations: 79.83 kB / 0.5869 GB, free: 4.699 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007515/0.4014, allocations: 171 kB / 0.587 GB, free: 4.52 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.333e-05/0.4014, allocations: 20 kB / 0.587 GB, free: 4.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003149/0.4046, allocations: 3.943 MB / 0.5909 GB, free: 216 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.4046, allocations: 4.031 kB / 0.5909 GB, free: 212 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001469/0.4061, allocations: 0.9822 MB / 0.5919 GB, free: 15.16 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003034/0.4064, allocations: 216 kB / 0.5921 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001632/0.4066, allocations: 11.94 kB / 0.5921 GB, free: 14.92 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004208/0.407, allocations: 12 kB / 0.5921 GB, free: 14.91 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.72e-05/0.4071, allocations: 39.89 kB / 0.5921 GB, free: 14.87 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.342e-05/0.4071, allocations: 19.94 kB / 0.5921 GB, free: 14.85 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001355/0.4085, allocations: 0.971 MB / 0.5931 GB, free: 13.89 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.174e-06/0.4085, allocations: 0 / 0.5931 GB, free: 13.89 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002384/0.4109, allocations: 0.868 MB / 0.5939 GB, free: 13.02 MB / 478.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.003624/0.4145, allocations: 2.482 MB / 0.5964 GB, free: 10.46 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001932/0.4165, allocations: 0.9056 MB / 0.5972 GB, free: 9.566 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.203e-05/0.4165, allocations: 4 kB / 0.5972 GB, free: 9.562 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005601/0.4171, allocations: 410.1 kB / 0.5976 GB, free: 9.137 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001311/0.4184, allocations: 233.9 kB / 0.5979 GB, free: 8.906 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1994/0.6178, allocations: 11.87 MB / 0.6094 GB, free: 113.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007046/0.6186, allocations: 1.185 MB / 0.6106 GB, free: 112.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001217/0.6198, allocations: 395.1 kB / 0.611 GB, free: 112.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000781/0.6206, allocations: 0.6807 MB / 0.6116 GB, free: 112.2 MB / 478.1 MB Notification: Performance of SimCode: time 6.61e-07/0.6206, allocations: 6.25 kB / 0.6117 GB, free: 112.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07108/0.6917, allocations: 39.56 MB / 0.6503 GB, free: 92.23 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.05/15.75, allocations: 7.922 kB / 0.6503 GB, free: 92.22 MB / 478.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)