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.001117/0.001118, allocations: 106.8 kB / 16.41 MB, free: 6.508 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.001155/0.001155, allocations: 187 kB / 17.34 MB, free: 5.742 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.327/1.327, allocations: 222.9 MB / 241 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.02862/0.02862, allocations: 5.399 MB / 296.6 MB, free: 9.484 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 63.91 kB / 413.5 MB, free: 22.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07472/0.07597, allocations: 50.63 MB / 464.1 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic): time 0.004694/0.0807, allocations: 3.852 MB / 468 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002083/0.0828, allocations: 1.488 MB / 469.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001863/0.083, allocations: 4 kB / 469.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005464/0.08356, allocations: 238.4 kB / 469.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003584/0.08394, allocations: 182.5 kB / 469.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003716/0.08432, allocations: 219.7 kB / 470.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006953/0.08503, allocations: 0.7553 MB / 470.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002602/0.0853, allocations: 177.9 kB / 471 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003145/0.08562, allocations: 298.9 kB / 471.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003501/0.08598, allocations: 338.6 kB / 471.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.575e-05/0.08609, allocations: 72 kB / 471.7 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000146/0.08624, allocations: 84 kB / 471.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001602/0.08641, allocations: 147.5 kB / 471.9 MB, free: 12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002551/0.08667, allocations: 306.5 kB / 472.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006826/0.08736, allocations: 0.732 MB / 473 MB, free: 10.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.08738, allocations: 3.984 kB / 473 MB, free: 10.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.08738, allocations: 0 / 473 MB, free: 10.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.08739, allocations: 0 / 473 MB, free: 10.96 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.002604/0.09, allocations: 1.014 MB / 474 MB, free: 9.887 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.09005, allocations: 16.03 kB / 474 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.09017, allocations: 60.19 kB / 474 MB, free: 9.812 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001314/0.0915, allocations: 0.5762 MB / 474.6 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.135e-05/0.09154, allocations: 28.78 kB / 474.6 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.695e-05/0.0916, allocations: 32 kB / 474.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009407/0.09255, allocations: 439.5 kB / 475.1 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.09257, allocations: 0 / 475.1 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.26e-05/0.09262, allocations: 12 kB / 475.1 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.09264, allocations: 8 kB / 475.1 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001162/0.09381, allocations: 406.3 kB / 475.5 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002751/0.09657, allocations: 1.56 MB / 477.1 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001482/0.09807, allocations: 0.5708 MB / 477.7 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005494/0.09863, allocations: 188.7 kB / 477.8 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.09867, allocations: 7.938 kB / 477.8 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006477/0.09932, allocations: 258.4 kB / 478.1 MB, free: 5.547 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.443e-06/0.09934, allocations: 0 / 478.1 MB, free: 5.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.003953/0.1033, allocations: 0.9084 MB / 479 MB, free: 4.609 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.1034, allocations: 81.09 kB / 479.1 MB, free: 4.512 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004899/0.1039, allocations: 457.8 kB / 479.5 MB, free: 4.062 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.026e-05/0.1039, allocations: 29.7 kB / 479.6 MB, free: 4.027 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001802/0.1041, allocations: 268.3 kB / 479.8 MB, free: 3.758 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.1042, allocations: 74.91 kB / 479.9 MB, free: 3.684 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001344/0.1043, allocations: 70.02 kB / 480 MB, free: 3.609 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.1045, allocations: 362.7 kB / 480.3 MB, free: 3.246 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005361/0.105, allocations: 182 kB / 480.5 MB, free: 3.066 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005692/0.1056, allocations: 233.4 kB / 480.7 MB, free: 2.824 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001007/0.1066, allocations: 389.2 kB / 481.1 MB, free: 2.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.1066, allocations: 3.938 kB / 481.1 MB, free: 2.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00287/0.1095, allocations: 0.7575 MB / 481.9 MB, free: 1.645 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.242e-05/0.1096, allocations: 29.7 kB / 481.9 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.1096, allocations: 11.91 kB / 481.9 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008779/0.1105, allocations: 241.5 kB / 482.1 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004099/0.1109, allocations: 75.88 kB / 482.2 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005496/0.1164, allocations: 3.735 MB / 486 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005905/0.117, allocations: 71.53 kB / 486 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.613e-05/0.117, allocations: 20.11 kB / 486 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006246/0.1177, allocations: 304 kB / 486.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005389/0.1182, allocations: 220.8 kB / 486.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009706/0.1192, allocations: 384.7 kB / 486.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.443e-06/0.1192, allocations: 0 / 486.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.002915/0.1221, allocations: 0.7534 MB / 487.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.052e-05/0.1222, allocations: 37.64 kB / 487.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/0.1222, allocations: 7.922 kB / 487.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008077/0.123, allocations: 233.6 kB / 488 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004041/0.1235, allocations: 79.88 kB / 488 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005215/0.1287, allocations: 3.739 MB / 491.8 MB, free: 7.094 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005389/0.1292, allocations: 67.62 kB / 491.8 MB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.053e-05/0.1293, allocations: 12.14 kB / 491.9 MB, free: 7.016 MB / 366.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.0001606/0.1294, allocations: 200.2 kB / 492 MB, free: 6.812 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.1296, allocations: 55.36 kB / 492.1 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.719e-05/0.1297, allocations: 44.02 kB / 492.1 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.1297, allocations: 4 kB / 492.1 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.1297, allocations: 0 / 492.1 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.1297, allocations: 3.984 kB / 492.2 MB, free: 6.703 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003002/0.1327, allocations: 1.108 MB / 493.3 MB, free: 5.531 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.1327, allocations: 3.984 kB / 493.3 MB, free: 5.527 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002921/0.133, allocations: 55.89 kB / 493.3 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003294/0.1334, allocations: 164.8 kB / 493.5 MB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.418e-05/0.1334, allocations: 8 kB / 493.5 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003438/0.1368, allocations: 2.011 MB / 495.5 MB, free: 3.137 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.1369, allocations: 0 / 495.5 MB, free: 3.137 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002415/0.1393, allocations: 0.6853 MB / 496.2 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001784/0.1395, allocations: 156.4 kB / 496.3 MB, free: 2.258 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.117e-05/0.1395, allocations: 4 kB / 496.3 MB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004478/0.14, allocations: 39.95 kB / 496.4 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/0.1402, allocations: 43.89 kB / 496.4 MB, free: 2.172 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.218e-05/0.1402, allocations: 4 kB / 496.4 MB, free: 2.168 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003513/0.1405, allocations: 319.1 kB / 496.7 MB, free: 1.863 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1405, allocations: 0 / 496.7 MB, free: 1.863 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007745/0.1413, allocations: 219.4 kB / 497 MB, free: 1.648 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.0001423/0.1415, allocations: 116.4 kB / 497.1 MB, free: 1.527 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002488/0.144, allocations: 1.243 MB / 498.3 MB, free: 208 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.144, allocations: 7.875 kB / 498.3 MB, free: 200 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006529/0.1446, allocations: 302.5 kB / 498.6 MB, free: 15.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005767/0.1452, allocations: 108.9 kB / 498.7 MB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001538/0.1468, allocations: 0.8231 MB / 499.5 MB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003873/0.1472, allocations: 0.8275 MB / 0.4886 GB, free: 14.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/0.1473, allocations: 39.36 kB / 0.4887 GB, free: 14.04 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1473, allocations: 0 / 0.4887 GB, free: 14.04 MB / 382.1 MB Notification: Performance of Templates: time 0.01204/0.1594, allocations: 9.84 MB / 0.4983 GB, free: 4.25 MB / 382.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)