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.0009418/0.0009419, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0008879/0.0008881, allocations: 177.3 kB / 15.94 MB, free: 228 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.28/1.28, allocations: 223.2 MB / 239.9 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2121/0.2121, allocations: 15.26 MB / 306.2 MB, free: 15.84 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003461/0.0003463, allocations: 8 kB / 371.5 MB, free: 3.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2826, allocations: 54.61 MB / 426.1 MB, free: 40.17 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.007574/0.2902, allocations: 8.305 MB / 434.4 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02212/0.3124, allocations: 23.95 MB / 458.3 MB, free: 20.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001708/0.3141, allocations: 44.03 kB / 458.4 MB, free: 20.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001654/0.3158, allocations: 0.6097 MB / 459 MB, free: 19.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005208/0.321, allocations: 1.61 MB / 460.6 MB, free: 18.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01099/0.3321, allocations: 3.871 MB / 464.5 MB, free: 16.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003045/0.3351, allocations: 1.498 MB / 466 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001214/0.3364, allocations: 0.9181 MB / 466.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00154/0.3379, allocations: 0.7547 MB / 467.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001638/0.3396, allocations: 1.004 MB / 468.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002521/0.3398, allocations: 94.25 kB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01161/0.3515, allocations: 3.076 MB / 471.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007067/0.3522, allocations: 387.9 kB / 472.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008371/0.3531, allocations: 347.3 kB / 472.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006899/0.36, allocations: 2.991 MB / 475.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.36, allocations: 0 / 475.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.36, allocations: 0 / 475.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.638e-05/0.36, allocations: 0.7188 kB / 475.5 MB, free: 12.85 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.004483/0.3645, allocations: 2.135 MB / 477.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.3646, allocations: 9.875 kB / 477.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002744/0.3649, allocations: 215.7 kB / 477.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002182/0.367, allocations: 0.5157 MB / 478.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00181/0.3689, allocations: 1.09 MB / 479.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001389/0.369, allocations: 171.1 kB / 479.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002533/0.3693, allocations: 144.4 kB / 479.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003359/0.3726, allocations: 2.009 MB / 481.8 MB, free: 9.617 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.068e-05/0.3727, allocations: 8.75 kB / 481.8 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001677/0.3729, allocations: 61.72 kB / 481.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.211e-05/0.3729, allocations: 38.38 kB / 481.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005002/0.3779, allocations: 2.749 MB / 484.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009558/0.3875, allocations: 6.494 MB / 491.1 MB, free: 4.621 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00142/0.3889, allocations: 1.052 MB / 492.2 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01019/0.3991, allocations: 8.15 MB / 0.4886 GB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.487e-05/0.3992, allocations: 35 kB / 0.4886 GB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003984/0.3996, allocations: 106.5 kB / 0.4887 GB, free: 10.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.084e-06/0.3996, allocations: 0 / 0.4887 GB, free: 10.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.001669/0.4013, allocations: 1.002 MB / 0.4897 GB, free: 9.168 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/0.4014, allocations: 111.2 kB / 0.4898 GB, free: 9.035 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001401/0.4028, allocations: 1.225 MB / 0.491 GB, free: 7.801 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.984e-05/0.4028, allocations: 33.7 kB / 0.4911 GB, free: 7.762 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006269/0.4035, allocations: 0.9632 MB / 0.492 GB, free: 6.785 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001526/0.4036, allocations: 189.5 kB / 0.4922 GB, free: 6.598 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.141e-05/0.4037, allocations: 36 kB / 0.4922 GB, free: 6.562 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.4039, allocations: 361.9 kB / 0.4926 GB, free: 6.203 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004985/0.4044, allocations: 303.8 kB / 0.4928 GB, free: 5.906 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001261/0.4056, allocations: 1.32 MB / 0.4941 GB, free: 4.078 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007983/0.4064, allocations: 0.5111 MB / 0.4946 GB, free: 3.566 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-05/0.4065, allocations: 16 kB / 0.4947 GB, free: 3.551 MB / 366.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002546/0.409, allocations: 1.677 MB / 0.4963 GB, free: 1.859 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.508e-05/0.4091, allocations: 20 kB / 0.4963 GB, free: 1.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.512e-05/0.4091, allocations: 36.88 kB / 0.4963 GB, free: 1.805 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006789/0.4098, allocations: 173.4 kB / 0.4965 GB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/0.4111, allocations: 475.2 kB / 0.497 GB, free: 1.164 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002675/0.4138, allocations: 3.9 MB / 0.5008 GB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/0.4151, allocations: 99.89 kB / 0.5009 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001695/0.4152, allocations: 124 kB / 0.501 GB, free: 12.72 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.000683/0.4159, allocations: 384.8 kB / 0.5014 GB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000197/0.4161, allocations: 138.2 kB / 0.5015 GB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002585/0.4187, allocations: 1.4 MB / 0.5028 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.4187, allocations: 4 kB / 0.5029 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.4188, allocations: 3.984 kB / 0.5029 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.4188, allocations: 4 kB / 0.5029 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002209/0.421, allocations: 1.476 MB / 0.5043 GB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.421, allocations: 4 kB / 0.5043 GB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002932/0.4213, allocations: 75.89 kB / 0.5044 GB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007547/0.4221, allocations: 179.5 kB / 0.5045 GB, free: 8.875 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.373e-05/0.4221, allocations: 15.98 kB / 0.5046 GB, free: 8.859 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002526/0.4246, allocations: 3.758 MB / 0.5082 GB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.4247, allocations: 4 kB / 0.5082 GB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001388/0.4261, allocations: 1.142 MB / 0.5094 GB, free: 3.492 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000417/0.4265, allocations: 239.2 kB / 0.5096 GB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001635/0.4267, allocations: 15.95 kB / 0.5096 GB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004641/0.4271, allocations: 16 kB / 0.5096 GB, free: 3.207 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.895e-05/0.4272, allocations: 36.02 kB / 0.5096 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.285e-05/0.4272, allocations: 19.98 kB / 0.5097 GB, free: 3.152 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001276/0.4285, allocations: 0.9151 MB / 0.5106 GB, free: 2.242 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4285, allocations: 0 / 0.5106 GB, free: 2.242 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002816/0.4314, allocations: 0.8501 MB / 0.5114 GB, free: 1.391 MB / 382.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.00394/0.4353, allocations: 3.327 MB / 0.5146 GB, free: 13.96 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00178/0.4371, allocations: 0.8983 MB / 0.5155 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/0.4371, allocations: 0 / 0.5155 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004712/0.4376, allocations: 405.4 kB / 0.5159 GB, free: 12.65 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.4387, allocations: 228 kB / 0.5161 GB, free: 12.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01465/0.4534, allocations: 30.25 MB / 0.5457 GB, free: 13.09 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009285/0.4544, allocations: 1.22 MB / 0.5469 GB, free: 11.84 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001896/0.4563, allocations: 409.6 kB / 0.5472 GB, free: 11.46 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008298/0.4572, allocations: 0.6734 MB / 0.5479 GB, free: 10.79 MB / 430.1 MB Notification: Performance of SimCode: time 1.483e-06/0.4572, allocations: 3.938 kB / 0.5479 GB, free: 10.79 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06425/0.5214, allocations: 37.37 MB / 0.5844 GB, free: 5.66 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002096/0.5217, allocations: 214.8 kB / 0.5846 GB, free: 5.422 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.66/3.182, allocations: 4 kB / 0.5846 GB, free: 5.418 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/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: