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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005995/0.005995, allocations: 100.7 kB / 15.73 MB, free: 6.469 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.00119/0.00119, allocations: 193.1 kB / 16.67 MB, free: 6.379 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1361/0.1361, allocations: 5.385 MB / 295.9 MB, free: 2.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 60.14 kB / 412.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2716, allocations: 50.62 MB / 462.9 MB, free: 21.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.007227/0.2789, allocations: 6.349 MB / 469.3 MB, free: 16.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004971/0.2839, allocations: 2.564 MB / 471.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001094/0.285, allocations: 21.12 kB / 471.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00291/0.2879, allocations: 1.108 MB / 473 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003243/0.2912, allocations: 0.7714 MB / 473.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001026/0.2922, allocations: 349.7 kB / 474.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001762/0.294, allocations: 1.162 MB / 475.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001465/0.2955, allocations: 0.9917 MB / 476.2 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006992/0.2962, allocations: 471.3 kB / 476.7 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000649/0.2968, allocations: 0.574 MB / 477.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001856/0.297, allocations: 135.4 kB / 477.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006863/0.2977, allocations: 280.3 kB / 477.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001905/0.2979, allocations: 261.3 kB / 477.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000497/0.2984, allocations: 0.5372 MB / 478.5 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002053/0.3005, allocations: 1.489 MB / 479.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.952e-06/0.3005, allocations: 1.594 kB / 479.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3005, allocations: 0 / 479.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.852e-05/0.3005, allocations: 0 / 479.9 MB, free: 10.71 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: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.003728/0.3043, allocations: 1.541 MB / 481.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.3043, allocations: 10.09 kB / 481.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001565/0.3045, allocations: 143.5 kB / 481.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002084/0.3066, allocations: 354.1 kB / 482 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00148/0.3081, allocations: 0.6862 MB / 482.7 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.194e-05/0.3082, allocations: 76.47 kB / 482.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/0.3083, allocations: 92.72 kB / 482.8 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/0.3099, allocations: 0.9911 MB / 483.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.727e-05/0.31, allocations: 1.094 kB / 483.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.262e-05/0.31, allocations: 38.09 kB / 483.9 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.43e-05/0.3101, allocations: 26.25 kB / 483.9 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001534/0.3116, allocations: 0.8398 MB / 484.7 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004844/0.3165, allocations: 3.849 MB / 488.6 MB, free: 4.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001677/0.3182, allocations: 1.484 MB / 490.1 MB, free: 3.004 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004543/0.3186, allocations: 250.9 kB / 490.3 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.28e-05/0.3187, allocations: 88.25 kB / 490.4 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005061/0.3192, allocations: 320.4 kB / 490.7 MB, free: 2.543 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 2.805e-06/0.3192, allocations: 1.844 kB / 490.7 MB, free: 2.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.002671/0.3219, allocations: 0.9561 MB / 491.7 MB, free: 2.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.279e-05/0.322, allocations: 145.4 kB / 491.8 MB, free: 1.844 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006243/0.3226, allocations: 0.5015 MB / 492.3 MB, free: 1.523 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.613e-05/0.3227, allocations: 31.7 kB / 492.3 MB, free: 1.488 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002585/0.3229, allocations: 459.2 kB / 492.8 MB, free: 1.082 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.323, allocations: 158.6 kB / 492.9 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002088/0.3233, allocations: 146.5 kB / 493.1 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.936e-05/0.3233, allocations: 362.8 kB / 493.4 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004626/0.3238, allocations: 238.7 kB / 493.7 MB, free: 392 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005153/0.3243, allocations: 435.3 kB / 494.1 MB, free: 24 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001149/0.3255, allocations: 0.7025 MB / 494.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/0.3255, allocations: 6.156 kB / 494.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002073/0.3276, allocations: 0.8445 MB / 495.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.161e-05/0.3277, allocations: 41.78 kB / 495.7 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.3277, allocations: 6.469 kB / 495.7 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005407/0.3282, allocations: 83.62 kB / 495.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007717/0.329, allocations: 166.6 kB / 495.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001828/0.3309, allocations: 1.581 MB / 497.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006869/0.3316, allocations: 94.3 kB / 497.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.805e-05/0.3316, allocations: 36.23 kB / 497.6 MB, free: 13.27 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.0004258/0.3321, allocations: 273.1 kB / 497.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.899e-05/0.3322, allocations: 60.66 kB / 498 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001487/0.3337, allocations: 0.6893 MB / 498.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/0.3337, allocations: 15.97 kB / 498.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.3337, allocations: 0 / 498.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.3337, allocations: 4 kB / 498.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004139/0.3379, allocations: 1.72 MB / 0.4887 GB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.3379, allocations: 0 / 0.4887 GB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003191/0.3382, allocations: 67.91 kB / 0.4887 GB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005879/0.3388, allocations: 258.4 kB / 0.489 GB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.888e-05/0.3389, allocations: 15.98 kB / 0.489 GB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001044/0.3399, allocations: 0.8233 MB / 0.4898 GB, free: 9.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3399, allocations: 4.062 kB / 0.4898 GB, free: 9.496 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003273/0.3432, allocations: 1.178 MB / 0.491 GB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002909/0.3435, allocations: 176.3 kB / 0.4911 GB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/0.3436, allocations: 15.94 kB / 0.4911 GB, free: 8.078 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004534/0.3441, allocations: 44.03 kB / 0.4912 GB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.36e-05/0.3442, allocations: 31.84 kB / 0.4912 GB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.659e-05/0.3442, allocations: 19.98 kB / 0.4912 GB, free: 7.984 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004333/0.3447, allocations: 342.9 kB / 0.4916 GB, free: 7.652 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3447, allocations: 0 / 0.4916 GB, free: 7.652 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007808/0.3455, allocations: 235.1 kB / 0.4918 GB, free: 7.422 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (converter.integrator.y,voltageSource.pin_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 (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.003666/0.3491, allocations: 1.773 MB / 0.4935 GB, free: 5.609 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001488/0.3506, allocations: 0.7477 MB / 0.4942 GB, free: 4.832 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3507, allocations: 0 / 0.4942 GB, free: 4.832 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006016/0.3513, allocations: 332.4 kB / 0.4946 GB, free: 4.496 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006807/0.352, allocations: 101.9 kB / 0.4947 GB, free: 4.398 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00822/0.3602, allocations: 5.505 MB / 0.5 GB, free: 14.63 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005055/0.3607, allocations: 0.933 MB / 0.5009 GB, free: 13.67 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003422/0.3611, allocations: 84.97 kB / 0.501 GB, free: 13.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003941/0.3615, allocations: 295.3 kB / 0.5013 GB, free: 13.3 MB / 382.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3615, allocations: 0 / 0.5013 GB, free: 13.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03729/0.3988, allocations: 14.65 MB / 0.5156 GB, free: 14.8 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.8/14.2, allocations: 10.7 kB / 0.5156 GB, free: 14.8 MB / 398.1 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/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)