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.000852/0.000852, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008821/0.0008821, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8879/0.8879, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.08427/0.08427, allocations: 17.37 MB / 276.6 MB, free: 11.85 MB / 266.7 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: Performance of FrontEnd - loaded program: time 2.425e-06/2.425e-06, allocations: 0 / 411.4 MB, free: 420 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.534e-05/2.776e-05, allocations: 3.828 kB / 411.5 MB, free: 416 kB / 378.7 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.02394/0.02397, allocations: 28.93 MB / 440.4 MB, free: 3.543 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1727/0.1967, allocations: 24.82 MB / 465.2 MB, free: 49.72 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008492/0.1975, allocations: 35.28 kB / 465.2 MB, free: 49.7 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009918/0.1985, allocations: 0.6265 MB / 465.9 MB, free: 49.36 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002216/0.2007, allocations: 1.319 MB / 467.2 MB, free: 48.56 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007594/0.2083, allocations: 4.483 MB / 471.7 MB, free: 45.93 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001695/0.21, allocations: 2.263 MB / 473.9 MB, free: 44.79 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006103/0.2106, allocations: 0.9333 MB / 474.9 MB, free: 44.34 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007526/0.2114, allocations: 1.427 MB / 476.3 MB, free: 43.86 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007155/0.2121, allocations: 0.9241 MB / 477.2 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001629/0.2122, allocations: 178.8 kB / 477.4 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004004/0.2162, allocations: 2.561 MB / 479.9 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002179/0.2165, allocations: 493 kB / 480.4 MB, free: 42.75 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003653/0.2168, allocations: 0.6994 MB / 481.1 MB, free: 42.47 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003642/0.2205, allocations: 5.456 MB / 486.6 MB, free: 40.18 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2205, allocations: 0.5625 kB / 486.6 MB, free: 40.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2205, allocations: 3.281 kB / 486.6 MB, free: 40.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.77e-05/0.2205, allocations: 0.5625 kB / 486.6 MB, free: 40.18 MB / 410.7 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.002167/0.2227, allocations: 2.502 MB / 489.1 MB, free: 38.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.2227, allocations: 9.219 kB / 489.1 MB, free: 38.68 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001592/0.2229, allocations: 217.8 kB / 489.3 MB, free: 38.54 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00112/0.224, allocations: 0.5259 MB / 489.8 MB, free: 38.38 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001206/0.2252, allocations: 1.175 MB / 491 MB, free: 37.77 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.2253, allocations: 217.7 kB / 491.2 MB, free: 37.6 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001742/0.2255, allocations: 143.8 kB / 491.4 MB, free: 37.55 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00196/0.2274, allocations: 2.04 MB / 493.4 MB, free: 36.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.54e-05/0.2274, allocations: 3.75 kB / 493.4 MB, free: 36.73 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/0.2276, allocations: 62.44 kB / 493.5 MB, free: 36.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.792e-05/0.2276, allocations: 35.91 kB / 493.5 MB, free: 36.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002778/0.2304, allocations: 2.74 MB / 496.2 MB, free: 35.93 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006034/0.2364, allocations: 5.992 MB / 0.4905 GB, free: 32.53 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/0.2377, allocations: 0.9992 MB / 0.4914 GB, free: 32.12 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006134/0.2383, allocations: 0.5079 MB / 0.4919 GB, free: 31.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005641/0.2439, allocations: 4.187 MB / 0.496 GB, free: 30.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.923e-05/0.2439, allocations: 40.45 kB / 0.4961 GB, free: 30.35 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001829/0.2441, allocations: 105.7 kB / 0.4962 GB, free: 30.27 MB / 410.7 MB Notification: Performance of pre-optimization done (n=50): time 2.334e-06/0.2441, allocations: 1.719 kB / 0.4962 GB, free: 30.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=50): time 0.001198/0.2453, allocations: 0.8547 MB / 0.497 GB, free: 29.94 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.199e-05/0.2453, allocations: 109.8 kB / 0.4971 GB, free: 29.81 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000933/0.2463, allocations: 1.296 MB / 0.4984 GB, free: 29.27 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.2463, allocations: 36.48 kB / 0.4984 GB, free: 29.23 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003525/0.2467, allocations: 0.9835 MB / 0.4994 GB, free: 28.43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.659e-05/0.2468, allocations: 208.4 kB / 0.4996 GB, free: 28.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002449/0.247, allocations: 334.1 kB / 0.4999 GB, free: 28.12 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.465e-05/0.247, allocations: 315.3 kB / 0.5002 GB, free: 27.81 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003616/0.2474, allocations: 313.1 kB / 0.5005 GB, free: 27.72 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006169/0.248, allocations: 1.316 MB / 0.5018 GB, free: 26.24 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.2491, allocations: 1.808 MB / 0.5035 GB, free: 24.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.247e-05/0.2492, allocations: 11.8 kB / 0.5035 GB, free: 24.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.00152/0.2507, allocations: 1.692 MB / 0.5052 GB, free: 23.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.2507, allocations: 24 kB / 0.5052 GB, free: 23.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.976e-05/0.2507, allocations: 36 kB / 0.5053 GB, free: 23.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003805/0.2511, allocations: 167.7 kB / 0.5054 GB, free: 23.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000653/0.2517, allocations: 477.8 kB / 0.5059 GB, free: 22.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00122/0.253, allocations: 3.88 MB / 0.5097 GB, free: 18.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005379/0.2535, allocations: 88.47 kB / 0.5097 GB, free: 18.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.333e-05/0.2536, allocations: 131.1 kB / 0.5099 GB, free: 18.46 MB / 410.7 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.0003269/0.2539, allocations: 389.6 kB / 0.5102 GB, free: 18.08 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/0.254, allocations: 139.1 kB / 0.5104 GB, free: 17.95 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001281/0.2553, allocations: 1.395 MB / 0.5117 GB, free: 16.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.2553, allocations: 4 kB / 0.5117 GB, free: 16.79 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.2553, allocations: 0 / 0.5117 GB, free: 16.79 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.2553, allocations: 3.938 kB / 0.5117 GB, free: 16.78 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.2566, allocations: 1.424 MB / 0.5131 GB, free: 15.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.2566, allocations: 0 / 0.5131 GB, free: 15.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001453/0.2568, allocations: 79.86 kB / 0.5132 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003389/0.2571, allocations: 166.1 kB / 0.5134 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.147e-05/0.2571, allocations: 18.62 kB / 0.5134 GB, free: 15.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009598/0.2581, allocations: 3.736 MB / 0.517 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.2581, allocations: 4.031 kB / 0.517 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006505/0.2587, allocations: 0.9878 MB / 0.518 GB, free: 10.36 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.2588, allocations: 131.2 kB / 0.5181 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.992e-05/0.2589, allocations: 13.69 kB / 0.5181 GB, free: 10.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002352/0.2592, allocations: 13.38 kB / 0.5182 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.162e-05/0.2592, allocations: 41.58 kB / 0.5182 GB, free: 10.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.2592, allocations: 22.72 kB / 0.5182 GB, free: 10.17 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006313/0.2599, allocations: 0.9752 MB / 0.5192 GB, free: 9.246 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2599, allocations: 0 / 0.5192 GB, free: 9.246 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001531/0.2614, allocations: 0.8602 MB / 0.52 GB, free: 8.383 MB / 410.7 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.001691/0.2631, allocations: 2.524 MB / 0.5225 GB, free: 5.859 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008913/0.264, allocations: 0.8792 MB / 0.5233 GB, free: 5.004 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.264, allocations: 0 / 0.5233 GB, free: 5.004 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002411/0.2642, allocations: 407.7 kB / 0.5237 GB, free: 4.582 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007574/0.265, allocations: 235.2 kB / 0.5239 GB, free: 4.383 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008699/0.2737, allocations: 11.71 MB / 0.5354 GB, free: 7.531 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003773/0.2741, allocations: 0.6011 MB / 0.536 GB, free: 6.91 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007031/0.2748, allocations: 410.5 kB / 0.5364 GB, free: 6.637 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005279/0.2753, allocations: 0.685 MB / 0.537 GB, free: 5.961 MB / 426.7 MB Notification: Performance of SimCode: time 7.21e-07/0.2753, allocations: 3.938 kB / 0.537 GB, free: 5.957 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04738/0.3227, allocations: 41.75 MB / 0.5778 GB, free: 12.95 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.825/9.147, allocations: 13.77 kB / 0.5778 GB, free: 12.95 MB / 474.7 MB " [Timeout remaining time 651] (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: 11.002868522889912] Failed to read output from testmodel.py, exit status != 0: 9.258631306700408 9.26779876 9.045366523 Calling exit ...