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: translateModel(PhotoVoltaics.Examples.SimpleModuleMP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP") translateModel(PhotoVoltaics.Examples.SimpleModuleMP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 183.2 kB / 15.98 MB, free: 5.77 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.176/1.176, allocations: 222.9 MB / 239.7 MB, free: 11 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.0008944/0.0008944, allocations: 105.6 kB / 289.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02409/0.02409, allocations: 5.397 MB / 345.4 MB, free: 3.543 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 54.08 kB / 410.2 MB, free: 57.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07172/0.07294, allocations: 50.63 MB / 460.8 MB, free: 7.02 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.005127/0.0781, allocations: 6.314 MB / 467.2 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003186/0.08131, allocations: 2.554 MB / 469.7 MB, free: 14.1 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003234/0.08165, allocations: 23.94 kB / 469.7 MB, free: 14.07 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002054/0.08371, allocations: 1.034 MB / 470.8 MB, free: 13.04 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001287/0.08501, allocations: 0.6921 MB / 471.5 MB, free: 12.34 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005331/0.08555, allocations: 327.4 kB / 471.8 MB, free: 12.02 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008824/0.08645, allocations: 1.086 MB / 472.9 MB, free: 10.93 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001075/0.08753, allocations: 0.8235 MB / 473.7 MB, free: 10.08 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004321/0.08798, allocations: 422.2 kB / 474.1 MB, free: 9.668 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000542/0.08853, allocations: 0.5445 MB / 474.7 MB, free: 9.121 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001133/0.08865, allocations: 80 kB / 474.7 MB, free: 9.043 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004114/0.08907, allocations: 235.8 kB / 475 MB, free: 8.812 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001466/0.08923, allocations: 203.2 kB / 475.2 MB, free: 8.613 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003871/0.08962, allocations: 0.4935 MB / 475.7 MB, free: 8.117 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001149/0.09078, allocations: 1.425 MB / 477.1 MB, free: 6.688 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.09079, allocations: 0 / 477.1 MB, free: 6.688 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.0908, allocations: 0 / 477.1 MB, free: 6.688 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.09082, allocations: 0 / 477.1 MB, free: 6.688 MB / 314.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.003277/0.0941, allocations: 1.538 MB / 478.6 MB, free: 5.094 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.09414, allocations: 12.88 kB / 478.6 MB, free: 5.082 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001838/0.09599, allocations: 351.4 kB / 479 MB, free: 4.738 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001221/0.09722, allocations: 0.6826 MB / 479.7 MB, free: 4.012 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.379e-05/0.09728, allocations: 74.12 kB / 479.7 MB, free: 3.941 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001226/0.09741, allocations: 95.98 kB / 479.8 MB, free: 3.848 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.09895, allocations: 0.9893 MB / 480.8 MB, free: 2.828 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/0.09898, allocations: 0 / 480.8 MB, free: 2.828 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.063e-05/0.09907, allocations: 44 kB / 480.9 MB, free: 2.785 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.686e-05/0.09909, allocations: 24 kB / 480.9 MB, free: 2.762 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001548/0.1006, allocations: 0.8393 MB / 481.7 MB, free: 1.922 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.152/0.2527, allocations: 3.869 MB / 485.6 MB, free: 30.11 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001777/0.2545, allocations: 1.483 MB / 487.1 MB, free: 28.95 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004799/0.255, allocations: 251.4 kB / 487.3 MB, free: 28.85 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.25e-05/0.2551, allocations: 94.53 kB / 487.4 MB, free: 28.75 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005833/0.2557, allocations: 316.2 kB / 487.7 MB, free: 28.58 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 1.933e-06/0.2557, allocations: 0 / 487.7 MB, free: 28.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.002497/0.2582, allocations: 0.9548 MB / 488.7 MB, free: 28.21 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.712e-05/0.2582, allocations: 143 kB / 488.8 MB, free: 28.05 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005118/0.2588, allocations: 0.4945 MB / 489.3 MB, free: 27.81 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.2588, allocations: 33.58 kB / 489.3 MB, free: 27.78 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002139/0.259, allocations: 465.3 kB / 489.8 MB, free: 27.47 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.36e-05/0.2591, allocations: 161.1 kB / 489.9 MB, free: 27.35 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001931/0.2593, allocations: 143.9 kB / 490.1 MB, free: 27.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.487e-05/0.2594, allocations: 368.6 kB / 490.4 MB, free: 26.93 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004539/0.2599, allocations: 237.7 kB / 490.7 MB, free: 26.85 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005044/0.2604, allocations: 427.2 kB / 491.1 MB, free: 26.55 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008676/0.2612, allocations: 0.7014 MB / 491.8 MB, free: 26.06 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.2613, allocations: 4.5 kB / 491.8 MB, free: 26.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001495/0.2628, allocations: 0.8443 MB / 492.6 MB, free: 25.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.98e-05/0.2628, allocations: 43.06 kB / 492.7 MB, free: 25.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.2628, allocations: 7.688 kB / 492.7 MB, free: 25.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004362/0.2633, allocations: 83.06 kB / 492.8 MB, free: 25.65 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006366/0.2639, allocations: 173 kB / 492.9 MB, free: 25.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001088/0.265, allocations: 1.472 MB / 494.4 MB, free: 24.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005531/0.2656, allocations: 89.75 kB / 494.5 MB, free: 24.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.54e-05/0.2656, allocations: 34.88 kB / 494.5 MB, free: 24.16 MB / 314.7 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.0002769/0.2659, allocations: 276.1 kB / 494.8 MB, free: 23.93 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.636e-05/0.266, allocations: 55.78 kB / 494.9 MB, free: 23.9 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001269/0.2673, allocations: 0.7005 MB / 495.6 MB, free: 23.57 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.2673, allocations: 9.438 kB / 495.6 MB, free: 23.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.2673, allocations: 0 / 495.6 MB, free: 23.57 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.535e-06/0.2673, allocations: 3.719 kB / 495.6 MB, free: 23.57 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003632/0.271, allocations: 1.708 MB / 497.3 MB, free: 22.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.271, allocations: 1.688 kB / 497.3 MB, free: 22.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003015/0.2713, allocations: 78.92 kB / 497.4 MB, free: 22.74 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005408/0.2718, allocations: 259.6 kB / 497.6 MB, free: 22.64 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.584e-05/0.2719, allocations: 20.16 kB / 497.6 MB, free: 22.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008226/0.2727, allocations: 0.8242 MB / 498.5 MB, free: 21.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.2727, allocations: 6.812 kB / 498.5 MB, free: 21.97 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00868/0.2814, allocations: 4.176 MB / 0.4909 GB, free: 19.64 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001723/0.2816, allocations: 177.3 kB / 0.491 GB, free: 19.49 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.619e-05/0.2817, allocations: 14.94 kB / 0.491 GB, free: 19.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003998/0.2821, allocations: 39.75 kB / 0.4911 GB, free: 19.47 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.609e-05/0.2822, allocations: 32.45 kB / 0.4911 GB, free: 19.46 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.232e-05/0.2822, allocations: 11.59 kB / 0.4911 GB, free: 19.46 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003503/0.2826, allocations: 349.1 kB / 0.4915 GB, free: 19.3 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2826, allocations: 0 / 0.4915 GB, free: 19.3 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008783/0.2835, allocations: 300.7 kB / 0.4917 GB, free: 19.23 MB / 314.7 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.000212/0.2837, allocations: 150.9 kB / 0.4919 GB, free: 19.12 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.285, allocations: 0.7497 MB / 0.4926 GB, free: 18.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.285, allocations: 1.188 kB / 0.4926 GB, free: 18.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005127/0.2855, allocations: 340.8 kB / 0.4929 GB, free: 18.59 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005703/0.2861, allocations: 98.11 kB / 0.493 GB, free: 18.54 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002321/0.2884, allocations: 2.102 MB / 0.4951 GB, free: 17.11 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003301/0.2888, allocations: 0.9529 MB / 0.496 GB, free: 16.39 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003993/0.2892, allocations: 91.44 kB / 0.4961 GB, free: 16.37 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000162/0.2894, allocations: 52.61 kB / 0.4962 GB, free: 16.36 MB / 314.7 MB Notification: Performance of SimCode: time 4.51e-07/0.2894, allocations: 0 / 0.4962 GB, free: 16.36 MB / 314.7 MB Notification: Performance of Templates: time 0.01217/0.3015, allocations: 8.943 MB / 0.5049 GB, free: 9.777 MB / 314.7 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.makefile (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 & ./PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP -jacobian=coloredNumerical -nls=newton -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe 2>&1)