Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 103.6 kB / 18.95 MB, free: 2.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 222.9 kB / 22.25 MB, free: 5.258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.48/1.48, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1581/0.1581, allocations: 23.89 MB / 336.3 MB, free: 10.97 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002046/0.002046, allocations: 71.89 kB / 471.1 MB, free: 7.512 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3478, allocations: 59.86 MB / 0.5185 GB, free: 9.543 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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 2.0.0/Obsolete.mo:14337:7-14337: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.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential): time 0.0745/0.4223, allocations: 28.58 MB / 0.5464 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03522/0.4575, allocations: 24.85 MB / 0.5707 GB, free: 4.473 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001902/0.4594, allocations: 35.69 kB / 0.5707 GB, free: 4.438 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001963/0.4613, allocations: 0.6048 MB / 0.5713 GB, free: 3.828 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004131/0.4655, allocations: 1.28 MB / 0.5726 GB, free: 2.539 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01186/0.4773, allocations: 4.348 MB / 0.5768 GB, free: 14.16 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003498/0.4808, allocations: 2.192 MB / 0.579 GB, free: 11.96 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001335/0.4822, allocations: 0.9351 MB / 0.5799 GB, free: 10.99 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001313/0.4835, allocations: 1.044 MB / 0.5809 GB, free: 9.945 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001738/0.4852, allocations: 1.144 MB / 0.582 GB, free: 8.797 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000337/0.4855, allocations: 176 kB / 0.5822 GB, free: 8.625 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007111/0.4927, allocations: 2.609 MB / 0.5847 GB, free: 6.012 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007744/0.4934, allocations: 486.4 kB / 0.5852 GB, free: 5.535 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00125/0.4947, allocations: 0.813 MB / 0.586 GB, free: 4.719 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01223/0.5069, allocations: 5.171 MB / 0.591 GB, free: 15.53 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.5069, allocations: 4 kB / 0.5911 GB, free: 15.52 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.5069, allocations: 0 / 0.5911 GB, free: 15.52 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.545e-05/0.507, allocations: 0 / 0.5911 GB, free: 15.52 MB / 446.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.004854/0.5118, allocations: 2.512 MB / 0.5935 GB, free: 12.96 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.5119, allocations: 12.03 kB / 0.5935 GB, free: 12.95 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002766/0.5121, allocations: 211.6 kB / 0.5937 GB, free: 12.73 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002419/0.5146, allocations: 0.5299 MB / 0.5942 GB, free: 12.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002638/0.5172, allocations: 1.183 MB / 0.5954 GB, free: 10.99 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002149/0.5174, allocations: 221.9 kB / 0.5956 GB, free: 10.75 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003601/0.5178, allocations: 144 kB / 0.5957 GB, free: 10.61 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003853/0.5216, allocations: 2.031 MB / 0.5977 GB, free: 8.508 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.366e-05/0.5217, allocations: 0 / 0.5977 GB, free: 8.508 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001957/0.5219, allocations: 64 kB / 0.5978 GB, free: 8.445 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.269e-05/0.5219, allocations: 36 kB / 0.5978 GB, free: 8.41 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004807/0.5267, allocations: 2.737 MB / 0.6005 GB, free: 5.664 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01134/0.538, allocations: 6.013 MB / 0.6064 GB, free: 15.52 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001984/0.54, allocations: 0.9854 MB / 0.6073 GB, free: 14.51 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009437/0.541, allocations: 0.5169 MB / 0.6078 GB, free: 13.98 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01089/0.5518, allocations: 4.188 MB / 0.6119 GB, free: 9.766 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/0.5519, allocations: 42.94 kB / 0.612 GB, free: 9.715 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003943/0.5523, allocations: 99.03 kB / 0.6121 GB, free: 9.617 MB / 462.1 MB Notification: Performance of pre-optimization done (n=50): time 4.057e-06/0.5523, allocations: 11.98 kB / 0.6121 GB, free: 9.605 MB / 462.1 MB Notification: Performance of matching and sorting (n=50): time 0.001914/0.5542, allocations: 0.8512 MB / 0.6129 GB, free: 8.746 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.627e-05/0.5543, allocations: 115.1 kB / 0.613 GB, free: 8.609 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001667/0.5559, allocations: 1.295 MB / 0.6143 GB, free: 7.305 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.678e-05/0.556, allocations: 33.7 kB / 0.6143 GB, free: 7.266 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007515/0.5567, allocations: 0.9897 MB / 0.6153 GB, free: 6.266 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001828/0.5569, allocations: 202.7 kB / 0.6155 GB, free: 6.066 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004459/0.5574, allocations: 347.3 kB / 0.6158 GB, free: 5.719 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.5576, allocations: 301.1 kB / 0.6161 GB, free: 5.422 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005751/0.5581, allocations: 315.8 kB / 0.6164 GB, free: 5.113 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00148/0.5596, allocations: 1.316 MB / 0.6177 GB, free: 3.289 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002253/0.5619, allocations: 1.82 MB / 0.6194 GB, free: 0.957 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.778e-05/0.5619, allocations: 12 kB / 0.6195 GB, free: 0.9453 MB / 462.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002901/0.5648, allocations: 1.69 MB / 0.6211 GB, free: 15.24 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.652e-05/0.5648, allocations: 21 kB / 0.6211 GB, free: 15.22 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.371e-05/0.5649, allocations: 36 kB / 0.6212 GB, free: 15.19 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006843/0.5655, allocations: 165.6 kB / 0.6213 GB, free: 15.02 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001475/0.567, allocations: 487.1 kB / 0.6218 GB, free: 14.54 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003257/0.5703, allocations: 3.878 MB / 0.6256 GB, free: 10.38 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001088/0.5714, allocations: 91.8 kB / 0.6257 GB, free: 10.29 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001874/0.5716, allocations: 128.2 kB / 0.6258 GB, free: 10.16 MB / 478.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.0006005/0.5722, allocations: 380.9 kB / 0.6261 GB, free: 9.781 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000266/0.5724, allocations: 147 kB / 0.6263 GB, free: 9.637 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002718/0.5751, allocations: 1.378 MB / 0.6276 GB, free: 8.176 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.922e-06/0.5751, allocations: 7.938 kB / 0.6276 GB, free: 8.168 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-06/0.5751, allocations: 0 / 0.6276 GB, free: 8.168 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.5751, allocations: 0 / 0.6276 GB, free: 8.168 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002592/0.5777, allocations: 1.428 MB / 0.629 GB, free: 6.648 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.5777, allocations: 0 / 0.629 GB, free: 6.648 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003359/0.5781, allocations: 83.81 kB / 0.6291 GB, free: 6.566 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007815/0.5789, allocations: 171.3 kB / 0.6293 GB, free: 6.387 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.554e-05/0.5789, allocations: 16 kB / 0.6293 GB, free: 6.371 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003179/0.5821, allocations: 3.744 MB / 0.6329 GB, free: 2.332 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.5821, allocations: 4 kB / 0.633 GB, free: 2.328 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001647/0.5837, allocations: 0.9894 MB / 0.6339 GB, free: 1.277 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003335/0.5841, allocations: 135 kB / 0.634 GB, free: 1.145 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001889/0.5843, allocations: 8 kB / 0.6341 GB, free: 1.137 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004739/0.5847, allocations: 12 kB / 0.6341 GB, free: 1.125 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.854e-05/0.5848, allocations: 47.81 kB / 0.6341 GB, free: 1.078 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.692e-05/0.5849, allocations: 20 kB / 0.6341 GB, free: 1.059 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001485/0.5863, allocations: 0.9749 MB / 0.6351 GB, free: 92 kB / 478.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5863, allocations: 0 / 0.6351 GB, free: 92 kB / 478.1 MB Notification: Performance of remove unused functions: time 0.002849/0.5892, allocations: 0.8565 MB / 0.6359 GB, free: 15.23 MB / 494.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.003842/0.593, allocations: 2.503 MB / 0.6384 GB, free: 12.65 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002131/0.5952, allocations: 0.8779 MB / 0.6392 GB, free: 11.78 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.5952, allocations: 0 / 0.6392 GB, free: 11.78 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005896/0.5958, allocations: 398.7 kB / 0.6396 GB, free: 11.37 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001467/0.5972, allocations: 228.1 kB / 0.6398 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01789/0.6151, allocations: 11.88 MB / 0.6514 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000667/0.6158, allocations: 0.6062 MB / 0.652 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001219/0.617, allocations: 406.2 kB / 0.6524 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008943/0.6179, allocations: 0.678 MB / 0.6531 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of SimCode: time 9.42e-07/0.6179, allocations: 0 / 0.6531 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09115/0.709, allocations: 41.98 MB / 0.6941 GB, free: 2.652 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.99/14.7, allocations: 11.81 kB / 0.6941 GB, free: 2.645 MB / 0.5294 GB " [Timeout remaining time 645] (rm -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential_fmu --startTime=0 --stopTime=100 --stepSize=0.04 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential.fmu > Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.590882225020323] Failed to read output from testmodel.py, exit status != 0: 14.838930921978317 14.855062464 14.344803747 Calling exit ...