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: 110.6 kB / 16.41 MB, free: 6.477 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.001188/0.001189, allocations: 185.5 kB / 17.34 MB, free: 5.754 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.335/1.335, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02706/0.02706, allocations: 5.4 MB / 296.6 MB, free: 9.465 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 63.91 kB / 413.5 MB, free: 22.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1107, allocations: 50.63 MB / 464.1 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic): time 0.006351/0.1171, allocations: 3.894 MB / 468 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0031/0.1203, allocations: 1.495 MB / 469.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006077/0.1209, allocations: 11.94 kB / 469.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008649/0.1218, allocations: 234.5 kB / 469.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007761/0.1226, allocations: 194.5 kB / 469.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006198/0.1232, allocations: 222.7 kB / 470.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001076/0.1243, allocations: 0.7786 MB / 470.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004183/0.1248, allocations: 218.5 kB / 471.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000603/0.1254, allocations: 290.9 kB / 471.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006399/0.126, allocations: 354.5 kB / 471.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002056/0.1262, allocations: 79.94 kB / 471.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002568/0.1265, allocations: 84 kB / 471.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001725/0.1267, allocations: 151.5 kB / 472.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004531/0.1271, allocations: 322.4 kB / 472.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009648/0.1281, allocations: 0.7554 MB / 473.1 MB, free: 10.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1281, allocations: 0 / 473.1 MB, free: 10.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1281, allocations: 4 kB / 473.1 MB, free: 10.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.477e-05/0.1282, allocations: 0 / 473.1 MB, free: 10.74 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.003101/0.1313, allocations: 1.046 MB / 474.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.1313, allocations: 8.031 kB / 474.2 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001917/0.1315, allocations: 64.19 kB / 474.3 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001588/0.1331, allocations: 0.5727 MB / 474.8 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.085e-05/0.1332, allocations: 29.12 kB / 474.9 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.215e-05/0.1333, allocations: 36 kB / 474.9 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/0.1344, allocations: 454.1 kB / 475.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.1345, allocations: 0 / 475.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.842e-05/0.1345, allocations: 16 kB / 475.4 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.1345, allocations: 8 kB / 475.4 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0012/0.1358, allocations: 407.7 kB / 475.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002949/0.1387, allocations: 1.566 MB / 477.3 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001353/0.1401, allocations: 0.5575 MB / 477.9 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005719/0.1407, allocations: 193.2 kB / 478.1 MB, free: 5.539 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.899e-05/0.1407, allocations: 16.22 kB / 478.1 MB, free: 5.523 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007029/0.1414, allocations: 265.1 kB / 478.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.733e-06/0.1414, allocations: 0 / 478.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.003871/0.1453, allocations: 0.9444 MB / 479.3 MB, free: 4.273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.572e-05/0.1454, allocations: 85.11 kB / 479.4 MB, free: 4.172 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005406/0.1459, allocations: 445.8 kB / 479.8 MB, free: 3.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.47e-05/0.146, allocations: 29.7 kB / 479.8 MB, free: 3.695 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002016/0.1462, allocations: 256.1 kB / 480.1 MB, free: 3.441 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001843/0.1464, allocations: 94.64 kB / 480.2 MB, free: 3.348 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001404/0.1465, allocations: 74 kB / 480.3 MB, free: 3.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.1467, allocations: 354.7 kB / 480.6 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00056/0.1473, allocations: 189.7 kB / 480.8 MB, free: 2.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000577/0.1479, allocations: 241.6 kB / 481 MB, free: 2.473 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/0.149, allocations: 418 kB / 481.4 MB, free: 2.043 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.149, allocations: 0 / 481.4 MB, free: 2.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002905/0.1519, allocations: 0.7653 MB / 482.2 MB, free: 1.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.275e-05/0.1519, allocations: 29.7 kB / 482.2 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.1519, allocations: 0 / 482.2 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008414/0.1528, allocations: 245.5 kB / 482.5 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004025/0.1532, allocations: 80.05 kB / 482.5 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005701/0.1589, allocations: 3.731 MB / 486.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000586/0.1595, allocations: 67.78 kB / 486.3 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.612e-05/0.1596, allocations: 12 kB / 486.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006808/0.1603, allocations: 301 kB / 486.6 MB, free: 12.51 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005456/0.1608, allocations: 237.4 kB / 486.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001035/0.1619, allocations: 409.5 kB / 487.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.565e-06/0.1619, allocations: 4 kB / 487.3 MB, free: 11.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization_lambda0): time 0.002714/0.1646, allocations: 0.7611 MB / 488 MB, free: 11.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.633e-05/0.1647, allocations: 32.2 kB / 488.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1647, allocations: 4 kB / 488.1 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007511/0.1654, allocations: 241.5 kB / 488.3 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003807/0.1658, allocations: 83.81 kB / 488.4 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005411/0.1712, allocations: 3.719 MB / 492.1 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005844/0.1718, allocations: 59.69 kB / 492.2 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.618e-05/0.1719, allocations: 16 kB / 492.2 MB, free: 6.609 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.0002196/0.1721, allocations: 201.1 kB / 492.4 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.1722, allocations: 47.44 kB / 492.4 MB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002457/0.1747, allocations: 0.6555 MB / 493.1 MB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.1747, allocations: 4 kB / 493.1 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.1747, allocations: 0 / 493.1 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.1747, allocations: 0 / 493.1 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003082/0.1778, allocations: 1.191 MB / 494.3 MB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.1779, allocations: 4 kB / 494.3 MB, free: 4.434 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003241/0.1782, allocations: 63.89 kB / 494.4 MB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003528/0.1785, allocations: 160.8 kB / 494.5 MB, free: 4.211 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.152e-05/0.1786, allocations: 12 kB / 494.5 MB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003459/0.1821, allocations: 1.992 MB / 496.5 MB, free: 2.062 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.1821, allocations: 7.969 kB / 496.5 MB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002364/0.1844, allocations: 0.72 MB / 497.2 MB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002295/0.1847, allocations: 152.4 kB / 497.4 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.364e-05/0.1848, allocations: 7.938 kB / 497.4 MB, free: 1.137 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004383/0.1852, allocations: 51.88 kB / 497.4 MB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/0.1854, allocations: 39.95 kB / 497.5 MB, free: 1.047 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.514e-05/0.1854, allocations: 8 kB / 497.5 MB, free: 1.039 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004085/0.1858, allocations: 307.1 kB / 497.8 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1858, allocations: 0 / 497.8 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008911/0.1867, allocations: 219.4 kB / 498 MB, free: 0.5273 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.0001858/0.1869, allocations: 107.2 kB / 498.1 MB, free: 420 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002784/0.1897, allocations: 1.293 MB / 499.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.1897, allocations: 0 / 499.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000673/0.1904, allocations: 318.4 kB / 499.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000599/0.191, allocations: 94.3 kB / 499.8 MB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.1927, allocations: 0.8786 MB / 0.489 GB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000426/0.1932, allocations: 0.8354 MB / 0.4898 GB, free: 12.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000159/0.1933, allocations: 39.44 kB / 0.4898 GB, free: 12.8 MB / 382.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1934, allocations: 0 / 0.4898 GB, free: 12.8 MB / 382.1 MB Notification: Performance of Templates: time 0.0137/0.2071, allocations: 10.06 MB / 0.4996 GB, free: 2.781 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)