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: "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellIrradianceCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellIrradianceCharacteristic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006075/0.006075, allocations: 98.77 kB / 15.73 MB, free: 6.066 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.001444/0.001444, allocations: 196.1 kB / 16.68 MB, free: 5.973 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.491/1.491, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.03005/0.03005, allocations: 5.402 MB / 295.9 MB, free: 9.461 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00307/0.003071, allocations: 63.89 kB / 412.3 MB, free: 23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1184, allocations: 50.62 MB / 462.9 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic): time 0.005617/0.124, allocations: 3.856 MB / 466.8 MB, free: 476 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003195/0.1273, allocations: 1.484 MB / 468.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004736/0.1278, allocations: 11.94 kB / 468.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008086/0.1286, allocations: 238.5 kB / 468.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005779/0.1292, allocations: 182.5 kB / 468.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005188/0.1298, allocations: 222.7 kB / 468.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009125/0.1307, allocations: 0.7592 MB / 469.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003308/0.131, allocations: 177.9 kB / 469.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003865/0.1314, allocations: 290.9 kB / 470.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004572/0.1319, allocations: 342.6 kB / 470.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001191/0.132, allocations: 76 kB / 470.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001671/0.1322, allocations: 80 kB / 470.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001799/0.1324, allocations: 151.5 kB / 470.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003548/0.1327, allocations: 310.4 kB / 471.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.1338, allocations: 0.7277 MB / 471.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.78e-06/0.1338, allocations: 0 / 471.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1338, allocations: 0 / 471.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.1338, allocations: 0 / 471.8 MB, free: 11.43 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.002791/0.1366, allocations: 1.041 MB / 472.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.32e-05/0.1367, allocations: 11.97 kB / 472.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001177/0.1368, allocations: 74.72 kB / 472.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.1369, allocations: 60.56 kB / 473 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001404/0.1384, allocations: 0.5729 MB / 473.6 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.068e-05/0.1384, allocations: 28.59 kB / 473.6 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.649e-05/0.1385, allocations: 32 kB / 473.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.1395, allocations: 443.4 kB / 474 MB, free: 9.055 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.1395, allocations: 0 / 474 MB, free: 9.055 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.154e-05/0.1396, allocations: 12 kB / 474.1 MB, free: 9.043 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.1396, allocations: 8 kB / 474.1 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001195/0.1408, allocations: 410.2 kB / 474.5 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003/0.1438, allocations: 1.56 MB / 476 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001544/0.1453, allocations: 0.5669 MB / 476.6 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005636/0.1459, allocations: 192.7 kB / 476.8 MB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.627e-05/0.146, allocations: 4 kB / 476.8 MB, free: 6.188 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007339/0.1467, allocations: 257.7 kB / 477 MB, free: 5.918 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.874e-06/0.1467, allocations: 0 / 477 MB, free: 5.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.003827/0.1506, allocations: 0.9167 MB / 478 MB, free: 4.973 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.346e-05/0.1506, allocations: 81.11 kB / 478 MB, free: 4.875 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006354/0.1513, allocations: 457.8 kB / 478.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.396e-05/0.1513, allocations: 29.7 kB / 478.5 MB, free: 4.391 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000246/0.1516, allocations: 260.5 kB / 478.8 MB, free: 4.129 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.47e-05/0.1517, allocations: 91.2 kB / 478.9 MB, free: 4.039 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001553/0.1519, allocations: 69.95 kB / 478.9 MB, free: 3.965 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000225/0.1521, allocations: 366.7 kB / 479.3 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006643/0.1528, allocations: 178 kB / 479.5 MB, free: 3.422 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005929/0.1534, allocations: 229.5 kB / 479.7 MB, free: 3.184 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001184/0.1546, allocations: 397.1 kB / 480.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.1546, allocations: 0 / 480.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.003885/0.1585, allocations: 0.7616 MB / 480.8 MB, free: 1.996 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.684e-05/0.1586, allocations: 37.7 kB / 480.9 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.1586, allocations: 192 / 480.9 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001128/0.1597, allocations: 241.5 kB / 481.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005373/0.1603, allocations: 75.81 kB / 481.2 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007486/0.1678, allocations: 3.743 MB / 484.9 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000781/0.1686, allocations: 67.78 kB / 485 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-05/0.1687, allocations: 12 kB / 485 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001011/0.1697, allocations: 299.9 kB / 485.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008007/0.1705, allocations: 224.8 kB / 485.5 MB, free: 13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001452/0.172, allocations: 376.7 kB / 485.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.32e-06/0.172, allocations: 4 kB / 485.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.003799/0.1758, allocations: 0.765 MB / 486.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.952e-05/0.1759, allocations: 33.7 kB / 486.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.1759, allocations: 0 / 486.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001054/0.177, allocations: 241.6 kB / 486.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005215/0.1775, allocations: 71.94 kB / 487 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006804/0.1843, allocations: 3.751 MB / 490.7 MB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009469/0.1853, allocations: 55.84 kB / 490.8 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.933e-05/0.1854, allocations: 15.98 kB / 490.8 MB, free: 7.375 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.0002905/0.1857, allocations: 199.9 kB / 491 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000188/0.1859, allocations: 55.67 kB / 491.1 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001869/0.1861, allocations: 48 kB / 491.1 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.1862, allocations: 4 kB / 491.1 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1862, allocations: 0 / 491.1 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.928e-06/0.1862, allocations: 4.078 kB / 491.1 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004223/0.1904, allocations: 1.12 MB / 492.2 MB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1904, allocations: 0 / 492.2 MB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003965/0.1909, allocations: 55.89 kB / 492.3 MB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004937/0.1914, allocations: 164.8 kB / 492.4 MB, free: 5.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.742e-05/0.1914, allocations: 4 kB / 492.4 MB, free: 5.656 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004724/0.1961, allocations: 2.023 MB / 494.5 MB, free: 3.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1962, allocations: 0 / 494.5 MB, free: 3.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003347/0.1995, allocations: 0.6809 MB / 495.2 MB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003438/0.1999, allocations: 156.7 kB / 495.3 MB, free: 2.605 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001388/0.2001, allocations: 7.984 kB / 495.3 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006625/0.2007, allocations: 43.95 kB / 495.4 MB, free: 2.555 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/0.2009, allocations: 39.89 kB / 495.4 MB, free: 2.516 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.139e-05/0.201, allocations: 4 kB / 495.4 MB, free: 2.512 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006824/0.2017, allocations: 319.1 kB / 495.7 MB, free: 2.207 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.2017, allocations: 0 / 495.7 MB, free: 2.207 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001316/0.203, allocations: 211.7 kB / 495.9 MB, free: 2 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.003878/0.2069, allocations: 1.253 MB / 497.2 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003804/0.2107, allocations: 1.254 MB / 498.4 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.2107, allocations: 0 / 498.4 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001066/0.2118, allocations: 298.5 kB / 498.7 MB, free: 15.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000976/0.2128, allocations: 109.9 kB / 498.8 MB, free: 14.97 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01123/0.2241, allocations: 4.681 MB / 0.4917 GB, free: 10.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006364/0.2247, allocations: 0.8236 MB / 0.4925 GB, free: 9.309 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003668/0.2251, allocations: 68.14 kB / 0.4926 GB, free: 9.238 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003104/0.2254, allocations: 167.4 kB / 0.4927 GB, free: 9.078 MB / 382.1 MB Notification: Performance of SimCode: time 1.282e-06/0.2254, allocations: 0 / 0.4927 GB, free: 9.078 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2431/0.4685, allocations: 14.65 MB / 0.507 GB, free: 51.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.65, allocations: 8.453 kB / 0.507 GB, free: 51.26 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellIrradianceCharacteristic_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellIrradianceCharacteristic.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe 2>&1)