Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.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.SimpleCellIrradianceCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic") translateModel(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006184/0.006184, allocations: 102.2 kB / 15.73 MB, free: 6.031 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.00137/0.00137, allocations: 197.6 kB / 16.67 MB, free: 5.969 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.388/1.388, allocations: 222.9 MB / 240.3 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1401/0.1401, allocations: 5.391 MB / 295.9 MB, free: 2.832 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 59.91 kB / 412.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2865, allocations: 50.61 MB / 463.4 MB, free: 21.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic): time 0.005384/0.2919, allocations: 3.858 MB / 467.3 MB, free: 18.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002714/0.2947, allocations: 1.491 MB / 468.8 MB, free: 17.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006392/0.2953, allocations: 14.62 kB / 468.8 MB, free: 17.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008076/0.2962, allocations: 237.6 kB / 469 MB, free: 17.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008735/0.2971, allocations: 176.8 kB / 469.2 MB, free: 17.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006712/0.2978, allocations: 217.6 kB / 469.4 MB, free: 17.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001005/0.2988, allocations: 0.7744 MB / 470.2 MB, free: 17.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002958/0.2991, allocations: 172.2 kB / 470.3 MB, free: 16.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003125/0.2994, allocations: 282.6 kB / 470.6 MB, free: 16.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004025/0.2998, allocations: 341.5 kB / 470.9 MB, free: 16.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001118/0.3, allocations: 74.47 kB / 471 MB, free: 16.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001883/0.3002, allocations: 82.86 kB / 471.1 MB, free: 16.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001268/0.3003, allocations: 153.2 kB / 471.2 MB, free: 16.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002693/0.3006, allocations: 306.5 kB / 471.5 MB, free: 16.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008667/0.3014, allocations: 0.7263 MB / 472.3 MB, free: 16.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3015, allocations: 0 / 472.3 MB, free: 16.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3015, allocations: 4 kB / 472.3 MB, free: 16.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.3015, allocations: 3.938 kB / 472.3 MB, free: 16.03 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.002713/0.3042, allocations: 1.02 MB / 473.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/0.3043, allocations: 8.812 kB / 473.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001641/0.3044, allocations: 66 kB / 473.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00136/0.3058, allocations: 0.561 MB / 473.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.023e-05/0.3058, allocations: 30.72 kB / 474 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.126e-05/0.3059, allocations: 33.5 kB / 474 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.307, allocations: 443.2 kB / 474.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.307, allocations: 1.125 kB / 474.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.093e-05/0.307, allocations: 13.19 kB / 474.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.3071, allocations: 11.5 kB / 474.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.3082, allocations: 396.6 kB / 474.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002672/0.3109, allocations: 1.56 MB / 476.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/0.3123, allocations: 0.5725 MB / 477 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005441/0.3129, allocations: 187.7 kB / 477.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.222e-05/0.3129, allocations: 7.219 kB / 477.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006138/0.3136, allocations: 265.3 kB / 477.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.903e-06/0.3136, allocations: 3.938 kB / 477.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.003633/0.3172, allocations: 0.908 MB / 478.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/0.3173, allocations: 80.42 kB / 478.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005253/0.3178, allocations: 459.5 kB / 478.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.865e-05/0.3178, allocations: 31.83 kB / 478.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001487/0.318, allocations: 262.7 kB / 479.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.169e-05/0.3181, allocations: 85.64 kB / 479.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.3182, allocations: 75.78 kB / 479.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.858e-05/0.3183, allocations: 360.6 kB / 479.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005238/0.3188, allocations: 183.8 kB / 479.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005307/0.3193, allocations: 222.2 kB / 480.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009712/0.3203, allocations: 402.7 kB / 480.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3203, allocations: 1 kB / 480.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00255/0.3229, allocations: 0.7565 MB / 481.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/0.3229, allocations: 32.05 kB / 481.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.323, allocations: 9 kB / 481.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007894/0.3238, allocations: 234.4 kB / 481.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003846/0.3241, allocations: 79.88 kB / 481.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004237/0.3284, allocations: 3.726 MB / 485.3 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005444/0.329, allocations: 71.25 kB / 485.3 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.382e-05/0.329, allocations: 13.31 kB / 485.4 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006014/0.3296, allocations: 305.8 kB / 485.7 MB, free: 6.656 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004928/0.3301, allocations: 214.2 kB / 485.9 MB, free: 6.527 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008963/0.331, allocations: 387.8 kB / 486.2 MB, free: 6.297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.332e-06/0.331, allocations: 3.938 kB / 486.3 MB, free: 6.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.002516/0.3336, allocations: 0.7636 MB / 487 MB, free: 5.883 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.3336, allocations: 31.98 kB / 487 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.354e-06/0.3336, allocations: 1.875 kB / 487 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006881/0.3343, allocations: 246.4 kB / 487.3 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003434/0.3346, allocations: 67.88 kB / 487.4 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004042/0.3387, allocations: 3.74 MB / 491.1 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005271/0.3392, allocations: 67.3 kB / 491.2 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.229e-05/0.3393, allocations: 12.39 kB / 491.2 MB, free: 2.16 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (36): * Single equations (assignments): 33 * 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.0001345/0.3394, allocations: 202.6 kB / 491.4 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.816e-05/0.3395, allocations: 49.06 kB / 491.4 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001014/0.3396, allocations: 48.06 kB / 491.5 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.3396, allocations: 3.906 kB / 491.5 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3396, allocations: 0 / 491.5 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3396, allocations: 0 / 491.5 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00264/0.3423, allocations: 1.116 MB / 492.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3423, allocations: 1.438 kB / 492.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002677/0.3426, allocations: 60.8 kB / 492.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003105/0.3429, allocations: 165.8 kB / 492.8 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.653e-05/0.3429, allocations: 6.75 kB / 492.8 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002993/0.3459, allocations: 2.01 MB / 494.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.3459, allocations: 1.062 kB / 494.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002269/0.3482, allocations: 0.6791 MB / 495.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001861/0.3484, allocations: 151.3 kB / 495.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.3e-05/0.3485, allocations: 14.3 kB / 495.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004235/0.3489, allocations: 39.86 kB / 495.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.349, allocations: 37.42 kB / 495.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.497e-05/0.3491, allocations: 9.656 kB / 495.7 MB, free: 14.58 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003663/0.3494, allocations: 317.2 kB / 496.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3494, allocations: 0 / 496.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007903/0.3502, allocations: 220.9 kB / 496.3 MB, free: 14.35 MB / 366.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 (23): * Single equations (assignments): 20 * 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.0001548/0.3504, allocations: 108.4 kB / 496.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002557/0.353, allocations: 1.256 MB / 497.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.353, allocations: 1.156 kB / 497.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006599/0.3536, allocations: 310 kB / 497.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005786/0.3542, allocations: 97.38 kB / 498 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.3557, allocations: 0.7946 MB / 498.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003893/0.3561, allocations: 0.8275 MB / 499.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002705/0.3564, allocations: 64.14 kB / 499.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.3565, allocations: 39.42 kB / 499.8 MB, free: 11.49 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3565, allocations: 4 kB / 499.8 MB, free: 11.49 MB / 366.1 MB Notification: Performance of Templates: time 0.01599/0.3725, allocations: 10.45 MB / 0.4983 GB, free: 1.125 MB / 366.1 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.makefile (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.sim & ./PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic -jacobian=coloredNumerical -nls=newton -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe 2>&1)