Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.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.SimpleModuleMP,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP",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.001445/0.001446, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 221.5 MB / 229.6 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008108/0.0008108, allocations: 85.73 kB / 280.5 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02311/0.02311, allocations: 5.297 MB / 336.5 MB, free: 9.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.58e-05/1.583e-05, allocations: 2.375 kB / 396.4 MB, free: 51.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08909/0.08912, allocations: 51.61 MB / 448 MB, free: 10.93 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3481/0.4373, allocations: 92.81 MB / 0.5282 GB, free: 32.44 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/0.4375, allocations: 73.23 kB / 0.5282 GB, free: 32.44 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06901/0.5066, allocations: 29.65 MB / 0.5572 GB, free: 29.4 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.5066, allocations: 0 / 0.5572 GB, free: 29.4 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.196e-05/0.5066, allocations: 19.53 kB / 0.5572 GB, free: 29.4 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: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.002251/0.5089, allocations: 1.158 MB / 0.5583 GB, free: 28.74 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.5089, allocations: 11.72 kB / 0.5583 GB, free: 28.74 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001349/0.5103, allocations: 278.3 kB / 0.5586 GB, free: 28.69 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000609/0.5109, allocations: 0.5247 MB / 0.5591 GB, free: 28.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.17e-05/0.511, allocations: 27.34 kB / 0.5591 GB, free: 28.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/0.5111, allocations: 58.78 kB / 0.5592 GB, free: 28.4 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001235/0.5123, allocations: 0.8103 MB / 0.56 GB, free: 28.39 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.5135, allocations: 0.8162 MB / 0.5608 GB, free: 28.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.692e-05/0.5135, allocations: 3.938 kB / 0.5608 GB, free: 28.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.85e-05/0.5136, allocations: 0 / 0.5608 GB, free: 28.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.457e-05/0.5136, allocations: 27.16 kB / 0.5608 GB, free: 28.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004498/0.5181, allocations: 3.86 MB / 0.5646 GB, free: 26.65 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/0.5194, allocations: 1.512 MB / 0.5661 GB, free: 25.46 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002738/0.5197, allocations: 233.2 kB / 0.5663 GB, free: 25.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.844e-05/0.5197, allocations: 88.69 kB / 0.5664 GB, free: 25.34 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003341/0.5201, allocations: 302.9 kB / 0.5667 GB, free: 25.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 1.743e-06/0.5201, allocations: 0 / 0.5667 GB, free: 25.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.003016/0.5231, allocations: 0.8339 MB / 0.5675 GB, free: 25.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.11e-05/0.5232, allocations: 170.3 kB / 0.5676 GB, free: 24.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004694/0.5237, allocations: 458.8 kB / 0.5681 GB, free: 24.81 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.625e-05/0.5237, allocations: 29.73 kB / 0.5681 GB, free: 24.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002199/0.5239, allocations: 458.8 kB / 0.5685 GB, free: 24.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.327e-05/0.524, allocations: 160.8 kB / 0.5687 GB, free: 24.4 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.519e-05/0.5241, allocations: 0 / 0.5687 GB, free: 24.4 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.197e-05/0.5242, allocations: 368 kB / 0.569 GB, free: 24.09 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002723/0.5244, allocations: 211.2 kB / 0.5692 GB, free: 24.09 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003411/0.5248, allocations: 404 kB / 0.5696 GB, free: 23.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005839/0.5254, allocations: 332.8 kB / 0.5699 GB, free: 23.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.5254, allocations: 7.906 kB / 0.57 GB, free: 23.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001445/0.5268, allocations: 0.81 MB / 0.5707 GB, free: 23.63 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.268e-05/0.5269, allocations: 33.52 kB / 0.5708 GB, free: 23.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/0.5269, allocations: 11.8 kB / 0.5708 GB, free: 23.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004675/0.5274, allocations: 90.94 kB / 0.5709 GB, free: 23.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006775/0.5281, allocations: 187.6 kB / 0.5711 GB, free: 23.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00117/0.5292, allocations: 1.5 MB / 0.5725 GB, free: 22.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006581/0.5299, allocations: 82.61 kB / 0.5726 GB, free: 22.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.707e-05/0.53, allocations: 39.03 kB / 0.5726 GB, free: 22.1 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,$PRE.mpTracker.vRef,mpTracker.vRef,converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * 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: 0 * 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: Performance of prepare postOptimizeDAE: time 0.0001647/0.5302, allocations: 168 kB / 0.5728 GB, free: 21.94 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002957/0.5331, allocations: 0.8648 MB / 0.5736 GB, free: 21.7 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.852e-05/0.5332, allocations: 58.59 kB / 0.5737 GB, free: 21.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003145/0.5364, allocations: 0.9151 MB / 0.5746 GB, free: 21.4 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.5364, allocations: 7.906 kB / 0.5746 GB, free: 21.4 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.5364, allocations: 0 / 0.5746 GB, free: 21.4 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.5364, allocations: 3.984 kB / 0.5746 GB, free: 21.39 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002119/0.5385, allocations: 1.576 MB / 0.5761 GB, free: 20.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.5386, allocations: 0 / 0.5761 GB, free: 20.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003052/0.5389, allocations: 78.36 kB / 0.5762 GB, free: 20.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002088/0.541, allocations: 0.5366 MB / 0.5767 GB, free: 20.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.09e-05/0.541, allocations: 15.75 kB / 0.5768 GB, free: 20.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006547/0.5417, allocations: 0.8549 MB / 0.5776 GB, free: 19.89 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.5417, allocations: 0 / 0.5776 GB, free: 19.89 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00127/0.543, allocations: 0.9763 MB / 0.5785 GB, free: 19.59 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002639/0.5433, allocations: 196.5 kB / 0.5787 GB, free: 19.44 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.1e-05/0.5434, allocations: 7.406 kB / 0.5787 GB, free: 19.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004254/0.5438, allocations: 43.36 kB / 0.5788 GB, free: 19.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.365e-05/0.5439, allocations: 27.3 kB / 0.5788 GB, free: 19.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.413e-05/0.5439, allocations: 19.39 kB / 0.5788 GB, free: 19.41 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003479/0.5443, allocations: 335.7 kB / 0.5791 GB, free: 19.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5443, allocations: 3.906 kB / 0.5791 GB, free: 19.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007829/0.5451, allocations: 245.6 kB / 0.5794 GB, free: 19.25 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (converter.potentialSensor.pin_p.reference.gamma,converter.integrator.y) * Number of discrete variables: 6 ($whenCondition1,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef) * Number of discrete states: 7 (mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001606/0.5467, allocations: 1.752 MB / 0.5811 GB, free: 18.24 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009925/0.5477, allocations: 0.6952 MB / 0.5818 GB, free: 18.01 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5477, allocations: 3.938 kB / 0.5818 GB, free: 18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003963/0.5481, allocations: 327.6 kB / 0.5821 GB, free: 17.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004724/0.5486, allocations: 74.73 kB / 0.5822 GB, free: 17.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001889/0.5505, allocations: 1.046 MB / 0.5832 GB, free: 17.36 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002926/0.5508, allocations: 0.9608 MB / 0.5841 GB, free: 16.53 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002976/0.5511, allocations: 71.92 kB / 0.5842 GB, free: 16.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003386/0.5514, allocations: 305.9 kB / 0.5845 GB, free: 16.46 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.5514, allocations: 0 / 0.5845 GB, free: 16.46 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03311/0.5846, allocations: 13.29 MB / 0.5975 GB, free: 10.07 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001434/0.5848, allocations: 132.2 kB / 0.5976 GB, free: 9.871 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.426/3.011, allocations: 0 / 0.5976 GB, free: 9.871 MB / 362.7 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe 2>&1)