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.001101/0.001101, 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.0008248/0.0008248, allocations: 170.3 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.9143/0.9143, allocations: 177.2 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.08964/0.08964, 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 1.794e-06/1.794e-06, allocations: 3.938 kB / 411.5 MB, free: 412 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.653e-05/1.833e-05, allocations: 2.281 kB / 411.5 MB, free: 408 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.02221/0.02223, allocations: 28.93 MB / 440.4 MB, free: 3.523 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.179/0.2012, allocations: 24.81 MB / 465.2 MB, free: 49.78 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000743/0.2019, allocations: 35.41 kB / 465.2 MB, free: 49.76 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009681/0.2029, allocations: 0.6283 MB / 465.9 MB, free: 49.42 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001794/0.2047, allocations: 1.319 MB / 467.2 MB, free: 48.62 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007057/0.2117, allocations: 4.482 MB / 471.7 MB, free: 45.98 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0015/0.2132, allocations: 2.272 MB / 473.9 MB, free: 44.84 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006138/0.2139, allocations: 0.9276 MB / 474.9 MB, free: 44.4 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007468/0.2146, allocations: 1.426 MB / 476.3 MB, free: 43.91 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007106/0.2153, allocations: 0.9249 MB / 477.2 MB, free: 43.68 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001511/0.2155, allocations: 179.2 kB / 477.4 MB, free: 43.68 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003945/0.2194, allocations: 2.561 MB / 479.9 MB, free: 43.1 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002218/0.2196, allocations: 492.2 kB / 480.4 MB, free: 42.81 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003658/0.22, allocations: 0.6994 MB / 481.1 MB, free: 42.52 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003744/0.2237, allocations: 5.46 MB / 486.6 MB, free: 40.23 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2237, allocations: 1.312 kB / 486.6 MB, free: 40.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2238, allocations: 5.969 kB / 486.6 MB, free: 40.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.626e-05/0.2238, allocations: 0 / 486.6 MB, free: 40.23 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.002336/0.2261, allocations: 2.495 MB / 489.1 MB, free: 38.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.2261, allocations: 9.625 kB / 489.1 MB, free: 38.73 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000167/0.2263, allocations: 218.9 kB / 489.3 MB, free: 38.59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001167/0.2275, allocations: 0.5283 MB / 489.8 MB, free: 38.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001221/0.2287, allocations: 1.177 MB / 491 MB, free: 37.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001193/0.2288, allocations: 218.4 kB / 491.2 MB, free: 37.65 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002231/0.229, allocations: 147 kB / 491.4 MB, free: 37.6 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00203/0.2311, allocations: 2.028 MB / 493.4 MB, free: 36.79 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.557e-05/0.2311, allocations: 3.938 kB / 493.4 MB, free: 36.78 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001132/0.2312, allocations: 61.41 kB / 493.5 MB, free: 36.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.746e-05/0.2312, allocations: 36.44 kB / 493.5 MB, free: 36.73 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002984/0.2342, allocations: 2.743 MB / 496.2 MB, free: 35.98 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006977/0.2412, allocations: 5.992 MB / 0.4905 GB, free: 32.58 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/0.2425, allocations: 0.9921 MB / 0.4914 GB, free: 32.18 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006128/0.2431, allocations: 0.51 MB / 0.4919 GB, free: 31.97 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005572/0.2487, allocations: 4.187 MB / 0.496 GB, free: 30.45 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.557e-05/0.2487, allocations: 38.61 kB / 0.4961 GB, free: 30.41 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001635/0.2489, allocations: 106.4 kB / 0.4962 GB, free: 30.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=50): time 2.244e-06/0.2489, allocations: 0 / 0.4962 GB, free: 30.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=50): time 0.001099/0.25, allocations: 0.8555 MB / 0.497 GB, free: 29.99 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.115e-05/0.25, allocations: 109.9 kB / 0.4971 GB, free: 29.87 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008845/0.2509, allocations: 1.297 MB / 0.4984 GB, free: 29.32 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.814e-05/0.2509, allocations: 38.83 kB / 0.4984 GB, free: 29.28 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003214/0.2512, allocations: 0.9837 MB / 0.4994 GB, free: 28.48 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.649e-05/0.2513, allocations: 205.7 kB / 0.4996 GB, free: 28.32 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002243/0.2515, allocations: 335.7 kB / 0.4999 GB, free: 28.17 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.677e-05/0.2516, allocations: 313.1 kB / 0.5002 GB, free: 27.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003419/0.2519, allocations: 313 kB / 0.5005 GB, free: 27.77 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005856/0.2525, allocations: 1.316 MB / 0.5018 GB, free: 26.29 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.2535, allocations: 1.807 MB / 0.5035 GB, free: 24.56 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.179e-05/0.2535, allocations: 11.41 kB / 0.5035 GB, free: 24.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.001487/0.255, allocations: 1.699 MB / 0.5052 GB, free: 23.37 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.2551, allocations: 22.66 kB / 0.5052 GB, free: 23.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.754e-05/0.2551, allocations: 36 kB / 0.5053 GB, free: 23.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003445/0.2554, allocations: 168 kB / 0.5054 GB, free: 23.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000651/0.2561, allocations: 484.3 kB / 0.5059 GB, free: 22.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001156/0.2572, allocations: 3.877 MB / 0.5097 GB, free: 18.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005031/0.2577, allocations: 89.33 kB / 0.5097 GB, free: 18.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.665e-05/0.2578, allocations: 127.7 kB / 0.5099 GB, free: 18.49 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.0002991/0.2581, allocations: 381.5 kB / 0.5102 GB, free: 18.12 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.2582, allocations: 143.1 kB / 0.5104 GB, free: 17.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001286/0.2595, allocations: 1.392 MB / 0.5117 GB, free: 16.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.2595, allocations: 9.062 kB / 0.5117 GB, free: 16.81 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.2595, allocations: 0 / 0.5117 GB, free: 16.81 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.2595, allocations: 5.875 kB / 0.5117 GB, free: 16.81 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001206/0.2607, allocations: 1.417 MB / 0.5131 GB, free: 15.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.2607, allocations: 4 kB / 0.5131 GB, free: 15.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001393/0.2609, allocations: 74.52 kB / 0.5132 GB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003162/0.2612, allocations: 179 kB / 0.5134 GB, free: 15.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.966e-05/0.2612, allocations: 14.62 kB / 0.5134 GB, free: 15.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009511/0.2622, allocations: 3.737 MB / 0.517 GB, free: 11.37 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.2622, allocations: 4 kB / 0.517 GB, free: 11.37 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000641/0.2628, allocations: 0.9869 MB / 0.518 GB, free: 10.39 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.2629, allocations: 132 kB / 0.5181 GB, free: 10.27 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.476e-05/0.263, allocations: 13.73 kB / 0.5181 GB, free: 10.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002298/0.2632, allocations: 8 kB / 0.5182 GB, free: 10.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.201e-05/0.2633, allocations: 53.17 kB / 0.5182 GB, free: 10.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.2633, allocations: 14.66 kB / 0.5182 GB, free: 10.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006061/0.2639, allocations: 0.967 MB / 0.5192 GB, free: 9.227 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.2639, allocations: 0 / 0.5192 GB, free: 9.227 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001544/0.2654, allocations: 0.8641 MB / 0.52 GB, free: 8.359 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.001826/0.2673, allocations: 2.531 MB / 0.5225 GB, free: 5.832 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008842/0.2681, allocations: 0.869 MB / 0.5233 GB, free: 4.984 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2681, allocations: 4 kB / 0.5233 GB, free: 4.98 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002496/0.2684, allocations: 403.7 kB / 0.5237 GB, free: 4.562 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007614/0.2692, allocations: 241.5 kB / 0.5239 GB, free: 4.359 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008792/0.2779, allocations: 11.71 MB / 0.5354 GB, free: 7.508 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004134/0.2784, allocations: 0.6076 MB / 0.536 GB, free: 6.883 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007034/0.2791, allocations: 405 kB / 0.5364 GB, free: 6.613 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005422/0.2796, allocations: 0.6823 MB / 0.537 GB, free: 5.938 MB / 426.7 MB Notification: Performance of SimCode: time 6.11e-07/0.2796, allocations: 4 kB / 0.537 GB, free: 5.934 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05314/0.3327, allocations: 41.76 MB / 0.5778 GB, free: 12.92 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.953/9.286, allocations: 6.609 kB / 0.5778 GB, free: 12.91 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 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.270461396314204] Failed to read output from testmodel.py, exit status != 0: 9.39516203571111 9.404486259 9.179019237 Calling exit ...