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.001489/0.001489, allocations: 108.1 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.001721/0.001721, 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.428/1.428, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02698/0.02698, allocations: 5.405 MB / 296.6 MB, free: 9.441 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 71.89 kB / 413.5 MB, free: 22.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08849/0.0897, allocations: 50.62 MB / 464.1 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic): time 0.007324/0.09708, allocations: 3.887 MB / 468 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00329/0.1004, allocations: 1.499 MB / 469.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000472/0.1009, allocations: 12 kB / 469.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008838/0.1018, allocations: 238.4 kB / 469.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008267/0.1027, allocations: 194.5 kB / 469.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007234/0.1034, allocations: 219.7 kB / 470.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001246/0.1047, allocations: 0.7786 MB / 470.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000466/0.1052, allocations: 206.5 kB / 471.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004753/0.1057, allocations: 306.8 kB / 471.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005411/0.1062, allocations: 350.5 kB / 471.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001487/0.1064, allocations: 76 kB / 471.8 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002051/0.1066, allocations: 87.98 kB / 471.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001759/0.1068, allocations: 147.5 kB / 472.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004261/0.1072, allocations: 330.3 kB / 472.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009943/0.1082, allocations: 0.7515 MB / 473.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1082, allocations: 0 / 473.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1083, allocations: 0 / 473.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.797e-06/0.1083, allocations: 0 / 473.1 MB, free: 10.72 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: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.003364/0.1116, allocations: 1.042 MB / 474.2 MB, free: 9.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.1117, allocations: 8.031 kB / 474.2 MB, free: 9.617 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001777/0.1119, allocations: 64.19 kB / 474.3 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001697/0.1136, allocations: 0.5688 MB / 474.8 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.562e-05/0.1137, allocations: 37.12 kB / 474.9 MB, free: 8.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.045e-05/0.1137, allocations: 39.94 kB / 474.9 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.1151, allocations: 450.1 kB / 475.3 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.1152, allocations: 0 / 475.3 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.739e-05/0.1152, allocations: 20 kB / 475.4 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.1153, allocations: 8 kB / 475.4 MB, free: 8.391 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001665/0.1169, allocations: 415.6 kB / 475.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003704/0.1207, allocations: 1.559 MB / 477.3 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001869/0.1226, allocations: 0.5497 MB / 477.9 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009051/0.1235, allocations: 201.2 kB / 478.1 MB, free: 5.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.965e-05/0.1236, allocations: 4.234 kB / 478.1 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009056/0.1245, allocations: 277.2 kB / 478.3 MB, free: 5.227 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 3.406e-06/0.1245, allocations: 4 kB / 478.4 MB, free: 5.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.006211/0.1307, allocations: 0.9483 MB / 479.3 MB, free: 4.246 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.296e-05/0.1308, allocations: 85.11 kB / 479.4 MB, free: 4.145 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009801/0.1318, allocations: 441.8 kB / 479.8 MB, free: 3.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.802e-05/0.1319, allocations: 29.7 kB / 479.8 MB, free: 3.672 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002939/0.1323, allocations: 260 kB / 480.1 MB, free: 3.414 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001409/0.1324, allocations: 90.66 kB / 480.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002403/0.1327, allocations: 70.02 kB / 480.3 MB, free: 3.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002057/0.1329, allocations: 358.7 kB / 480.6 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009411/0.1338, allocations: 189.7 kB / 480.8 MB, free: 2.703 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001023/0.1349, allocations: 233.7 kB / 481 MB, free: 2.457 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001862/0.1368, allocations: 414 kB / 481.4 MB, free: 2.031 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/0.1368, allocations: 0 / 481.4 MB, free: 2.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.004004/0.1408, allocations: 0.7692 MB / 482.2 MB, free: 1.242 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.551e-05/0.1409, allocations: 37.7 kB / 482.2 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.1409, allocations: 0 / 482.2 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001301/0.1422, allocations: 245.4 kB / 482.5 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006981/0.143, allocations: 75.88 kB / 482.5 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008287/0.1513, allocations: 3.739 MB / 486.3 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000918/0.1522, allocations: 59.7 kB / 486.3 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.707e-05/0.1524, allocations: 15.98 kB / 486.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00112/0.1535, allocations: 308.9 kB / 486.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008296/0.1543, allocations: 225.5 kB / 486.9 MB, free: 12.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001738/0.1561, allocations: 417.5 kB / 487.3 MB, free: 11.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.989e-06/0.1561, allocations: 0 / 487.3 MB, free: 11.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization_lambda0): time 0.004462/0.1606, allocations: 0.7649 MB / 488.1 MB, free: 11.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.701e-05/0.1607, allocations: 33.7 kB / 488.1 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.1607, allocations: 4 kB / 488.1 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001136/0.1618, allocations: 237.6 kB / 488.3 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006098/0.1625, allocations: 83.81 kB / 488.4 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008268/0.1708, allocations: 3.719 MB / 492.1 MB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009351/0.1717, allocations: 55.7 kB / 492.2 MB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.797e-05/0.1718, allocations: 19.98 kB / 492.2 MB, free: 6.586 MB / 366.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.0002624/0.1721, allocations: 201.1 kB / 492.4 MB, free: 6.383 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001578/0.1723, allocations: 47.44 kB / 492.4 MB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0041/0.1764, allocations: 0.6437 MB / 493.1 MB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.1764, allocations: 4 kB / 493.1 MB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1765, allocations: 0 / 493.1 MB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.1765, allocations: 4.078 kB / 493.1 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005147/0.1816, allocations: 1.195 MB / 494.3 MB, free: 4.418 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.649e-05/0.1817, allocations: 8 kB / 494.3 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005928/0.1823, allocations: 59.94 kB / 494.4 MB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000641/0.183, allocations: 160.8 kB / 494.5 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.965e-05/0.183, allocations: 11.98 kB / 494.5 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005239/0.1883, allocations: 1.992 MB / 496.5 MB, free: 2.043 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/0.1883, allocations: 7.969 kB / 496.5 MB, free: 2.035 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003925/0.1923, allocations: 0.7161 MB / 497.2 MB, free: 1.297 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003394/0.1927, allocations: 156.4 kB / 497.4 MB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001191/0.1928, allocations: 7.938 kB / 497.4 MB, free: 1.117 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006311/0.1934, allocations: 43.95 kB / 497.4 MB, free: 1.074 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/0.1936, allocations: 39.95 kB / 497.5 MB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.156e-05/0.1937, allocations: 11.98 kB / 497.5 MB, free: 1.023 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005438/0.1942, allocations: 303.1 kB / 497.8 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.124e-06/0.1942, allocations: 0 / 497.8 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001318/0.1956, allocations: 227.3 kB / 498 MB, free: 0.5078 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 (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.0002355/0.1958, allocations: 121.4 kB / 498.1 MB, free: 388 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004224/0.2001, allocations: 1.285 MB / 499.4 MB, free: 15.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.2001, allocations: 0 / 499.4 MB, free: 15.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001206/0.2013, allocations: 314.8 kB / 499.7 MB, free: 14.69 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.2024, allocations: 100.2 kB / 499.8 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002695/0.2051, allocations: 0.8727 MB / 0.489 GB, free: 13.69 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005781/0.2057, allocations: 0.8354 MB / 0.4898 GB, free: 12.83 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002491/0.206, allocations: 43.42 kB / 0.4898 GB, free: 12.79 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.206, allocations: 0 / 0.4898 GB, free: 12.79 MB / 382.1 MB Notification: Performance of Templates: time 0.02183/0.2279, allocations: 10.13 MB / 0.4997 GB, free: 2.688 MB / 382.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)