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.007757/0.007758, allocations: 99.16 kB / 15.73 MB, free: 6.008 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.001635/0.001635, allocations: 189.6 kB / 16.67 MB, free: 5.926 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.555/1.555, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02774/0.02774, allocations: 5.399 MB / 295.9 MB, free: 9.434 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 59.91 kB / 412.8 MB, free: 22.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1077, allocations: 50.61 MB / 463.4 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic): time 0.005498/0.1132, allocations: 3.906 MB / 467.3 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002739/0.116, allocations: 1.495 MB / 468.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004666/0.1165, allocations: 11.94 kB / 468.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007249/0.1172, allocations: 230.5 kB / 469.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006193/0.1179, allocations: 190.4 kB / 469.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005627/0.1185, allocations: 226.4 kB / 469.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009578/0.1194, allocations: 0.7825 MB / 470.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003746/0.1198, allocations: 210.5 kB / 470.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000483/0.1203, allocations: 294.9 kB / 470.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005306/0.1208, allocations: 358.5 kB / 471.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001392/0.121, allocations: 76 kB / 471.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001802/0.1212, allocations: 83.98 kB / 471.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001339/0.1213, allocations: 155.5 kB / 471.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002838/0.1216, allocations: 322.4 kB / 471.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007732/0.1224, allocations: 0.7549 MB / 472.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1224, allocations: 0 / 472.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1224, allocations: 0 / 472.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.1224, allocations: 0 / 472.5 MB, free: 10.73 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.002378/0.1248, allocations: 1.057 MB / 473.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.1249, allocations: 8.031 kB / 473.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.125, allocations: 72.52 kB / 473.6 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001203/0.1262, allocations: 0.5771 MB / 474.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.092e-05/0.1262, allocations: 33.12 kB / 474.2 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.387e-05/0.1263, allocations: 36 kB / 474.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00091/0.1272, allocations: 450 kB / 474.7 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.1273, allocations: 4 kB / 474.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.897e-05/0.1273, allocations: 11.98 kB / 474.7 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.1273, allocations: 12 kB / 474.7 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001118/0.1284, allocations: 411.7 kB / 475.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002457/0.1309, allocations: 1.578 MB / 476.7 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.1322, allocations: 0.5419 MB / 477.2 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005565/0.1328, allocations: 205.2 kB / 477.4 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.792e-05/0.1328, allocations: 4.234 kB / 477.4 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006506/0.1335, allocations: 269.1 kB / 477.7 MB, free: 5.203 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.683e-06/0.1335, allocations: 0 / 477.7 MB, free: 5.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.003634/0.1371, allocations: 0.9525 MB / 478.7 MB, free: 4.223 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.436e-05/0.1372, allocations: 85.11 kB / 478.7 MB, free: 4.121 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004713/0.1377, allocations: 437.9 kB / 479.2 MB, free: 3.688 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.727e-05/0.1378, allocations: 29.7 kB / 479.2 MB, free: 3.652 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001856/0.1379, allocations: 264.4 kB / 479.5 MB, free: 3.391 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.019e-05/0.138, allocations: 99.16 kB / 479.6 MB, free: 3.293 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.1382, allocations: 74 kB / 479.6 MB, free: 3.215 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1383, allocations: 358.7 kB / 480 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005419/0.1389, allocations: 189.6 kB / 480.2 MB, free: 2.668 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005581/0.1395, allocations: 233.7 kB / 480.4 MB, free: 2.422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.1405, allocations: 414 kB / 480.8 MB, free: 1.996 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1405, allocations: 0 / 480.8 MB, free: 1.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002572/0.1431, allocations: 0.7733 MB / 481.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.617e-05/0.1431, allocations: 33.7 kB / 481.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1431, allocations: 0 / 481.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008413/0.144, allocations: 241.5 kB / 481.8 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003832/0.1444, allocations: 79.88 kB / 481.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005311/0.1497, allocations: 3.728 MB / 485.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005384/0.1503, allocations: 71.61 kB / 485.7 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.252e-05/0.1503, allocations: 12 kB / 485.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006671/0.151, allocations: 309 kB / 486 MB, free: 12.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000543/0.1516, allocations: 229.5 kB / 486.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001027/0.1526, allocations: 409.5 kB / 486.6 MB, free: 11.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.456e-06/0.1526, allocations: 0 / 486.6 MB, free: 11.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization_lambda0): time 0.002736/0.1554, allocations: 0.7614 MB / 487.4 MB, free: 11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.309e-05/0.1554, allocations: 33.7 kB / 487.4 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.1555, allocations: 0 / 487.4 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007858/0.1562, allocations: 249.5 kB / 487.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003601/0.1566, allocations: 79.81 kB / 487.8 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005673/0.1623, allocations: 3.72 MB / 491.5 MB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006642/0.163, allocations: 67.77 kB / 491.5 MB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-05/0.1631, allocations: 15.98 kB / 491.6 MB, free: 6.547 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.0002737/0.1633, allocations: 207.3 kB / 491.8 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001655/0.1635, allocations: 47.72 kB / 491.8 MB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002428/0.1659, allocations: 0.6437 MB / 492.5 MB, free: 5.641 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.166, allocations: 0 / 492.5 MB, free: 5.641 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.166, allocations: 4 kB / 492.5 MB, free: 5.637 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.166, allocations: 8.062 kB / 492.5 MB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003194/0.1692, allocations: 1.184 MB / 493.7 MB, free: 4.383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.1692, allocations: 0 / 493.7 MB, free: 4.383 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003206/0.1695, allocations: 67.89 kB / 493.7 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003847/0.1699, allocations: 156.8 kB / 493.9 MB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.205e-05/0.17, allocations: 15.98 kB / 493.9 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003412/0.1734, allocations: 2 MB / 495.9 MB, free: 2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.1734, allocations: 3.938 kB / 495.9 MB, free: 1.996 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002344/0.1758, allocations: 0.7281 MB / 496.6 MB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002596/0.1761, allocations: 152.7 kB / 496.8 MB, free: 1.078 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.598e-05/0.1762, allocations: 7.938 kB / 496.8 MB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004249/0.1766, allocations: 47.94 kB / 496.8 MB, free: 1.023 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.1767, allocations: 35.95 kB / 496.9 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.075e-05/0.1768, allocations: 12 kB / 496.9 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003877/0.1772, allocations: 303.1 kB / 497.2 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1772, allocations: 0 / 497.2 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008418/0.178, allocations: 223.5 kB / 497.4 MB, free: 476 kB / 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.0001638/0.1782, allocations: 119.1 kB / 497.5 MB, free: 344 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002697/0.1809, allocations: 1.273 MB / 498.8 MB, free: 14.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.1809, allocations: 4 kB / 498.8 MB, free: 14.97 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006842/0.1816, allocations: 334.7 kB / 499.1 MB, free: 14.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000567/0.1822, allocations: 88.92 kB / 499.2 MB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00179/0.184, allocations: 0.8653 MB / 0.4883 GB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004326/0.1844, allocations: 0.8315 MB / 0.4891 GB, free: 12.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002945/0.1847, allocations: 64.14 kB / 0.4892 GB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.1849, allocations: 43.42 kB / 0.4893 GB, free: 12.69 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1849, allocations: 0 / 0.4893 GB, free: 12.69 MB / 382.1 MB Notification: Performance of Templates: time 0.01681/0.2017, allocations: 10.08 MB / 0.4991 GB, free: 2.68 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)