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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 181.1 kB / 15.45 MB, free: 0.6523 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.488/1.488, allocations: 223.3 MB / 239.5 MB, free: 5.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009087/0.0009088, allocations: 82.7 kB / 290.6 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02338/0.02338, allocations: 5.389 MB / 347.1 MB, free: 7.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003282/0.0003283, allocations: 12 kB / 413 MB, free: 46.12 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09752/0.09788, allocations: 51.61 MB / 464.6 MB, free: 1.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic): time 0.003394/0.1013, allocations: 3.498 MB / 468.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002318/0.1037, allocations: 1.449 MB / 469.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004258/0.1041, allocations: 12 kB / 469.6 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006675/0.1048, allocations: 218.8 kB / 469.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005396/0.1054, allocations: 150.9 kB / 470 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004636/0.1058, allocations: 193.9 kB / 470.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006087/0.1065, allocations: 0.7162 MB / 470.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002631/0.1067, allocations: 158.1 kB / 471 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002258/0.107, allocations: 226.9 kB / 471.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003069/0.1073, allocations: 294.6 kB / 471.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.879e-05/0.1073, allocations: 28 kB / 471.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.257e-05/0.1074, allocations: 35.98 kB / 471.6 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.7e-05/0.1075, allocations: 111.4 kB / 471.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002085/0.1078, allocations: 280.2 kB / 472 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004957/0.1083, allocations: 0.6616 MB / 472.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1083, allocations: 0 / 472.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1083, allocations: 0 / 472.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.832e-06/0.1083, allocations: 0 / 472.6 MB, free: 9.613 MB / 302.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.002231/0.1105, allocations: 0.9624 MB / 473.6 MB, free: 8.594 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.1106, allocations: 8.031 kB / 473.6 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.898e-05/0.1107, allocations: 70.72 kB / 473.7 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001051/0.1108, allocations: 64.19 kB / 473.7 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001128/0.1119, allocations: 0.588 MB / 474.3 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.112, allocations: 40.58 kB / 474.4 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.76e-05/0.1121, allocations: 36 kB / 474.4 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009364/0.1131, allocations: 475.4 kB / 474.9 MB, free: 7.262 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.1131, allocations: 0 / 474.9 MB, free: 7.262 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.922e-05/0.1131, allocations: 12 kB / 474.9 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.1131, allocations: 8 kB / 474.9 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001166/0.1143, allocations: 454.3 kB / 475.3 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00271/0.117, allocations: 1.603 MB / 476.9 MB, free: 5.121 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001537/0.1186, allocations: 0.6254 MB / 477.6 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005884/0.1192, allocations: 217.5 kB / 477.8 MB, free: 4.234 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.608e-05/0.1192, allocations: 0 / 477.8 MB, free: 4.234 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007983/0.1201, allocations: 290.3 kB / 478.1 MB, free: 3.934 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.663e-06/0.1201, allocations: 0 / 478.1 MB, free: 3.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=25): time 0.004173/0.1242, allocations: 1.051 MB / 479.1 MB, free: 2.855 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.8e-05/0.1244, allocations: 77.11 kB / 479.2 MB, free: 2.762 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006973/0.1251, allocations: 461.8 kB / 479.6 MB, free: 2.301 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.869e-05/0.1252, allocations: 29.7 kB / 479.7 MB, free: 2.266 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/0.1254, allocations: 272 kB / 479.9 MB, free: 1.996 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.169e-05/0.1255, allocations: 78.86 kB / 480 MB, free: 1.918 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.643e-05/0.1255, allocations: 37.69 kB / 480 MB, free: 1.875 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.1257, allocations: 354.7 kB / 480.4 MB, free: 1.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005836/0.1263, allocations: 204.5 kB / 480.6 MB, free: 1.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005663/0.1269, allocations: 257.5 kB / 480.8 MB, free: 1.055 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/0.128, allocations: 441.3 kB / 481.3 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.128, allocations: 0 / 481.3 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002936/0.1309, allocations: 0.8511 MB / 482.1 MB, free: 15.73 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001052/0.131, allocations: 149.3 kB / 482.3 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.131, allocations: 3.938 kB / 482.3 MB, free: 15.56 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008283/0.1319, allocations: 253.5 kB / 482.5 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004003/0.1323, allocations: 83.88 kB / 482.6 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004938/0.1372, allocations: 3.512 MB / 486.1 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006249/0.1379, allocations: 83.77 kB / 486.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.452e-05/0.1379, allocations: 12.17 kB / 486.2 MB, free: 11.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.394e-06/0.1379, allocations: 4 kB / 486.2 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002696/0.1406, allocations: 0.7951 MB / 487 MB, free: 10.53 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.036e-06/0.1407, allocations: 0 / 487 MB, free: 10.53 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007065/0.1414, allocations: 249.7 kB / 487.2 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003794/0.1418, allocations: 83.88 kB / 487.3 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004579/0.1464, allocations: 3.496 MB / 490.8 MB, free: 6.434 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005652/0.1469, allocations: 71.78 kB / 490.9 MB, free: 6.363 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.922e-05/0.147, allocations: 16.06 kB / 490.9 MB, free: 6.348 MB / 318.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.0002759/0.1473, allocations: 249.2 kB / 491.2 MB, free: 6.094 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.663e-05/0.1473, allocations: 47.38 kB / 491.2 MB, free: 6.047 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.998e-05/0.1474, allocations: 44.02 kB / 491.2 MB, free: 6.008 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1474, allocations: 4 kB / 491.2 MB, free: 6.004 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.1475, allocations: 0 / 491.2 MB, free: 6.004 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1475, allocations: 3.984 kB / 491.3 MB, free: 6 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002857/0.1503, allocations: 1.21 MB / 492.5 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.491e-06/0.1503, allocations: 7.938 kB / 492.5 MB, free: 4.723 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002821/0.1506, allocations: 63.98 kB / 492.5 MB, free: 4.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003447/0.151, allocations: 172.8 kB / 492.7 MB, free: 4.488 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.586e-05/0.151, allocations: 11.98 kB / 492.7 MB, free: 4.477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003068/0.1541, allocations: 1.956 MB / 494.7 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.1541, allocations: 0 / 494.7 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002334/0.1565, allocations: 0.7697 MB / 495.4 MB, free: 1.59 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001602/0.1566, allocations: 148.5 kB / 495.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.098e-05/0.1567, allocations: 7.984 kB / 495.6 MB, free: 1.418 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004339/0.1571, allocations: 55.95 kB / 495.6 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.743e-05/0.1572, allocations: 35.95 kB / 495.7 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.161e-05/0.1573, allocations: 4 kB / 495.7 MB, free: 1.324 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003498/0.1576, allocations: 319.1 kB / 496 MB, free: 1.012 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1576, allocations: 0 / 496 MB, free: 1.012 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007359/0.1584, allocations: 211.5 kB / 496.2 MB, free: 0.8047 MB / 318.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.00259/0.161, allocations: 1.318 MB / 497.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002454/0.1634, allocations: 1.319 MB / 498.8 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1635, allocations: 0 / 498.8 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006361/0.1641, allocations: 330.6 kB / 499.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006256/0.1647, allocations: 97.73 kB / 499.3 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01019/0.1749, allocations: 5.158 MB / 0.4926 GB, free: 8.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004565/0.1754, allocations: 0.8236 MB / 0.4934 GB, free: 7.488 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004432/0.1759, allocations: 68.14 kB / 0.4935 GB, free: 7.422 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002803/0.1762, allocations: 163.4 kB / 0.4936 GB, free: 7.262 MB / 334.1 MB Notification: Performance of SimCode: time 1.403e-06/0.1762, allocations: 0 / 0.4936 GB, free: 7.262 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02523/0.2014, allocations: 13.42 MB / 0.5067 GB, free: 10.08 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000183/0.2017, allocations: 246.3 kB / 0.507 GB, free: 9.816 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.025/2.227, allocations: 3.938 kB / 0.507 GB, free: 9.812 MB / 350.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/linux/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)