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.001126/0.001126, allocations: 173 kB / 12.73 MB, free: 2.586 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 221.4 MB / 234.6 MB, free: 14.47 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008861/0.0008861, allocations: 90.86 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02482/0.02482, allocations: 5.281 MB / 341.8 MB, free: 4.828 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.457e-05/3.46e-05, allocations: 4 kB / 403.8 MB, free: 62.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1045, allocations: 51.61 MB / 455.4 MB, free: 11.26 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3731/0.4776, allocations: 85.49 MB / 0.5282 GB, free: 5.492 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/0.4779, allocations: 72.02 kB / 0.5283 GB, free: 5.457 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0427/0.5206, allocations: 14.79 MB / 0.5427 GB, free: 8.699 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.5206, allocations: 3.938 kB / 0.5428 GB, free: 8.695 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.74e-05/0.5207, allocations: 11.94 kB / 0.5428 GB, free: 8.684 MB / 362.7 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.001603/0.5223, allocations: 0.8178 MB / 0.5436 GB, free: 7.848 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.5223, allocations: 8.031 kB / 0.5436 GB, free: 7.84 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.337e-05/0.5224, allocations: 69.72 kB / 0.5436 GB, free: 7.781 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001183/0.5225, allocations: 59.25 kB / 0.5437 GB, free: 7.723 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000547/0.5231, allocations: 417.9 kB / 0.5441 GB, free: 7.344 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.5231, allocations: 23.03 kB / 0.5441 GB, free: 7.328 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.891e-05/0.5232, allocations: 34.75 kB / 0.5441 GB, free: 7.305 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006861/0.5239, allocations: 416.2 kB / 0.5445 GB, free: 7.004 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.5239, allocations: 0 / 0.5445 GB, free: 7.004 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.236e-05/0.524, allocations: 14.19 kB / 0.5446 GB, free: 7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.524, allocations: 12 kB / 0.5446 GB, free: 6.988 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006792/0.5247, allocations: 396.7 kB / 0.5449 GB, free: 6.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002892/0.5276, allocations: 1.792 MB / 0.5467 GB, free: 5.281 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009042/0.5285, allocations: 0.5284 MB / 0.5472 GB, free: 4.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002797/0.5288, allocations: 157.4 kB / 0.5474 GB, free: 4.746 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.201e-05/0.5288, allocations: 240 / 0.5474 GB, free: 4.746 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003776/0.5292, allocations: 237.9 kB / 0.5476 GB, free: 4.555 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 1.393e-06/0.5292, allocations: 3.938 kB / 0.5476 GB, free: 4.551 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.002919/0.5321, allocations: 0.6557 MB / 0.5482 GB, free: 4 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.91e-05/0.5322, allocations: 135.8 kB / 0.5484 GB, free: 3.84 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005163/0.5328, allocations: 441.2 kB / 0.5488 GB, free: 3.512 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.031e-05/0.5328, allocations: 32.2 kB / 0.5488 GB, free: 3.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001741/0.533, allocations: 259.2 kB / 0.5491 GB, free: 3.305 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.555e-05/0.5331, allocations: 87.94 kB / 0.5491 GB, free: 3.23 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.584e-05/0.5331, allocations: 2.5 kB / 0.5491 GB, free: 3.23 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.5333, allocations: 363 kB / 0.5495 GB, free: 2.887 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002634/0.5335, allocations: 148.9 kB / 0.5496 GB, free: 2.809 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003095/0.5339, allocations: 207 kB / 0.5498 GB, free: 2.656 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002877/0.5342, allocations: 189.4 kB / 0.55 GB, free: 2.523 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.5342, allocations: 0 / 0.55 GB, free: 2.523 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.003237/0.5374, allocations: 0.8593 MB / 0.5509 GB, free: 1.809 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002232/0.5376, allocations: 481.6 kB / 0.5513 GB, free: 1.309 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.5377, allocations: 0 / 0.5513 GB, free: 1.309 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002548/0.5402, allocations: 0.5521 MB / 0.5519 GB, free: 0.8125 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004284/0.5407, allocations: 91.38 kB / 0.5519 GB, free: 0.7266 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006229/0.5469, allocations: 3.934 MB / 0.5558 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007096/0.5476, allocations: 89.69 kB / 0.5559 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.212e-05/0.5477, allocations: 14.8 kB / 0.5559 GB, free: 12.94 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.5477, allocations: 4 kB / 0.5559 GB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003184/0.5509, allocations: 0.8006 MB / 0.5567 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.5509, allocations: 0 / 0.5567 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002551/0.5535, allocations: 0.5443 MB / 0.5572 GB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004097/0.5539, allocations: 91.31 kB / 0.5573 GB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00621/0.5601, allocations: 3.897 MB / 0.5611 GB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007026/0.5608, allocations: 90.78 kB / 0.5612 GB, free: 7.973 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.382e-05/0.5609, allocations: 19.86 kB / 0.5612 GB, free: 7.957 MB / 378.7 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 ($whenCondition1,triangleAndStep.integerToReal.u,$PRE.triangleAndStep.trapezoid.T_start,triangleAndStep.trapezoid.T_start,$PRE.triangleAndStep.trapezoid.count,triangleAndStep.trapezoid.count) * Number of discrete 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 (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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001994/0.5611, allocations: 129.3 kB / 0.5613 GB, free: 7.836 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.121e-05/0.5612, allocations: 47.44 kB / 0.5614 GB, free: 7.789 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001347/0.5613, allocations: 50 kB / 0.5614 GB, free: 7.762 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.5614, allocations: 4 kB / 0.5614 GB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.696e-06/0.5614, allocations: 0 / 0.5614 GB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.5614, allocations: 0 / 0.5614 GB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003569/0.5649, allocations: 1.386 MB / 0.5628 GB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.565, allocations: 128 / 0.5628 GB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003045/0.5653, allocations: 78.67 kB / 0.5628 GB, free: 6.523 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002101/0.5674, allocations: 475.1 kB / 0.5633 GB, free: 6.117 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.842e-05/0.5674, allocations: 14.84 kB / 0.5633 GB, free: 6.105 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00455/0.572, allocations: 2.28 MB / 0.5655 GB, free: 4.098 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.572, allocations: 4.031 kB / 0.5655 GB, free: 4.094 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002937/0.575, allocations: 0.7664 MB / 0.5663 GB, free: 3.418 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002996/0.5753, allocations: 172.5 kB / 0.5665 GB, free: 3.262 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.089e-05/0.5754, allocations: 11.02 kB / 0.5665 GB, free: 3.254 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005085/0.5759, allocations: 71.25 kB / 0.5665 GB, free: 3.191 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.576, allocations: 30.89 kB / 0.5666 GB, free: 3.168 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.716e-05/0.576, allocations: 16.16 kB / 0.5666 GB, free: 3.152 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004847/0.5765, allocations: 337.3 kB / 0.5669 GB, free: 2.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5765, allocations: 0 / 0.5669 GB, free: 2.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001084/0.5776, allocations: 278.1 kB / 0.5672 GB, free: 2.656 MB / 378.7 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.integerToReal.u,triangleAndStep.trapezoid.T_start,triangleAndStep.trapezoid.count) * Number of discrete states: 1 (triangleAndStep.trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.003667/0.5813, allocations: 1.429 MB / 0.5686 GB, free: 1.316 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002536/0.5839, allocations: 1.232 MB / 0.5698 GB, free: 240 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.5839, allocations: 0 / 0.5698 GB, free: 240 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005417/0.5844, allocations: 295.3 kB / 0.57 GB, free: 15.99 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007012/0.5852, allocations: 92.19 kB / 0.5701 GB, free: 15.93 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001636/0.5868, allocations: 0.649 MB / 0.5708 GB, free: 15.33 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005433/0.5874, allocations: 0.8438 MB / 0.5716 GB, free: 14.46 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004134/0.5878, allocations: 67.31 kB / 0.5717 GB, free: 14.39 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002181/0.588, allocations: 148.6 kB / 0.5718 GB, free: 14.36 MB / 394.7 MB Notification: Performance of SimCode: time 5.81e-07/0.588, allocations: 0 / 0.5718 GB, free: 14.36 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03654/0.6246, allocations: 18.36 MB / 0.5897 GB, free: 12.27 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001709/0.6248, allocations: 185.8 kB / 0.5899 GB, free: 12.04 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.575/3.2, allocations: 0 / 0.5899 GB, free: 12.04 MB / 410.7 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)