Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.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.001388/0.001388, allocations: 80.3 kB / 19.18 MB, free: 2.516 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.001508/0.001508, allocations: 163.2 kB / 22.46 MB, free: 5.375 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.425/1.425, allocations: 177.2 MB / 202.8 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1306/0.1306, allocations: 17.45 MB / 276.6 MB, free: 15.22 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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: translateModel(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2") translateModel(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 412.1 MB, free: 4.293 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.784e-05/2.931e-05, allocations: 2.281 kB / 412.1 MB, free: 4.289 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.StandardElectrochemicalCell2): time 0.03749/0.03752, allocations: 27.47 MB / 439.6 MB, free: 8.949 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.24/0.2775, allocations: 16.02 MB / 455.6 MB, free: 31.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001458/0.279, allocations: 25.56 kB / 455.6 MB, free: 31.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001776/0.2807, allocations: 441.2 kB / 456.1 MB, free: 31.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004058/0.2848, allocations: 0.8353 MB / 456.9 MB, free: 31.04 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009752/0.2945, allocations: 2.936 MB / 459.8 MB, free: 30 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003507/0.2981, allocations: 1.696 MB / 461.5 MB, free: 29.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00117/0.2992, allocations: 0.7331 MB / 462.3 MB, free: 29.19 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001352/0.3006, allocations: 1.028 MB / 463.3 MB, free: 28.84 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001262/0.3018, allocations: 0.6413 MB / 463.9 MB, free: 28.71 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002569/0.3021, allocations: 140.6 kB / 464.1 MB, free: 28.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006492/0.3086, allocations: 1.682 MB / 465.8 MB, free: 28.36 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004124/0.309, allocations: 366.5 kB / 466.1 MB, free: 28.17 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009412/0.3099, allocations: 0.5247 MB / 466.6 MB, free: 27.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009265/0.3192, allocations: 3.756 MB / 470.4 MB, free: 26.4 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.3192, allocations: 0.9375 kB / 470.4 MB, free: 26.4 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.3192, allocations: 2.625 kB / 470.4 MB, free: 26.4 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.343e-05/0.3193, allocations: 3.938 kB / 470.4 MB, free: 26.39 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.003437/0.3227, allocations: 1.882 MB / 472.3 MB, free: 25.15 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.3227, allocations: 8.906 kB / 472.3 MB, free: 25.15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001548/0.3243, allocations: 398.2 kB / 472.7 MB, free: 24.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001528/0.3258, allocations: 0.9178 MB / 473.6 MB, free: 24.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001403/0.3259, allocations: 198 kB / 473.8 MB, free: 24.12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001945/0.3261, allocations: 125.4 kB / 473.9 MB, free: 24.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002382/0.3285, allocations: 1.658 MB / 475.6 MB, free: 23.04 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.882e-05/0.3286, allocations: 6.938 kB / 475.6 MB, free: 23.04 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001332/0.3287, allocations: 50.53 kB / 475.6 MB, free: 23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.39e-05/0.3287, allocations: 33.03 kB / 475.7 MB, free: 23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002714/0.3314, allocations: 2.098 MB / 477.8 MB, free: 22.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006336/0.3378, allocations: 4.696 MB / 482.5 MB, free: 18.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.3389, allocations: 0.6857 MB / 483.1 MB, free: 17.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004895/0.3393, allocations: 328.3 kB / 483.5 MB, free: 17.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005621/0.345, allocations: 2.656 MB / 486.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.975e-05/0.345, allocations: 42.5 kB / 486.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003219/0.3453, allocations: 66.03 kB / 486.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 2.535e-06/0.3453, allocations: 2.656 kB / 486.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.001218/0.3465, allocations: 0.5889 MB / 486.8 MB, free: 13.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.797e-05/0.3466, allocations: 114.8 kB / 486.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000994/0.3476, allocations: 1.16 MB / 488.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.3476, allocations: 37.7 kB / 488.1 MB, free: 12.42 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003092/0.3479, allocations: 0.8061 MB / 488.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.553e-05/0.348, allocations: 135 kB / 489.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002739/0.3483, allocations: 270.7 kB / 489.3 MB, free: 11.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.3484, allocations: 406.7 kB / 489.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004088/0.3488, allocations: 330.5 kB / 490 MB, free: 10.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000676/0.3494, allocations: 1.052 MB / 491.1 MB, free: 9.059 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001132/0.3506, allocations: 1.397 MB / 492.5 MB, free: 7.332 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.207e-06/0.3506, allocations: 4 kB / 492.5 MB, free: 7.328 MB / 366.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.001823/0.3524, allocations: 1.452 MB / 493.9 MB, free: 5.883 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.3524, allocations: 16 kB / 494 MB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.082e-05/0.3525, allocations: 28.88 kB / 494 MB, free: 5.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006011/0.3531, allocations: 160 kB / 494.1 MB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.3541, allocations: 375.4 kB / 494.5 MB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001983/0.3561, allocations: 3.819 MB / 498.3 MB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008533/0.3569, allocations: 70.52 kB / 498.4 MB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.357, allocations: 91.98 kB / 498.5 MB, free: 1.09 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 119 * 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 (155): * Single equations (assignments): 151 * 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.0004224/0.3574, allocations: 313.1 kB / 498.8 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/0.3576, allocations: 99.28 kB / 498.9 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00154/0.3591, allocations: 0.8479 MB / 499.7 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.3591, allocations: 4 kB / 499.7 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.3592, allocations: 14.22 kB / 499.8 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3592, allocations: 0 / 499.8 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00213/0.3613, allocations: 1.066 MB / 0.4891 GB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3613, allocations: 0 / 0.4891 GB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002736/0.3616, allocations: 59.91 kB / 0.4891 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008236/0.3624, allocations: 174 kB / 0.4893 GB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.492e-05/0.3624, allocations: 12 kB / 0.4893 GB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003329/0.3658, allocations: 3.693 MB / 0.4929 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.3658, allocations: 4.031 kB / 0.4929 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001398/0.3672, allocations: 0.8492 MB / 0.4938 GB, free: 9.598 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002287/0.3674, allocations: 83.38 kB / 0.4938 GB, free: 9.516 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001241/0.3675, allocations: 8 kB / 0.4939 GB, free: 9.508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000367/0.3679, allocations: 11.31 kB / 0.4939 GB, free: 9.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.843e-05/0.368, allocations: 39.88 kB / 0.4939 GB, free: 9.461 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.548e-05/0.368, allocations: 16 kB / 0.4939 GB, free: 9.445 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001172/0.3692, allocations: 0.8152 MB / 0.4947 GB, free: 8.621 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3692, allocations: 0 / 0.4947 GB, free: 8.621 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002359/0.3715, allocations: 0.6422 MB / 0.4953 GB, free: 7.977 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (cathode.temperature,anode.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 (27): * Single equations (assignments): 23 * 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.001487/0.373, allocations: 0.7677 MB / 0.4961 GB, free: 7.246 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001842/0.3749, allocations: 0.7707 MB / 0.4968 GB, free: 6.492 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.3749, allocations: 0 / 0.4968 GB, free: 6.492 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00059/0.3755, allocations: 375.8 kB / 0.4972 GB, free: 6.102 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.3765, allocations: 139.8 kB / 0.4973 GB, free: 5.973 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003301/0.3798, allocations: 1.751 MB / 0.499 GB, free: 4.215 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005189/0.3803, allocations: 473.9 kB / 0.4995 GB, free: 3.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007671/0.3811, allocations: 274.6 kB / 0.4998 GB, free: 3.551 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002891/0.3814, allocations: 143.2 kB / 0.4999 GB, free: 3.41 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3814, allocations: 0 / 0.4999 GB, free: 3.41 MB / 382.1 MB Notification: Performance of Templates: time 0.03364/0.415, allocations: 18.35 MB / 0.5178 GB, free: 1.848 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.makefile [Timeout 660] (rm -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & ./Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.430125206708908] Failed to read output from testmodel.py, exit status != 0: 0.4242887757718563 0.439229507 0.11688859100000001 Calling exit ...