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.001177/0.001177, allocations: 102.5 kB / 16.27 MB, free: 5.98 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.001237/0.001238, allocations: 189.8 kB / 17.19 MB, free: 5.605 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.32/1.32, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02609/0.02609, allocations: 5.397 MB / 296.5 MB, free: 9.531 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 55.91 kB / 361.6 MB, free: 8.375 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2036/0.205, allocations: 50.62 MB / 412.2 MB, free: 29.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic): time 0.003854/0.2089, allocations: 3.859 MB / 416.1 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001729/0.2106, allocations: 1.492 MB / 417.5 MB, free: 24.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002158/0.2109, allocations: 11.94 kB / 417.6 MB, free: 24.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004979/0.2114, allocations: 230.6 kB / 417.8 MB, free: 23.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003253/0.2117, allocations: 182.6 kB / 418 MB, free: 23.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003343/0.2121, allocations: 215.7 kB / 418.2 MB, free: 23.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004323/0.2125, allocations: 0.7592 MB / 418.9 MB, free: 22.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002159/0.2127, allocations: 169.9 kB / 419.1 MB, free: 22.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001995/0.213, allocations: 286.9 kB / 419.4 MB, free: 22.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002585/0.2132, allocations: 342.6 kB / 419.7 MB, free: 21.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.064e-05/0.2133, allocations: 76 kB / 419.8 MB, free: 21.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001147/0.2134, allocations: 76 kB / 419.9 MB, free: 21.74 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.026e-05/0.2135, allocations: 163.3 kB / 420 MB, free: 21.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001964/0.2137, allocations: 314.4 kB / 420.3 MB, free: 21.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004268/0.2142, allocations: 0.7048 MB / 421 MB, free: 20.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.2142, allocations: 4 kB / 421 MB, free: 20.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2142, allocations: 0 / 421 MB, free: 20.56 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.505e-06/0.2142, allocations: 0 / 421 MB, free: 20.56 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.002173/0.2164, allocations: 1.022 MB / 422.1 MB, free: 19.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.809e-05/0.2164, allocations: 8.031 kB / 422.1 MB, free: 19.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.2165, allocations: 68.27 kB / 422.1 MB, free: 19.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001011/0.2175, allocations: 0.5645 MB / 422.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.01e-05/0.2176, allocations: 40.77 kB / 422.7 MB, free: 18.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.097e-05/0.2177, allocations: 32 kB / 422.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008243/0.2185, allocations: 447.4 kB / 423.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.2186, allocations: 0 / 423.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.997e-05/0.2186, allocations: 16 kB / 423.2 MB, free: 18.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.2186, allocations: 8 kB / 423.2 MB, free: 18.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001019/0.2196, allocations: 402.2 kB / 423.6 MB, free: 17.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002256/0.2219, allocations: 1.568 MB / 425.2 MB, free: 16.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001299/0.2232, allocations: 0.5769 MB / 425.8 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005/0.2237, allocations: 192.7 kB / 426 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.962e-05/0.2238, allocations: 7.984 kB / 426 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000642/0.2244, allocations: 256.8 kB / 426.2 MB, free: 15.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.603e-06/0.2244, allocations: 0 / 426.2 MB, free: 15.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=25): time 0.003485/0.2279, allocations: 0.9067 MB / 427.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.085e-05/0.228, allocations: 85.05 kB / 427.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003925/0.2284, allocations: 449.9 kB / 427.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.2284, allocations: 29.7 kB / 427.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.2285, allocations: 264 kB / 427.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.187e-05/0.2286, allocations: 86.83 kB / 428 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/0.2287, allocations: 69.91 kB / 428.1 MB, free: 13.19 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.074e-05/0.2288, allocations: 362.7 kB / 428.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005018/0.2293, allocations: 182.2 kB / 428.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004947/0.2298, allocations: 233.1 kB / 428.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000923/0.2307, allocations: 401.2 kB / 429.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.2308, allocations: 0 / 429.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002553/0.2333, allocations: 0.7651 MB / 430 MB, free: 11.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.815e-05/0.2334, allocations: 33.64 kB / 430 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.2334, allocations: 4.062 kB / 430 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007819/0.2342, allocations: 241.5 kB / 430.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003896/0.2346, allocations: 71.88 kB / 430.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004289/0.2389, allocations: 3.735 MB / 434.1 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005339/0.2394, allocations: 71.7 kB / 434.1 MB, free: 6.758 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.045e-05/0.2395, allocations: 11.98 kB / 434.2 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005632/0.24, allocations: 300 kB / 434.5 MB, free: 6.449 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004569/0.2405, allocations: 224.8 kB / 434.7 MB, free: 6.215 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008397/0.2413, allocations: 384.4 kB / 435 MB, free: 5.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.533e-06/0.2413, allocations: 0 / 435 MB, free: 5.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.002467/0.2438, allocations: 0.7458 MB / 435.8 MB, free: 5.055 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.2439, allocations: 41.62 kB / 435.8 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.605e-06/0.2439, allocations: 0 / 435.8 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000675/0.2445, allocations: 241.7 kB / 436.1 MB, free: 4.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003417/0.2449, allocations: 75.88 kB / 436.1 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004052/0.249, allocations: 3.734 MB / 439.9 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005344/0.2495, allocations: 63.72 kB / 439.9 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.888e-05/0.2496, allocations: 15.98 kB / 440 MB, free: 0.6016 MB / 302.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.0001255/0.2497, allocations: 205.7 kB / 440.2 MB, free: 404 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.03e-05/0.2498, allocations: 47.38 kB / 440.2 MB, free: 356 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001033/0.2499, allocations: 44.02 kB / 440.2 MB, free: 316 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2499, allocations: 4 kB / 440.2 MB, free: 312 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.2499, allocations: 0 / 440.2 MB, free: 312 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.2499, allocations: 8.062 kB / 440.3 MB, free: 304 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00292/0.2528, allocations: 1.127 MB / 441.4 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.2528, allocations: 0 / 441.4 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000281/0.2531, allocations: 59.92 kB / 441.4 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003637/0.2535, allocations: 160.7 kB / 441.6 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.835e-05/0.2535, allocations: 7.984 kB / 441.6 MB, free: 14.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003432/0.257, allocations: 2.011 MB / 443.6 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.257, allocations: 0 / 443.6 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002385/0.2594, allocations: 0.6837 MB / 444.3 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002051/0.2596, allocations: 152.4 kB / 444.4 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.804e-05/0.2597, allocations: 8 kB / 444.5 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004476/0.2602, allocations: 43.88 kB / 444.5 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.2603, allocations: 39.91 kB / 444.5 MB, free: 11.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.378e-05/0.2603, allocations: 7.984 kB / 444.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003863/0.2607, allocations: 323.1 kB / 444.9 MB, free: 11.44 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2607, allocations: 0 / 444.9 MB, free: 11.44 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008274/0.2615, allocations: 211.5 kB / 445.1 MB, free: 11.23 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 (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.0001661/0.2617, allocations: 112.4 kB / 445.2 MB, free: 11.12 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002701/0.2644, allocations: 1.246 MB / 446.4 MB, free: 9.789 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.2644, allocations: 0 / 446.4 MB, free: 9.789 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006892/0.2651, allocations: 306.4 kB / 446.7 MB, free: 9.477 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006176/0.2658, allocations: 101.9 kB / 446.8 MB, free: 9.379 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001656/0.2674, allocations: 0.847 MB / 447.7 MB, free: 8.492 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000345/0.2678, allocations: 0.8197 MB / 448.5 MB, free: 7.645 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001311/0.2679, allocations: 51.36 kB / 448.5 MB, free: 7.594 MB / 318.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2679, allocations: 0 / 448.5 MB, free: 7.594 MB / 318.1 MB Notification: Performance of Templates: time 0.01349/0.2814, allocations: 9.793 MB / 458.3 MB, free: 13.85 MB / 334.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)