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.001146/0.001146, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 197 kB / 16.53 MB, free: 6.664 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.346/1.346, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1438/0.1438, allocations: 5.387 MB / 295.8 MB, free: 2.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 67.89 kB / 361 MB, free: 14.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08417/0.08547, allocations: 50.6 MB / 411.6 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP3): time 0.01264/0.09816, allocations: 10.1 MB / 421.7 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1657/0.2639, allocations: 3.518 MB / 425.2 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001287/0.2652, allocations: 68.5 kB / 425.3 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005708/0.2709, allocations: 3.233 MB / 428.5 MB, free: 38.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002943/0.2739, allocations: 0.9996 MB / 429.5 MB, free: 38.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001986/0.2759, allocations: 0.9509 MB / 430.5 MB, free: 38.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003053/0.2789, allocations: 4.205 MB / 434.7 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008991/0.2879, allocations: 10.68 MB / 445.4 MB, free: 31.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002236/0.2902, allocations: 2.355 MB / 447.7 MB, free: 30.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002536/0.2928, allocations: 2.644 MB / 450.4 MB, free: 29.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008239/0.2936, allocations: 0.7162 MB / 451.1 MB, free: 29.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001518/0.2951, allocations: 0.9964 MB / 452.1 MB, free: 29.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007683/0.2959, allocations: 1.336 MB / 453.4 MB, free: 28.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002052/0.298, allocations: 2.604 MB / 456 MB, free: 26.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006379/0.3044, allocations: 9.042 MB / 465.1 MB, free: 23.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3044, allocations: 5.281 kB / 465.1 MB, free: 23.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3044, allocations: 0 / 465.1 MB, free: 23.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001975/0.3046, allocations: 0 / 465.1 MB, free: 23.53 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.01431/0.3189, allocations: 5.339 MB / 470.4 MB, free: 20.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.319, allocations: 9.156 kB / 470.4 MB, free: 20.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00114/0.3201, allocations: 0.607 MB / 471 MB, free: 20.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009369/0.3295, allocations: 1.582 MB / 472.6 MB, free: 20.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006893/0.3364, allocations: 2.869 MB / 475.5 MB, free: 18.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002962/0.3368, allocations: 318.7 kB / 475.8 MB, free: 18.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001419/0.3382, allocations: 416.4 kB / 476.2 MB, free: 18.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01481/0.353, allocations: 6.666 MB / 482.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001052/0.3532, allocations: 3.906 kB / 482.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005453/0.3537, allocations: 178.1 kB / 483.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001734/0.3539, allocations: 204.1 kB / 483.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01074/0.3646, allocations: 5.617 MB / 488.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03249/0.3972, allocations: 22.73 MB / 0.4996 GB, free: 4.246 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005419/0.4026, allocations: 4.372 MB / 0.5039 GB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001256/0.4039, allocations: 0.8303 MB / 0.5047 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001304/0.404, allocations: 104.7 kB / 0.5048 GB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001137/0.4052, allocations: 0.7891 MB / 0.5056 GB, free: 13.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=106): time 3.066e-06/0.4052, allocations: 0 / 0.5056 GB, free: 13.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=106): time 0.004506/0.4097, allocations: 2.236 MB / 0.5077 GB, free: 11.35 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.195e-05/0.4098, allocations: 145.5 kB / 0.5079 GB, free: 11.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00267/0.4125, allocations: 1.822 MB / 0.5097 GB, free: 9.348 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.434e-05/0.4126, allocations: 45.7 kB / 0.5097 GB, free: 9.297 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001437/0.414, allocations: 1.96 MB / 0.5116 GB, free: 7.324 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003013/0.4143, allocations: 391.5 kB / 0.512 GB, free: 6.945 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007523/0.4151, allocations: 0.5394 MB / 0.5125 GB, free: 6.395 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.588e-05/0.4152, allocations: 305.1 kB / 0.5128 GB, free: 6.094 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001583/0.4168, allocations: 1.082 MB / 0.5139 GB, free: 5.008 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002196/0.419, allocations: 2.165 MB / 0.516 GB, free: 2.316 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003763/0.4227, allocations: 3.369 MB / 0.5193 GB, free: 14.42 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.632e-05/0.4228, allocations: 15.94 kB / 0.5193 GB, free: 14.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=316) (initialization): time 0.005327/0.4281, allocations: 3.478 MB / 0.5227 GB, free: 10.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.296e-05/0.4282, allocations: 45.7 kB / 0.5227 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-05/0.4282, allocations: 36 kB / 0.5228 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005093/0.4287, allocations: 132.9 kB / 0.5229 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001975/0.4307, allocations: 0.6083 MB / 0.5235 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00156/0.4323, allocations: 1.64 MB / 0.5251 GB, free: 8.293 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00199/0.4343, allocations: 364.8 kB / 0.5254 GB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002087/0.4345, allocations: 140 kB / 0.5256 GB, free: 7.797 MB / 398.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.002327/0.4369, allocations: 1.721 MB / 0.5272 GB, free: 6.059 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003216/0.4372, allocations: 158 kB / 0.5274 GB, free: 5.902 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003184/0.4404, allocations: 1.777 MB / 0.5291 GB, free: 4.105 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002289/0.4427, allocations: 1.421 MB / 0.5305 GB, free: 2.672 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.4427, allocations: 3.984 kB / 0.5305 GB, free: 2.668 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.4427, allocations: 3.984 kB / 0.5305 GB, free: 2.664 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009803/0.4525, allocations: 5.161 MB / 0.5356 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.4526, allocations: 4 kB / 0.5356 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008274/0.4534, allocations: 207.7 kB / 0.5358 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005727/0.454, allocations: 254.5 kB / 0.536 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.447e-05/0.4541, allocations: 31.98 kB / 0.536 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009789/0.4551, allocations: 0.8195 MB / 0.5368 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.4551, allocations: 8.062 kB / 0.5369 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005262/0.4603, allocations: 2.722 MB / 0.5395 GB, free: 9.316 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006604/0.461, allocations: 366.7 kB / 0.5399 GB, free: 8.938 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003389/0.4614, allocations: 35.84 kB / 0.5399 GB, free: 8.902 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009216/0.4623, allocations: 87.5 kB / 0.54 GB, free: 8.82 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/0.4624, allocations: 68.84 kB / 0.54 GB, free: 8.754 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.615e-05/0.4625, allocations: 40.05 kB / 0.5401 GB, free: 8.715 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001752/0.4643, allocations: 1.237 MB / 0.5413 GB, free: 7.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4643, allocations: 3.938 kB / 0.5413 GB, free: 7.477 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002652/0.467, allocations: 0.9444 MB / 0.5422 GB, free: 6.527 MB / 414.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.00597/0.4729, allocations: 3.362 MB / 0.5455 GB, free: 3.113 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005323/0.4783, allocations: 2.895 MB / 0.5483 GB, free: 200 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.4783, allocations: 4.062 kB / 0.5483 GB, free: 196 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001302/0.4796, allocations: 0.7797 MB / 0.5491 GB, free: 15.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002777/0.4824, allocations: 373 kB / 0.5494 GB, free: 15.05 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03484/0.5173, allocations: 21.81 MB / 0.5707 GB, free: 7.562 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003657/0.521, allocations: 3.029 MB / 0.5737 GB, free: 4.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00231/0.5233, allocations: 0.854 MB / 0.5745 GB, free: 3.641 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001886/0.5252, allocations: 1.292 MB / 0.5758 GB, free: 2.348 MB / 446.1 MB Notification: Performance of SimCode: time 5.01e-07/0.5252, allocations: 0 / 0.5758 GB, free: 2.348 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2291/0.7543, allocations: 50.05 MB / 0.6247 GB, free: 119.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/12.19, allocations: 7.797 kB / 0.6247 GB, free: 119.6 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)