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.001116/0.001116, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 194.8 kB / 16.53 MB, free: 6.391 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.407/1.407, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1628/0.1628, allocations: 5.391 MB / 295.8 MB, free: 2.957 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 63.91 kB / 360.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09678/0.09824, allocations: 50.62 MB / 411.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic): time 0.005149/0.1034, allocations: 3.891 MB / 415.4 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002496/0.106, allocations: 1.499 MB / 416.9 MB, free: 6.031 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002645/0.1062, allocations: 19.88 kB / 416.9 MB, free: 6.012 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006029/0.1069, allocations: 230.5 kB / 417.2 MB, free: 5.785 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004485/0.1073, allocations: 182.5 kB / 417.3 MB, free: 5.605 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004166/0.1078, allocations: 223.6 kB / 417.6 MB, free: 5.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007081/0.1085, allocations: 0.7786 MB / 418.3 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003049/0.1088, allocations: 218.5 kB / 418.5 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002729/0.1091, allocations: 290.9 kB / 418.8 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003569/0.1094, allocations: 354.5 kB / 419.2 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.569e-05/0.1095, allocations: 76 kB / 419.3 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001507/0.1097, allocations: 80 kB / 419.3 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001247/0.1098, allocations: 163.4 kB / 419.5 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002663/0.1101, allocations: 318.5 kB / 419.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006685/0.1108, allocations: 0.7398 MB / 420.5 MB, free: 2.379 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1108, allocations: 0 / 420.5 MB, free: 2.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1108, allocations: 0 / 420.5 MB, free: 2.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.908e-06/0.1108, allocations: 0 / 420.5 MB, free: 2.379 MB / 350.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.002622/0.1134, allocations: 1.046 MB / 421.6 MB, free: 1.277 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.1135, allocations: 11.97 kB / 421.6 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/0.1137, allocations: 60.19 kB / 421.7 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001188/0.1149, allocations: 0.565 MB / 422.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.115, allocations: 45.11 kB / 422.3 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.795e-05/0.115, allocations: 36 kB / 422.3 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009291/0.116, allocations: 450 kB / 422.7 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.116, allocations: 0 / 422.7 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.242e-05/0.1161, allocations: 16 kB / 422.8 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.1161, allocations: 8 kB / 422.8 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2084/0.3245, allocations: 412.2 kB / 423.2 MB, free: 48.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002863/0.3274, allocations: 1.574 MB / 424.7 MB, free: 47.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.3286, allocations: 0.5364 MB / 425.3 MB, free: 47.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005248/0.3292, allocations: 209.2 kB / 425.5 MB, free: 47.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.629e-05/0.3292, allocations: 6.516 kB / 425.5 MB, free: 47.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007405/0.33, allocations: 270.5 kB / 425.8 MB, free: 47.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.043e-06/0.33, allocations: 0 / 425.8 MB, free: 47.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.003484/0.3335, allocations: 0.9627 MB / 426.7 MB, free: 47.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.718e-05/0.3335, allocations: 80.11 kB / 426.8 MB, free: 47.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004452/0.334, allocations: 436.5 kB / 427.2 MB, free: 46.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.728e-05/0.334, allocations: 33.7 kB / 427.3 MB, free: 46.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.3342, allocations: 263.4 kB / 427.5 MB, free: 46.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.426e-05/0.3343, allocations: 90.34 kB / 427.6 MB, free: 46.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001326/0.3344, allocations: 72.11 kB / 427.7 MB, free: 46.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.157e-05/0.3345, allocations: 354.8 kB / 428 MB, free: 46.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004911/0.335, allocations: 188.2 kB / 428.2 MB, free: 46.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004902/0.3355, allocations: 240 kB / 428.4 MB, free: 45.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009184/0.3364, allocations: 418.6 kB / 428.8 MB, free: 45.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3364, allocations: 0 / 428.8 MB, free: 45.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002576/0.339, allocations: 0.7688 MB / 429.6 MB, free: 45.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.959e-05/0.3391, allocations: 38.31 kB / 429.6 MB, free: 45.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.3391, allocations: 3.688 kB / 429.7 MB, free: 45.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007873/0.3399, allocations: 240.9 kB / 429.9 MB, free: 45.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003705/0.3403, allocations: 74.5 kB / 430 MB, free: 45.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004413/0.3447, allocations: 3.73 MB / 433.7 MB, free: 42.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006273/0.3453, allocations: 65.89 kB / 433.8 MB, free: 42.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.612e-05/0.3454, allocations: 17.03 kB / 433.8 MB, free: 42.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006689/0.3461, allocations: 305.6 kB / 434.1 MB, free: 41.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004843/0.3466, allocations: 231 kB / 434.3 MB, free: 41.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008792/0.3475, allocations: 412.1 kB / 434.7 MB, free: 41.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.326e-06/0.3475, allocations: 0 / 434.7 MB, free: 41.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization_lambda0): time 0.002579/0.3501, allocations: 0.7592 MB / 435.5 MB, free: 41.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.3501, allocations: 35.31 kB / 435.5 MB, free: 41.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.3501, allocations: 3.094 kB / 435.5 MB, free: 41.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006999/0.3508, allocations: 240.9 kB / 435.7 MB, free: 41.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003477/0.3512, allocations: 79.56 kB / 435.8 MB, free: 41.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004297/0.3555, allocations: 3.728 MB / 439.5 MB, free: 38.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005901/0.3561, allocations: 69.53 kB / 439.6 MB, free: 38.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.034e-05/0.3562, allocations: 13.08 kB / 439.6 MB, free: 38.07 MB / 350.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.0001858/0.3564, allocations: 202.5 kB / 439.8 MB, free: 37.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.3565, allocations: 49.53 kB / 439.9 MB, free: 37.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002313/0.3588, allocations: 0.6465 MB / 440.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.3588, allocations: 7.219 kB / 440.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3588, allocations: 0.9375 kB / 440.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.3588, allocations: 6.172 kB / 440.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002966/0.3618, allocations: 1.175 MB / 441.7 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.3618, allocations: 0 / 441.7 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003066/0.3622, allocations: 65.45 kB / 441.8 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003313/0.3625, allocations: 165.4 kB / 441.9 MB, free: 37.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.174e-05/0.3625, allocations: 11.09 kB / 441.9 MB, free: 37.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002964/0.3655, allocations: 2.008 MB / 443.9 MB, free: 35.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3655, allocations: 0 / 443.9 MB, free: 35.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002312/0.3678, allocations: 0.7209 MB / 444.7 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002202/0.3681, allocations: 153.8 kB / 444.8 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.825e-05/0.3682, allocations: 6.969 kB / 444.8 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004422/0.3686, allocations: 44.67 kB / 444.9 MB, free: 34.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.3688, allocations: 33.86 kB / 444.9 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-05/0.3688, allocations: 17.31 kB / 444.9 MB, free: 34.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003346/0.3691, allocations: 305.8 kB / 445.2 MB, free: 34.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3692, allocations: 0 / 445.2 MB, free: 34.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009167/0.3701, allocations: 222.6 kB / 445.4 MB, free: 34.76 MB / 350.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.000162/0.3702, allocations: 109.3 kB / 445.5 MB, free: 34.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002513/0.3728, allocations: 1.291 MB / 446.8 MB, free: 33.87 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.3728, allocations: 0 / 446.8 MB, free: 33.87 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006317/0.3734, allocations: 329.8 kB / 447.1 MB, free: 33.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006358/0.3741, allocations: 92.67 kB / 447.2 MB, free: 33.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001969/0.3761, allocations: 0.86 MB / 448.1 MB, free: 33.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003395/0.3764, allocations: 0.8387 MB / 448.9 MB, free: 32.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003921/0.3768, allocations: 67.72 kB / 449 MB, free: 32.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.3769, allocations: 40.53 kB / 449 MB, free: 32.45 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.377, allocations: 0 / 449 MB, free: 32.45 MB / 350.1 MB Notification: Performance of Templates: time 0.01754/0.3945, allocations: 10 MB / 459 MB, free: 31.84 MB / 350.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 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe 2>&1)