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.00112/0.00112, allocations: 104.6 kB / 16.27 MB, free: 5.984 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.00114/0.00114, allocations: 189 kB / 17.2 MB, free: 5.609 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.307/1.307, allocations: 222.9 MB / 240.9 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02714/0.02714, allocations: 5.386 MB / 296.5 MB, free: 9.543 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 59.91 kB / 361.6 MB, free: 8.375 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1951/0.1964, allocations: 50.61 MB / 412.2 MB, free: 29.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic): time 0.003996/0.2005, allocations: 3.906 MB / 416.1 MB, free: 25.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001646/0.2021, allocations: 1.495 MB / 417.6 MB, free: 24.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002265/0.2024, allocations: 11.94 kB / 417.6 MB, free: 24.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004824/0.2029, allocations: 234.6 kB / 417.8 MB, free: 23.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003455/0.2032, allocations: 190.5 kB / 418 MB, free: 23.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003351/0.2036, allocations: 219.7 kB / 418.2 MB, free: 23.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004682/0.2041, allocations: 0.7747 MB / 419 MB, free: 22.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002563/0.2043, allocations: 206.5 kB / 419.2 MB, free: 22.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002234/0.2046, allocations: 294.9 kB / 419.5 MB, free: 22.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002863/0.2049, allocations: 366.5 kB / 419.9 MB, free: 21.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.264e-05/0.205, allocations: 76 kB / 419.9 MB, free: 21.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001179/0.2051, allocations: 80 kB / 420 MB, free: 21.6 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.592e-05/0.2052, allocations: 151.5 kB / 420.2 MB, free: 21.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002007/0.2054, allocations: 322.4 kB / 420.5 MB, free: 21.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004601/0.2058, allocations: 0.7437 MB / 421.2 MB, free: 20.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2059, allocations: 0 / 421.2 MB, free: 20.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2059, allocations: 0 / 421.2 MB, free: 20.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.825e-06/0.2059, allocations: 0 / 421.2 MB, free: 20.39 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.002203/0.2081, allocations: 1.038 MB / 422.3 MB, free: 19.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.897e-05/0.2081, allocations: 12.03 kB / 422.3 MB, free: 19.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/0.2082, allocations: 68.17 kB / 422.3 MB, free: 19.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001017/0.2093, allocations: 0.5688 MB / 422.9 MB, free: 18.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.872e-05/0.2094, allocations: 45.11 kB / 423 MB, free: 18.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.182e-05/0.2094, allocations: 28 kB / 423 MB, free: 18.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007987/0.2102, allocations: 454.1 kB / 423.4 MB, free: 18.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.2103, allocations: 0 / 423.4 MB, free: 18.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.853e-05/0.2103, allocations: 16 kB / 423.4 MB, free: 18.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/0.2103, allocations: 8 kB / 423.4 MB, free: 18.06 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.2113, allocations: 419.6 kB / 423.9 MB, free: 17.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00217/0.2135, allocations: 1.582 MB / 425.4 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.2147, allocations: 0.5442 MB / 426 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005086/0.2152, allocations: 197.2 kB / 426.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3e-05/0.2152, allocations: 4.234 kB / 426.2 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006246/0.2159, allocations: 285.2 kB / 426.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.643e-06/0.2159, allocations: 0 / 426.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.003523/0.2194, allocations: 0.9437 MB / 427.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.224e-05/0.2195, allocations: 89.03 kB / 427.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003837/0.2198, allocations: 441.8 kB / 427.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.129e-05/0.2199, allocations: 37.7 kB / 428 MB, free: 13.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.22, allocations: 252.1 kB / 428.2 MB, free: 13.06 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.655e-05/0.2201, allocations: 90.66 kB / 428.3 MB, free: 12.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.2202, allocations: 73.91 kB / 428.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.041e-05/0.2203, allocations: 358.8 kB / 428.7 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004976/0.2208, allocations: 189.6 kB / 428.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004953/0.2213, allocations: 237.7 kB / 429.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009137/0.2222, allocations: 410.1 kB / 429.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.2222, allocations: 0 / 429.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00255/0.2248, allocations: 0.7692 MB / 430.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.842e-05/0.2248, allocations: 33.69 kB / 430.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.2248, allocations: 4 kB / 430.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007601/0.2256, allocations: 245.4 kB / 430.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003756/0.226, allocations: 75.88 kB / 430.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004208/0.2302, allocations: 3.724 MB / 434.4 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005334/0.2307, allocations: 63.7 kB / 434.4 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.024e-05/0.2308, allocations: 11.98 kB / 434.4 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000596/0.2314, allocations: 308.3 kB / 434.7 MB, free: 6.125 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004668/0.2319, allocations: 244.7 kB / 435 MB, free: 5.867 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008721/0.2327, allocations: 405.3 kB / 435.4 MB, free: 5.449 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.573e-06/0.2328, allocations: 0 / 435.4 MB, free: 5.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization_lambda0): time 0.00251/0.2353, allocations: 0.7538 MB / 436.1 MB, free: 4.676 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.2353, allocations: 37.69 kB / 436.2 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.2353, allocations: 3.938 kB / 436.2 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006825/0.236, allocations: 245.5 kB / 436.4 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003469/0.2364, allocations: 79.88 kB / 436.5 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004075/0.2404, allocations: 3.727 MB / 440.2 MB, free: 304 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005236/0.241, allocations: 59.78 kB / 440.3 MB, free: 244 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.92e-05/0.241, allocations: 15.98 kB / 440.3 MB, free: 228 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.0001237/0.2412, allocations: 204.2 kB / 440.5 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.099e-05/0.2413, allocations: 43.61 kB / 440.5 MB, free: 15.97 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002465/0.2437, allocations: 0.6477 MB / 441.2 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.2437, allocations: 4 kB / 441.2 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.2438, allocations: 0 / 441.2 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.2438, allocations: 0 / 441.2 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00297/0.2467, allocations: 1.199 MB / 442.4 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.2468, allocations: 0 / 442.4 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003406/0.2471, allocations: 59.94 kB / 442.4 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003547/0.2475, allocations: 164.8 kB / 442.6 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.208e-05/0.2475, allocations: 7.984 kB / 442.6 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003314/0.2508, allocations: 2 MB / 444.6 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.2509, allocations: 3.938 kB / 444.6 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002423/0.2533, allocations: 0.7189 MB / 445.3 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001981/0.2535, allocations: 160.4 kB / 445.5 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.132e-05/0.2536, allocations: 16 kB / 445.5 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004448/0.254, allocations: 39.95 kB / 445.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.2541, allocations: 31.95 kB / 445.6 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.923e-05/0.2542, allocations: 15.98 kB / 445.6 MB, free: 10.65 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003457/0.2545, allocations: 307.1 kB / 445.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2545, allocations: 0 / 445.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008169/0.2554, allocations: 219.5 kB / 446.1 MB, free: 10.14 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.0001402/0.2555, allocations: 103.2 kB / 446.2 MB, free: 10.03 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002607/0.2581, allocations: 1.285 MB / 447.5 MB, free: 8.66 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2581, allocations: 0 / 447.5 MB, free: 8.66 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000671/0.2588, allocations: 326.8 kB / 447.8 MB, free: 8.328 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006119/0.2594, allocations: 107.4 kB / 447.9 MB, free: 8.227 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.261, allocations: 0.8984 MB / 448.8 MB, free: 7.297 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003545/0.2614, allocations: 0.8354 MB / 449.7 MB, free: 6.434 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/0.2616, allocations: 39.42 kB / 449.7 MB, free: 6.395 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2616, allocations: 4 kB / 449.7 MB, free: 6.391 MB / 318.1 MB Notification: Performance of Templates: time 0.01185/0.2734, allocations: 10.01 MB / 459.7 MB, free: 12.41 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 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe 2>&1)