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.001224/0.001224, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.0015/0.0015, allocations: 194 kB / 16.25 MB, free: 6.625 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.359/1.359, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1393/0.1393, allocations: 5.394 MB / 295.5 MB, free: 2.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001727/0.001727, allocations: 59.89 kB / 360.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1137, allocations: 50.61 MB / 411 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic): time 0.007971/0.1217, allocations: 3.882 MB / 414.8 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003518/0.1253, allocations: 1.488 MB / 416.3 MB, free: 6.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007941/0.1262, allocations: 4 kB / 416.3 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00102/0.1272, allocations: 210.8 kB / 416.5 MB, free: 6.199 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000801/0.128, allocations: 154.9 kB / 416.7 MB, free: 6.047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005439/0.1286, allocations: 203.7 kB / 416.9 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008387/0.1294, allocations: 0.7475 MB / 417.6 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003539/0.1298, allocations: 181.9 kB / 417.8 MB, free: 4.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003178/0.1301, allocations: 298.8 kB / 418.1 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00033/0.1305, allocations: 334.7 kB / 418.4 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.599e-05/0.1306, allocations: 72 kB / 418.5 MB, free: 4.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001387/0.1307, allocations: 91.92 kB / 418.6 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.1308, allocations: 147.5 kB / 418.7 MB, free: 3.984 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002446/0.1311, allocations: 302.5 kB / 419 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007741/0.1319, allocations: 0.7204 MB / 419.8 MB, free: 2.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.1319, allocations: 0 / 419.8 MB, free: 2.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.1319, allocations: 0 / 419.8 MB, free: 2.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.1319, allocations: 0 / 419.8 MB, free: 2.965 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.002615/0.1345, allocations: 1.026 MB / 420.8 MB, free: 1.883 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.1346, allocations: 8.031 kB / 420.8 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.1347, allocations: 60.28 kB / 420.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001203/0.1359, allocations: 0.5646 MB / 421.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/0.136, allocations: 40.75 kB / 421.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.576e-05/0.1361, allocations: 32 kB / 421.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009384/0.1371, allocations: 435.5 kB / 421.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.1371, allocations: 3.938 kB / 421.9 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.079e-05/0.1371, allocations: 12 kB / 421.9 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.1371, allocations: 8 kB / 421.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.1382, allocations: 406.3 kB / 422.3 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.208/0.3463, allocations: 1.562 MB / 423.9 MB, free: 47.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001447/0.3478, allocations: 0.5755 MB / 424.5 MB, free: 47.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000536/0.3483, allocations: 192 kB / 424.7 MB, free: 47.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.838e-05/0.3484, allocations: 6.625 kB / 424.7 MB, free: 47.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006509/0.349, allocations: 252.3 kB / 424.9 MB, free: 47.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.533e-06/0.349, allocations: 0 / 424.9 MB, free: 47.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.003713/0.3527, allocations: 0.9079 MB / 425.8 MB, free: 47.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.966e-05/0.3528, allocations: 83.02 kB / 425.9 MB, free: 47.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004621/0.3533, allocations: 454.9 kB / 426.3 MB, free: 46.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.642e-05/0.3533, allocations: 36.11 kB / 426.4 MB, free: 46.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.3535, allocations: 261.6 kB / 426.6 MB, free: 46.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.695e-05/0.3535, allocations: 83.31 kB / 426.7 MB, free: 46.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/0.3537, allocations: 70.45 kB / 426.8 MB, free: 46.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.882e-05/0.3538, allocations: 350.7 kB / 427.1 MB, free: 46.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004637/0.3542, allocations: 188.6 kB / 427.3 MB, free: 46.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004592/0.3547, allocations: 227.3 kB / 427.5 MB, free: 46.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008698/0.3556, allocations: 397.2 kB / 427.9 MB, free: 46.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.3556, allocations: 3.594 kB / 427.9 MB, free: 46.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002605/0.3582, allocations: 0.7613 MB / 428.7 MB, free: 45.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.38e-05/0.3583, allocations: 34.89 kB / 428.7 MB, free: 45.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.3583, allocations: 0 / 428.7 MB, free: 45.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008166/0.3591, allocations: 247.8 kB / 429 MB, free: 45.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003807/0.3595, allocations: 79.58 kB / 429 MB, free: 45.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004473/0.364, allocations: 3.73 MB / 432.8 MB, free: 42.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006054/0.3646, allocations: 66.34 kB / 432.8 MB, free: 42.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.295e-05/0.3646, allocations: 16.56 kB / 432.9 MB, free: 42.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005606/0.3652, allocations: 293.3 kB / 433.1 MB, free: 42.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004324/0.3656, allocations: 230.8 kB / 433.4 MB, free: 42.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007938/0.3664, allocations: 382.8 kB / 433.7 MB, free: 41.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.615e-06/0.3665, allocations: 4 kB / 433.7 MB, free: 41.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.002497/0.369, allocations: 0.7551 MB / 434.5 MB, free: 41.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.369, allocations: 33.09 kB / 434.5 MB, free: 41.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.369, allocations: 0 / 434.5 MB, free: 41.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007025/0.3697, allocations: 246.2 kB / 434.8 MB, free: 41.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003477/0.3701, allocations: 81.05 kB / 434.8 MB, free: 41.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004182/0.3743, allocations: 3.729 MB / 438.6 MB, free: 38.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006441/0.3749, allocations: 65.98 kB / 438.6 MB, free: 38.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.155e-05/0.375, allocations: 16.72 kB / 438.7 MB, free: 38.34 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.0001847/0.3752, allocations: 201.8 kB / 438.9 MB, free: 38.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.455e-05/0.3752, allocations: 44.97 kB / 438.9 MB, free: 38.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000104/0.3753, allocations: 51.02 kB / 438.9 MB, free: 38.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.3753, allocations: 10.97 kB / 439 MB, free: 38.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3754, allocations: 0 / 439 MB, free: 38.08 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.3754, allocations: 3.328 kB / 439 MB, free: 38.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002649/0.378, allocations: 1.121 MB / 440.1 MB, free: 37.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.378, allocations: 3.516 kB / 440.1 MB, free: 37.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002529/0.3783, allocations: 59.34 kB / 440.1 MB, free: 37.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003253/0.3786, allocations: 163.8 kB / 440.3 MB, free: 37.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.53e-05/0.3787, allocations: 4 kB / 440.3 MB, free: 37.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002994/0.3817, allocations: 2.024 MB / 442.3 MB, free: 35.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.3817, allocations: 0.875 kB / 442.3 MB, free: 35.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002213/0.3839, allocations: 0.6765 MB / 443 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001849/0.3841, allocations: 154 kB / 443.2 MB, free: 35.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.707e-05/0.3842, allocations: 7.125 kB / 443.2 MB, free: 35.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004283/0.3846, allocations: 43.94 kB / 443.2 MB, free: 35.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.3847, allocations: 33.33 kB / 443.2 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-05/0.3848, allocations: 6.938 kB / 443.2 MB, free: 35.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003308/0.3851, allocations: 318.1 kB / 443.6 MB, free: 35.28 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3851, allocations: 3.938 kB / 443.6 MB, free: 35.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008942/0.386, allocations: 217.8 kB / 443.8 MB, free: 35.23 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 (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.0001776/0.3862, allocations: 111.4 kB / 443.9 MB, free: 35.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002318/0.3885, allocations: 1.251 MB / 445.1 MB, free: 34.37 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.3885, allocations: 0 / 445.1 MB, free: 34.37 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005505/0.3891, allocations: 313.4 kB / 445.4 MB, free: 34.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006113/0.3897, allocations: 102.6 kB / 445.5 MB, free: 34.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001518/0.3912, allocations: 0.9696 MB / 446.5 MB, free: 33.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002514/0.3915, allocations: 0.8337 MB / 447.3 MB, free: 32.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003443/0.3919, allocations: 65.28 kB / 447.4 MB, free: 32.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/0.392, allocations: 40.14 kB / 447.4 MB, free: 32.8 MB / 350.1 MB Notification: Performance of SimCode: time 8.31e-07/0.392, allocations: 0 / 447.4 MB, free: 32.8 MB / 350.1 MB Notification: Performance of Templates: time 0.01392/0.4059, allocations: 9.836 MB / 457.3 MB, free: 32.22 MB / 350.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)