Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic") translateModel(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 115.6 kB / 16.37 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00159/0.00159, allocations: 192.1 kB / 17.31 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.04096/0.04096, allocations: 5.394 MB / 296.6 MB, free: 9.477 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 67.89 kB / 362.4 MB, free: 7.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2017/0.2031, allocations: 50.62 MB / 413 MB, free: 29.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic): time 0.003957/0.2071, allocations: 3.904 MB / 416.9 MB, free: 25.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00177/0.2089, allocations: 1.492 MB / 418.4 MB, free: 23.87 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002197/0.2091, allocations: 11.94 kB / 418.4 MB, free: 23.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004698/0.2096, allocations: 230.6 kB / 418.6 MB, free: 23.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003411/0.21, allocations: 194.4 kB / 418.8 MB, free: 23.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003434/0.2103, allocations: 215.7 kB / 419 MB, free: 23.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000489/0.2108, allocations: 0.7824 MB / 419.8 MB, free: 22.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002524/0.2111, allocations: 206.5 kB / 420 MB, free: 22.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002153/0.2113, allocations: 298.9 kB / 420.3 MB, free: 21.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003134/0.2116, allocations: 350.5 kB / 420.6 MB, free: 21.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.92e-05/0.2117, allocations: 80 kB / 420.7 MB, free: 21.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001154/0.2118, allocations: 87.98 kB / 420.8 MB, free: 21.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.911e-05/0.2119, allocations: 147.5 kB / 421 MB, free: 21.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002035/0.2121, allocations: 326.4 kB / 421.3 MB, free: 20.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000479/0.2126, allocations: 0.7552 MB / 422 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.2126, allocations: 4 kB / 422 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2127, allocations: 0 / 422 MB, free: 20.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.428e-06/0.2127, allocations: 3.938 kB / 422 MB, free: 20.2 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.002235/0.2149, allocations: 1.031 MB / 423.1 MB, free: 19.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.215, allocations: 8.031 kB / 423.1 MB, free: 19.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.2151, allocations: 72.12 kB / 423.1 MB, free: 19.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001167/0.2162, allocations: 0.5844 MB / 423.7 MB, free: 18.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.2163, allocations: 29.12 kB / 423.8 MB, free: 18.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.573e-05/0.2163, allocations: 36 kB / 423.8 MB, free: 18.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008164/0.2172, allocations: 450.1 kB / 424.2 MB, free: 17.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.2172, allocations: 0 / 424.2 MB, free: 17.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.971e-05/0.2172, allocations: 12 kB / 424.2 MB, free: 17.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.2173, allocations: 12 kB / 424.3 MB, free: 17.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009723/0.2182, allocations: 411.7 kB / 424.7 MB, free: 17.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002309/0.2206, allocations: 1.559 MB / 426.2 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.2217, allocations: 0.5557 MB / 426.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004864/0.2222, allocations: 201.2 kB / 427 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.782e-05/0.2222, allocations: 4.234 kB / 427 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005703/0.2228, allocations: 277.1 kB / 427.2 MB, free: 14.72 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.924e-06/0.2228, allocations: 4 kB / 427.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.003449/0.2263, allocations: 0.9515 MB / 428.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.488e-05/0.2263, allocations: 81.11 kB / 428.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004008/0.2267, allocations: 437.9 kB / 428.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.636e-05/0.2268, allocations: 33.7 kB / 428.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.2269, allocations: 264 kB / 429 MB, free: 12.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.306e-05/0.227, allocations: 94.64 kB / 429.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001332/0.2271, allocations: 69.92 kB / 429.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.115e-05/0.2272, allocations: 362.7 kB / 429.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004576/0.2277, allocations: 189.6 kB / 429.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004475/0.2281, allocations: 237.7 kB / 429.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008211/0.229, allocations: 410.1 kB / 430.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.229, allocations: 3.984 kB / 430.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002436/0.2314, allocations: 0.7653 MB / 431.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.055e-05/0.2315, allocations: 33.7 kB / 431.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.2315, allocations: 0 / 431.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007715/0.2323, allocations: 241.7 kB / 431.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003605/0.2326, allocations: 79.88 kB / 431.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00418/0.2368, allocations: 3.727 MB / 435.2 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000518/0.2374, allocations: 63.7 kB / 435.2 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.1e-05/0.2374, allocations: 16.08 kB / 435.3 MB, free: 6.258 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005637/0.238, allocations: 304.3 kB / 435.5 MB, free: 5.957 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004373/0.2384, allocations: 237.1 kB / 435.8 MB, free: 5.707 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007978/0.2392, allocations: 409.2 kB / 436.2 MB, free: 5.285 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.833e-06/0.2392, allocations: 0 / 436.2 MB, free: 5.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization_lambda0): time 0.002356/0.2416, allocations: 0.7612 MB / 436.9 MB, free: 4.504 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.2416, allocations: 37.7 kB / 437 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.985e-06/0.2416, allocations: 0 / 437 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006672/0.2423, allocations: 241.4 kB / 437.2 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003296/0.2427, allocations: 83.81 kB / 437.3 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003976/0.2466, allocations: 3.723 MB / 441 MB, free: 136 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005121/0.2472, allocations: 59.89 kB / 441.1 MB, free: 76 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.06e-05/0.2472, allocations: 15.98 kB / 441.1 MB, free: 60 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (triangleAndStep.trapezoid.count,$PRE.triangleAndStep.trapezoid.count,triangleAndStep.trapezoid.T_start,$PRE.triangleAndStep.trapezoid.T_start,triangleAndStep.realToInteger.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {2} * 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): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001877/0.2474, allocations: 200.1 kB / 441.3 MB, free: 15.86 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.02e-05/0.2475, allocations: 43.44 kB / 441.3 MB, free: 15.81 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002355/0.2498, allocations: 0.6437 MB / 442 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-06/0.2499, allocations: 4 kB / 442 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.2499, allocations: 0 / 442 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.2499, allocations: 7.984 kB / 442 MB, free: 15.15 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002921/0.2528, allocations: 1.188 MB / 443.2 MB, free: 13.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.2528, allocations: 11.95 kB / 443.2 MB, free: 13.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003191/0.2532, allocations: 59.89 kB / 443.2 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003579/0.2535, allocations: 168.7 kB / 443.4 MB, free: 13.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.067e-05/0.2536, allocations: 7.984 kB / 443.4 MB, free: 13.65 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003199/0.2568, allocations: 1.992 MB / 445.4 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.2568, allocations: 8 kB / 445.4 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002284/0.2591, allocations: 0.7199 MB / 446.1 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002054/0.2593, allocations: 156.4 kB / 446.3 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.58e-05/0.2594, allocations: 15.88 kB / 446.3 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004165/0.2598, allocations: 43.94 kB / 446.3 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.2599, allocations: 31.97 kB / 446.4 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.082e-05/0.26, allocations: 11.98 kB / 446.4 MB, free: 10.49 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003643/0.2603, allocations: 307.1 kB / 446.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2603, allocations: 0 / 446.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008329/0.2612, allocations: 215.5 kB / 446.9 MB, free: 9.984 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,triangleAndStep.realToInteger.y,triangleAndStep.trapezoid.T_start,triangleAndStep.trapezoid.count) * Number of discrete states: 1 (triangleAndStep.trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001652/0.2613, allocations: 114 kB / 447 MB, free: 9.863 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002529/0.2639, allocations: 1.277 MB / 448.3 MB, free: 8.504 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2639, allocations: 0 / 448.3 MB, free: 8.504 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006507/0.2646, allocations: 330.7 kB / 448.6 MB, free: 8.168 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005625/0.2651, allocations: 96.42 kB / 448.7 MB, free: 8.078 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.2668, allocations: 0.8475 MB / 449.6 MB, free: 7.207 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004018/0.2672, allocations: 0.8393 MB / 450.4 MB, free: 6.34 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002812/0.2675, allocations: 68.12 kB / 450.5 MB, free: 6.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.2676, allocations: 43.42 kB / 450.5 MB, free: 6.227 MB / 318.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2676, allocations: 0 / 450.5 MB, free: 6.227 MB / 318.1 MB Notification: Performance of Templates: time 0.01599/0.2836, allocations: 10 MB / 460.5 MB, free: 12.3 MB / 334.1 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.makefile (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.sim & ./PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic -jacobian=coloredNumerical -nls=newton -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe 2>&1)