Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.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.SimpleModuleMP3,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP3,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3",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.007632/0.007632, allocations: 102 kB / 15.73 MB, free: 6.039 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.001274/0.001274, allocations: 194.9 kB / 16.68 MB, free: 5.961 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.391/1.391, allocations: 222.9 MB / 240.4 MB, free: 4.133 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1349/0.1349, allocations: 5.378 MB / 295.9 MB, free: 2.805 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 67.91 kB / 412.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2549/0.2564, allocations: 50.61 MB / 462.9 MB, free: 21.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP3): time 0.009967/0.2664, allocations: 10.1 MB / 473 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007116/0.2736, allocations: 3.522 MB / 476.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002595/0.2762, allocations: 69.47 kB / 476.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007336/0.2836, allocations: 3.224 MB / 479.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004153/0.2877, allocations: 1.009 MB / 480.8 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002762/0.2905, allocations: 0.9626 MB / 481.8 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005849/0.2964, allocations: 4.24 MB / 486 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0151/0.3115, allocations: 10.59 MB / 496.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00433/0.3159, allocations: 2.369 MB / 499 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004624/0.3205, allocations: 2.64 MB / 0.4899 GB, free: 10.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001792/0.3224, allocations: 0.7227 MB / 0.4906 GB, free: 9.707 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002924/0.3253, allocations: 0.9958 MB / 0.4916 GB, free: 8.711 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001983/0.3273, allocations: 1.329 MB / 0.4929 GB, free: 7.379 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004561/0.3319, allocations: 2.6 MB / 0.4954 GB, free: 4.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01274/0.3447, allocations: 9.112 MB / 0.5043 GB, free: 11.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.907e-06/0.3447, allocations: 0 / 0.5043 GB, free: 11.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3447, allocations: 7.875 kB / 0.5043 GB, free: 11.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002367/0.345, allocations: 0 / 0.5043 GB, free: 11.62 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.01664/0.3616, allocations: 5.337 MB / 0.5095 GB, free: 6.211 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.3617, allocations: 8.031 kB / 0.5095 GB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002016/0.3637, allocations: 0.6088 MB / 0.5101 GB, free: 5.578 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009983/0.3737, allocations: 1.588 MB / 0.5117 GB, free: 3.984 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006358/0.3801, allocations: 2.939 MB / 0.5145 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003517/0.3805, allocations: 316.5 kB / 0.5148 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001742/0.3822, allocations: 420 kB / 0.5152 GB, free: 276 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01956/0.4018, allocations: 6.664 MB / 0.5218 GB, free: 9.531 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001754/0.402, allocations: 7.906 kB / 0.5218 GB, free: 9.523 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001535/0.4036, allocations: 176 kB / 0.5219 GB, free: 9.352 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002881/0.4039, allocations: 203.8 kB / 0.5221 GB, free: 9.152 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01254/0.4164, allocations: 5.621 MB / 0.5276 GB, free: 3.523 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03831/0.4548, allocations: 22.47 MB / 0.5496 GB, free: 12.3 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005911/0.4607, allocations: 4.374 MB / 0.5538 GB, free: 7.438 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001554/0.4623, allocations: 0.8278 MB / 0.5546 GB, free: 6.609 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001771/0.4625, allocations: 113.9 kB / 0.5547 GB, free: 6.484 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001419/0.4639, allocations: 0.7862 MB / 0.5555 GB, free: 5.672 MB / 430.1 MB Notification: Performance of pre-optimization done (n=106): time 3.967e-06/0.464, allocations: 0 / 0.5555 GB, free: 5.672 MB / 430.1 MB Notification: Performance of matching and sorting (n=106): time 0.005084/0.469, allocations: 2.228 MB / 0.5577 GB, free: 3.41 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.4692, allocations: 157.5 kB / 0.5578 GB, free: 3.227 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003086/0.4723, allocations: 1.818 MB / 0.5596 GB, free: 1.398 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000107/0.4724, allocations: 41.7 kB / 0.5597 GB, free: 1.352 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001768/0.4742, allocations: 1.967 MB / 0.5616 GB, free: 15.36 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004104/0.4746, allocations: 390.8 kB / 0.5619 GB, free: 14.97 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009266/0.4755, allocations: 0.5432 MB / 0.5625 GB, free: 14.42 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.76e-05/0.4756, allocations: 305.1 kB / 0.5628 GB, free: 14.12 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001755/0.4774, allocations: 1.078 MB / 0.5638 GB, free: 13.04 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002492/0.4799, allocations: 2.173 MB / 0.5659 GB, free: 10.34 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004272/0.4842, allocations: 3.372 MB / 0.5692 GB, free: 6.438 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.268e-05/0.4842, allocations: 12 kB / 0.5693 GB, free: 6.426 MB / 446.1 MB Notification: Performance of matching and sorting (n=316) (initialization): time 0.006202/0.4904, allocations: 3.466 MB / 0.5726 GB, free: 2.941 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.523e-05/0.4905, allocations: 49.7 kB / 0.5727 GB, free: 2.887 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.015e-05/0.4906, allocations: 36 kB / 0.5727 GB, free: 2.852 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000571/0.4912, allocations: 120.8 kB / 0.5728 GB, free: 2.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00215/0.4933, allocations: 0.6124 MB / 0.5734 GB, free: 2.117 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001737/0.4951, allocations: 1.64 MB / 0.575 GB, free: 340 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2142/0.7094, allocations: 364 kB / 0.5754 GB, free: 95.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006569/0.71, allocations: 137.5 kB / 0.5755 GB, free: 95.71 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 168 * Number of states: 0 () * Number of discrete variables: 11 (mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,mpTracker.sampleTrigger,$whenCondition1,mpTracker.vRef,$PRE.mpTracker.vRef,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 310 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * 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: Performance of prepare postOptimizeDAE: time 0.003031/0.7131, allocations: 1.716 MB / 0.5772 GB, free: 95.55 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004307/0.7135, allocations: 159.9 kB / 0.5773 GB, free: 95.55 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003386/0.7169, allocations: 1.772 MB / 0.5791 GB, free: 94.86 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002457/0.7194, allocations: 1.419 MB / 0.5805 GB, free: 94.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.7194, allocations: 3.344 kB / 0.5805 GB, free: 94.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-05/0.7194, allocations: 9.141 kB / 0.5805 GB, free: 94.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01124/0.7307, allocations: 5.124 MB / 0.5855 GB, free: 92.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/0.7307, allocations: 2.406 kB / 0.5855 GB, free: 92.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009817/0.7317, allocations: 213.8 kB / 0.5857 GB, free: 92.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000634/0.7324, allocations: 253.3 kB / 0.5859 GB, free: 92.26 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.679e-05/0.7325, allocations: 36.89 kB / 0.586 GB, free: 92.24 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009589/0.7335, allocations: 0.8265 MB / 0.5868 GB, free: 91.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.7335, allocations: 5.312 kB / 0.5868 GB, free: 91.59 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005664/0.7391, allocations: 2.729 MB / 0.5894 GB, free: 90.54 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007643/0.7399, allocations: 364.7 kB / 0.5898 GB, free: 90.35 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000257/0.7402, allocations: 34.92 kB / 0.5898 GB, free: 90.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008567/0.7411, allocations: 83.53 kB / 0.5899 GB, free: 90.31 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.7412, allocations: 69.58 kB / 0.59 GB, free: 90.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.636e-05/0.7413, allocations: 35.53 kB / 0.59 GB, free: 90.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001913/0.7432, allocations: 1.236 MB / 0.5912 GB, free: 89.81 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7433, allocations: 0 / 0.5912 GB, free: 89.81 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003266/0.7465, allocations: 0.9474 MB / 0.5921 GB, free: 89.51 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (converter.integrator.y,voltageSource.plug_p.reference.gamma) * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006558/0.7531, allocations: 3.365 MB / 0.5954 GB, free: 87.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004341/0.7575, allocations: 2.463 MB / 0.5978 GB, free: 86.82 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.7575, allocations: 0 / 0.5978 GB, free: 86.82 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00132/0.7588, allocations: 0.7862 MB / 0.5986 GB, free: 86.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00184/0.7607, allocations: 375.8 kB / 0.5989 GB, free: 86.36 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03035/0.7911, allocations: 20.75 MB / 0.6192 GB, free: 74.47 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002683/0.7938, allocations: 3.025 MB / 0.6222 GB, free: 71.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001917/0.7957, allocations: 0.8501 MB / 0.623 GB, free: 70.55 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001531/0.7973, allocations: 1.288 MB / 0.6242 GB, free: 69.27 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.7973, allocations: 0 / 0.6242 GB, free: 69.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0989/0.8962, allocations: 51.47 MB / 0.6745 GB, free: 18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.03/14.92, allocations: 8.047 kB / 0.6745 GB, free: 17.99 MB / 446.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.pipe 2>&1)