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.0007753/0.0007753, allocations: 92 kB / 15.06 MB, free: 1.098 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.0009829/0.0009829, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.507/1.507, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1553/0.1553, allocations: 5.377 MB / 296.4 MB, free: 3.934 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003394/0.0003396, allocations: 8 kB / 362 MB, free: 14.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1141, allocations: 51.61 MB / 413.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic): time 0.004173/0.1183, allocations: 3.32 MB / 416.9 MB, free: 7.164 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002745/0.1211, allocations: 1.395 MB / 418.3 MB, free: 5.766 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004922/0.1216, allocations: 4 kB / 418.3 MB, free: 5.762 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007365/0.1224, allocations: 210.8 kB / 418.5 MB, free: 5.555 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006119/0.123, allocations: 146.9 kB / 418.7 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005362/0.1236, allocations: 143.8 kB / 418.8 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008999/0.1245, allocations: 0.6577 MB / 419.5 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003029/0.1248, allocations: 136.4 kB / 419.6 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003936/0.1252, allocations: 231 kB / 419.8 MB, free: 4.238 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000455/0.1257, allocations: 274.8 kB / 420.1 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.1258, allocations: 31.94 kB / 420.1 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001456/0.1259, allocations: 47.92 kB / 420.2 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.1261, allocations: 95.56 kB / 420.3 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001423/0.1262, allocations: 117.4 kB / 420.4 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004997/0.1267, allocations: 0.5259 MB / 420.9 MB, free: 3.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1267, allocations: 0 / 420.9 MB, free: 3.148 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1267, allocations: 0 / 420.9 MB, free: 3.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.717e-05/0.1268, allocations: 0 / 420.9 MB, free: 3.148 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.002481/0.1292, allocations: 0.9638 MB / 421.9 MB, free: 2.129 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.1293, allocations: 8.031 kB / 421.9 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001137/0.1294, allocations: 70.53 kB / 422 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001466/0.1296, allocations: 59.25 kB / 422 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001349/0.1309, allocations: 0.5674 MB / 422.6 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.283e-05/0.131, allocations: 40.62 kB / 422.6 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.471e-05/0.1311, allocations: 32 kB / 422.7 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009262/0.132, allocations: 471.4 kB / 423.1 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.132, allocations: 0 / 423.1 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.958e-05/0.1321, allocations: 15.98 kB / 423.1 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.1321, allocations: 8 kB / 423.1 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.1332, allocations: 450.3 kB / 423.6 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.21/0.3432, allocations: 1.593 MB / 425.2 MB, free: 44.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.3446, allocations: 0.6216 MB / 425.8 MB, free: 44.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004521/0.3451, allocations: 213.5 kB / 426 MB, free: 44.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.209e-05/0.3451, allocations: 2.875 kB / 426 MB, free: 44.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005856/0.3457, allocations: 284 kB / 426.3 MB, free: 44.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.803e-06/0.3457, allocations: 0 / 426.3 MB, free: 44.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.003233/0.349, allocations: 1.05 MB / 427.3 MB, free: 44.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/0.349, allocations: 81.52 kB / 427.4 MB, free: 44.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004627/0.3495, allocations: 454.2 kB / 427.9 MB, free: 44.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.332e-05/0.3495, allocations: 32.02 kB / 427.9 MB, free: 43.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.3497, allocations: 256.3 kB / 428.1 MB, free: 43.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.057e-05/0.3498, allocations: 88.98 kB / 428.2 MB, free: 43.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.315e-05/0.3498, allocations: 7.562 kB / 428.2 MB, free: 43.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.974e-05/0.3499, allocations: 358.6 kB / 428.6 MB, free: 43.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004452/0.3503, allocations: 198.8 kB / 428.8 MB, free: 43.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004499/0.3508, allocations: 254.5 kB / 429 MB, free: 43.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004767/0.3513, allocations: 228.8 kB / 429.2 MB, free: 43.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3513, allocations: 3.312 kB / 429.2 MB, free: 43.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002311/0.3536, allocations: 0.8482 MB / 430.1 MB, free: 43.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.112e-05/0.3537, allocations: 139.7 kB / 430.2 MB, free: 43.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.3537, allocations: 7.344 kB / 430.2 MB, free: 43.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007243/0.3544, allocations: 255.1 kB / 430.5 MB, free: 43.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00035/0.3548, allocations: 88.16 kB / 430.6 MB, free: 43.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004022/0.3588, allocations: 3.504 MB / 434.1 MB, free: 40.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005133/0.3594, allocations: 80.62 kB / 434.2 MB, free: 40.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.17e-05/0.3594, allocations: 16.64 kB / 434.2 MB, free: 40.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.334e-06/0.3594, allocations: 7.969 kB / 434.2 MB, free: 40.37 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002297/0.3617, allocations: 0.7787 MB / 435 MB, free: 40.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.3617, allocations: 0.5 kB / 435 MB, free: 40.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006168/0.3624, allocations: 248.8 kB / 435.2 MB, free: 40.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003212/0.3627, allocations: 93.62 kB / 435.3 MB, free: 40.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004023/0.3667, allocations: 3.499 MB / 438.8 MB, free: 37.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005566/0.3673, allocations: 76.41 kB / 438.9 MB, free: 37.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.373e-05/0.3674, allocations: 12.47 kB / 438.9 MB, free: 37.52 MB / 350.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 ($whenCondition1,triangleAndStep.realToInteger.y,$PRE.triangleAndStep.trapezoid.T_start,triangleAndStep.trapezoid.T_start,$PRE.triangleAndStep.trapezoid.count,triangleAndStep.trapezoid.count) * 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0004359/0.3678, allocations: 244.9 kB / 439.1 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.123e-05/0.3679, allocations: 49.75 kB / 439.2 MB, free: 37.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001298/0.368, allocations: 53.53 kB / 439.2 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.368, allocations: 3.219 kB / 439.2 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.3681, allocations: 3.25 kB / 439.2 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.3681, allocations: 0 / 439.2 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002606/0.3707, allocations: 1.209 MB / 440.4 MB, free: 36.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3707, allocations: 0 / 440.4 MB, free: 36.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002507/0.3709, allocations: 64.86 kB / 440.5 MB, free: 36.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003087/0.3713, allocations: 174.5 kB / 440.7 MB, free: 36.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.463e-05/0.3713, allocations: 7.891 kB / 440.7 MB, free: 36.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002595/0.3739, allocations: 1.948 MB / 442.6 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3739, allocations: 7.188 kB / 442.6 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001947/0.3759, allocations: 0.7662 MB / 443.4 MB, free: 34.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001496/0.376, allocations: 157.3 kB / 443.6 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.022e-05/0.3761, allocations: 4 kB / 443.6 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003786/0.3765, allocations: 58.23 kB / 443.6 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.3766, allocations: 40.89 kB / 443.7 MB, free: 34.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.199e-05/0.3766, allocations: 9.672 kB / 443.7 MB, free: 34.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003284/0.377, allocations: 313.5 kB / 444 MB, free: 34.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.377, allocations: 0 / 444 MB, free: 34.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008404/0.3778, allocations: 210.6 kB / 444.2 MB, free: 34.5 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002209/0.38, allocations: 1.32 MB / 445.5 MB, free: 33.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002239/0.3823, allocations: 1.305 MB / 446.8 MB, free: 32.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3823, allocations: 0 / 446.8 MB, free: 32.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005826/0.3829, allocations: 334.8 kB / 447.1 MB, free: 32.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006517/0.3836, allocations: 95.27 kB / 447.2 MB, free: 32.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005776/0.3893, allocations: 3.083 MB / 450.3 MB, free: 31.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002817/0.3896, allocations: 0.8271 MB / 451.1 MB, free: 30.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000352/0.39, allocations: 68.02 kB / 451.2 MB, free: 30.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00021/0.3902, allocations: 162.7 kB / 451.4 MB, free: 30.4 MB / 350.1 MB Notification: Performance of SimCode: time 1.283e-06/0.3902, allocations: 0 / 451.4 MB, free: 30.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02969/0.4199, allocations: 13.19 MB / 464.5 MB, free: 29.5 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000131/0.4201, allocations: 223.5 kB / 464.8 MB, free: 29.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.091/2.511, allocations: 0 / 464.8 MB, free: 29.26 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) Environment - environmentSimulation: