Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001431/0.001431, allocations: 80.84 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.001473/0.001473, allocations: 159.8 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.426/1.426, allocations: 177.1 MB / 202.8 MB, free: 9.168 MB / 190.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.1233/0.1233, allocations: 17.37 MB / 276.5 MB, free: 15.29 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: translateModel(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2") translateModel(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.214e-06/2.214e-06, allocations: 0 / 412 MB, free: 4.438 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.697e-05/2.919e-05, allocations: 5.656 kB / 412 MB, free: 4.434 MB / 334.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.StandardElectrochemicalCell2): time 0.03692/0.03695, allocations: 27.47 MB / 439.4 MB, free: 9.094 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1981/0.235, allocations: 16.03 MB / 455.5 MB, free: 31.35 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000906/0.2359, allocations: 23.75 kB / 455.5 MB, free: 31.35 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001147/0.2371, allocations: 440.8 kB / 455.9 MB, free: 31.31 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002008/0.2391, allocations: 0.8322 MB / 456.7 MB, free: 31.07 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007909/0.247, allocations: 2.935 MB / 459.7 MB, free: 30.03 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002468/0.2495, allocations: 1.701 MB / 461.4 MB, free: 29.53 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001015/0.2505, allocations: 0.7312 MB / 462.1 MB, free: 29.24 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001103/0.2516, allocations: 1.022 MB / 463.1 MB, free: 28.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001057/0.2526, allocations: 0.6448 MB / 463.8 MB, free: 28.76 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002289/0.2529, allocations: 140.7 kB / 463.9 MB, free: 28.76 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004645/0.2575, allocations: 1.69 MB / 465.6 MB, free: 28.41 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003288/0.2578, allocations: 360.8 kB / 466 MB, free: 28.22 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006404/0.2585, allocations: 0.5308 MB / 466.5 MB, free: 28.03 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007012/0.2655, allocations: 3.756 MB / 470.2 MB, free: 26.54 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2655, allocations: 0 / 470.2 MB, free: 26.54 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2655, allocations: 3.094 kB / 470.2 MB, free: 26.54 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.526e-05/0.2655, allocations: 0 / 470.2 MB, free: 26.54 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.002855/0.2684, allocations: 1.873 MB / 472.1 MB, free: 25.33 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.2684, allocations: 13.53 kB / 472.1 MB, free: 25.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001434/0.2698, allocations: 394.8 kB / 472.5 MB, free: 25.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001391/0.2712, allocations: 0.9194 MB / 473.4 MB, free: 24.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/0.2714, allocations: 202.2 kB / 473.6 MB, free: 24.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001858/0.2715, allocations: 116 kB / 473.8 MB, free: 24.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002117/0.2737, allocations: 1.666 MB / 475.4 MB, free: 23.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.828e-05/0.2737, allocations: 3.062 kB / 475.4 MB, free: 23.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001313/0.2738, allocations: 50.44 kB / 475.5 MB, free: 23.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.165e-05/0.2738, allocations: 30.84 kB / 475.5 MB, free: 23.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002551/0.2764, allocations: 2.101 MB / 477.6 MB, free: 22.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005955/0.2823, allocations: 4.695 MB / 482.3 MB, free: 18.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.2834, allocations: 0.6779 MB / 483 MB, free: 17.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004638/0.2839, allocations: 332.4 kB / 483.3 MB, free: 17.38 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005264/0.2891, allocations: 2.661 MB / 486 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.549e-05/0.2892, allocations: 38.56 kB / 486 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002305/0.2894, allocations: 67.34 kB / 486.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.954e-06/0.2894, allocations: 0 / 486.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.001172/0.2906, allocations: 0.5953 MB / 486.7 MB, free: 13.99 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.936e-05/0.2906, allocations: 110.8 kB / 486.8 MB, free: 13.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009084/0.2915, allocations: 1.162 MB / 487.9 MB, free: 12.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.283e-05/0.2915, allocations: 37.7 kB / 488 MB, free: 12.63 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002859/0.2918, allocations: 0.7983 MB / 488.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.445e-05/0.2919, allocations: 139 kB / 488.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002725/0.2922, allocations: 273.4 kB / 489.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.331e-05/0.2923, allocations: 406.7 kB / 489.6 MB, free: 11.01 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004014/0.2927, allocations: 326.5 kB / 489.9 MB, free: 10.69 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007422/0.2934, allocations: 1.05 MB / 490.9 MB, free: 9.273 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001194/0.2946, allocations: 1.4 MB / 492.3 MB, free: 7.543 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.137e-05/0.2946, allocations: 8.656 kB / 492.3 MB, free: 7.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.0018/0.2964, allocations: 1.45 MB / 493.8 MB, free: 6.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.726e-05/0.2964, allocations: 19.98 kB / 493.8 MB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.214e-05/0.2965, allocations: 31.56 kB / 493.8 MB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006067/0.2971, allocations: 150.8 kB / 494 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.2981, allocations: 374.1 kB / 494.4 MB, free: 5.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001909/0.3, allocations: 3.816 MB / 498.2 MB, free: 1.461 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008814/0.3009, allocations: 76.19 kB / 498.2 MB, free: 1.391 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/0.301, allocations: 87.98 kB / 498.3 MB, free: 1.305 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.0004238/0.3014, allocations: 319.7 kB / 498.6 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001545/0.3016, allocations: 99.28 kB / 498.7 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001408/0.303, allocations: 0.8432 MB / 499.6 MB, free: 60 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.303, allocations: 7.047 kB / 499.6 MB, free: 56 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.303, allocations: 3.938 kB / 499.6 MB, free: 52 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.303, allocations: 3.984 kB / 499.6 MB, free: 48 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001963/0.3049, allocations: 1.065 MB / 0.4889 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.3049, allocations: 0 / 0.4889 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002711/0.3052, allocations: 61.55 kB / 0.489 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008173/0.306, allocations: 181.7 kB / 0.4892 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.516e-05/0.3061, allocations: 12 kB / 0.4892 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003069/0.3091, allocations: 3.692 MB / 0.4928 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.3091, allocations: 7.969 kB / 0.4928 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001312/0.3105, allocations: 0.8402 MB / 0.4936 GB, free: 9.816 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000198/0.3107, allocations: 87.34 kB / 0.4937 GB, free: 9.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/0.3108, allocations: 8 kB / 0.4937 GB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003715/0.3111, allocations: 19.39 kB / 0.4937 GB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.083e-05/0.3112, allocations: 39.83 kB / 0.4937 GB, free: 9.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.421e-05/0.3113, allocations: 18.66 kB / 0.4938 GB, free: 9.652 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001068/0.3123, allocations: 0.8113 MB / 0.4946 GB, free: 8.832 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3123, allocations: 0 / 0.4946 GB, free: 8.832 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002153/0.3145, allocations: 0.6499 MB / 0.4952 GB, free: 8.18 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.001403/0.3159, allocations: 0.7666 MB / 0.4959 GB, free: 7.453 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001721/0.3176, allocations: 0.7718 MB / 0.4967 GB, free: 6.695 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3176, allocations: 2.688 kB / 0.4967 GB, free: 6.695 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005717/0.3182, allocations: 369.2 kB / 0.4971 GB, free: 6.309 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009973/0.3192, allocations: 145.4 kB / 0.4972 GB, free: 6.176 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003375/0.3226, allocations: 1.749 MB / 0.4989 GB, free: 4.422 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005484/0.3231, allocations: 480.5 kB / 0.4994 GB, free: 3.934 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007205/0.3238, allocations: 272 kB / 0.4996 GB, free: 3.754 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002522/0.3241, allocations: 135.2 kB / 0.4997 GB, free: 3.621 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3241, allocations: 2.656 kB / 0.4997 GB, free: 3.621 MB / 382.1 MB Notification: Performance of Templates: time 0.03168/0.3558, allocations: 18.34 MB / 0.5177 GB, free: 2.082 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & ./Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.348680961877108] Failed to read output from testmodel.py, exit status != 0: 0.3642568141222 0.37920364999999995 0.11052191 Calling exit ...