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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001217/0.001217, allocations: 195.6 kB / 16.25 MB, free: 6.621 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.336/1.336, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.136/0.136, allocations: 5.39 MB / 295.5 MB, free: 2.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 59.91 kB / 360.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1033, allocations: 50.61 MB / 411 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.00816/0.1115, allocations: 6.322 MB / 417.3 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004628/0.1162, allocations: 2.527 MB / 419.8 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001102/0.1173, allocations: 23.94 kB / 419.8 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002963/0.1203, allocations: 1.043 MB / 420.9 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002019/0.1223, allocations: 0.6839 MB / 421.6 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008691/0.1232, allocations: 323.5 kB / 421.9 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.207/0.3303, allocations: 1.143 MB / 423 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002407/0.3327, allocations: 1.059 MB / 424.1 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008983/0.3336, allocations: 474.6 kB / 424.5 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008819/0.3345, allocations: 0.5728 MB / 425.1 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002138/0.3348, allocations: 131.5 kB / 425.2 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007187/0.3355, allocations: 282.5 kB / 425.5 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002043/0.3357, allocations: 263.8 kB / 425.8 MB, free: 38.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005261/0.3363, allocations: 0.5392 MB / 426.3 MB, free: 38.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001619/0.3379, allocations: 1.454 MB / 427.8 MB, free: 38.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3379, allocations: 0 / 427.8 MB, free: 38.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3379, allocations: 2 kB / 427.8 MB, free: 38.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.221e-05/0.3379, allocations: 0 / 427.8 MB, free: 38.57 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.003754/0.3417, allocations: 1.548 MB / 429.3 MB, free: 37.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/0.3418, allocations: 8.719 kB / 429.3 MB, free: 37.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002778/0.3445, allocations: 353 kB / 429.7 MB, free: 37.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00226/0.3468, allocations: 0.6807 MB / 430.4 MB, free: 37.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/0.347, allocations: 72.72 kB / 430.4 MB, free: 37.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002218/0.3472, allocations: 96.47 kB / 430.5 MB, free: 37.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002372/0.3496, allocations: 0.997 MB / 431.5 MB, free: 37.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.697e-05/0.3496, allocations: 0 / 431.5 MB, free: 37.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/0.3498, allocations: 42.05 kB / 431.6 MB, free: 37.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.263e-05/0.3498, allocations: 22.94 kB / 431.6 MB, free: 37.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002102/0.3519, allocations: 0.8343 MB / 432.4 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006457/0.3584, allocations: 3.882 MB / 436.3 MB, free: 34.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00245/0.3609, allocations: 1.477 MB / 437.8 MB, free: 33.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006762/0.3616, allocations: 255.3 kB / 438 MB, free: 33.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.018e-05/0.3617, allocations: 88.39 kB / 438.1 MB, free: 32.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007566/0.3624, allocations: 320.9 kB / 438.4 MB, free: 32.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 2.545e-06/0.3624, allocations: 0 / 438.4 MB, free: 32.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.003521/0.366, allocations: 0.9535 MB / 439.4 MB, free: 32.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.002e-05/0.3661, allocations: 144.8 kB / 439.5 MB, free: 32.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007382/0.3668, allocations: 0.4945 MB / 440 MB, free: 31.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.066e-05/0.3669, allocations: 38.89 kB / 440.1 MB, free: 31.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003468/0.3672, allocations: 466 kB / 440.5 MB, free: 31.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.3674, allocations: 152.8 kB / 440.7 MB, free: 31.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002597/0.3676, allocations: 146.2 kB / 440.8 MB, free: 31.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.626e-05/0.3678, allocations: 369.5 kB / 441.2 MB, free: 31.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005965/0.3684, allocations: 234.4 kB / 441.4 MB, free: 30.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006876/0.3691, allocations: 424.5 kB / 441.8 MB, free: 30.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001052/0.3701, allocations: 0.7109 MB / 442.5 MB, free: 30.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.3701, allocations: 0 / 442.5 MB, free: 30.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00161/0.3718, allocations: 0.8412 MB / 443.4 MB, free: 29.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.075e-05/0.3718, allocations: 42.42 kB / 443.4 MB, free: 29.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.3718, allocations: 7.125 kB / 443.4 MB, free: 29.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004899/0.3723, allocations: 90.17 kB / 443.5 MB, free: 29.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006597/0.373, allocations: 166.6 kB / 443.7 MB, free: 29.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001249/0.3742, allocations: 1.581 MB / 445.2 MB, free: 28.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006803/0.3749, allocations: 89.7 kB / 445.3 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.992e-05/0.375, allocations: 34.31 kB / 445.4 MB, free: 28.17 MB / 350.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.0003848/0.3754, allocations: 277.7 kB / 445.6 MB, free: 27.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.33e-05/0.3755, allocations: 56.5 kB / 445.7 MB, free: 27.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001241/0.3767, allocations: 0.69 MB / 446.4 MB, free: 27.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.3767, allocations: 10.39 kB / 446.4 MB, free: 27.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.933e-06/0.3768, allocations: 0 / 446.4 MB, free: 27.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.3768, allocations: 3.938 kB / 446.4 MB, free: 27.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003587/0.3804, allocations: 1.735 MB / 448.1 MB, free: 26.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.3804, allocations: 0 / 448.1 MB, free: 26.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003072/0.3807, allocations: 70.12 kB / 448.2 MB, free: 26.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005454/0.3813, allocations: 257.1 kB / 448.4 MB, free: 26.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.647e-05/0.3813, allocations: 11.06 kB / 448.5 MB, free: 26.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008604/0.3822, allocations: 0.8232 MB / 449.3 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3822, allocations: 0 / 449.3 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003055/0.3852, allocations: 1.183 MB / 450.5 MB, free: 25.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000247/0.3855, allocations: 179.8 kB / 450.6 MB, free: 25.33 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.673e-05/0.3856, allocations: 18.56 kB / 450.7 MB, free: 25.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004501/0.3861, allocations: 40.23 kB / 450.7 MB, free: 25.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.201e-05/0.3861, allocations: 33.53 kB / 450.7 MB, free: 25.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.112e-05/0.3862, allocations: 13.91 kB / 450.7 MB, free: 25.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003502/0.3865, allocations: 345.5 kB / 451.1 MB, free: 25.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3865, allocations: 0 / 451.1 MB, free: 25.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007769/0.3873, allocations: 231.8 kB / 451.3 MB, free: 25.07 MB / 350.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.0002392/0.3876, allocations: 159 kB / 451.5 MB, free: 24.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001494/0.3891, allocations: 0.7685 MB / 452.2 MB, free: 24.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.3891, allocations: 3.125 kB / 452.2 MB, free: 24.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000553/0.3897, allocations: 339.3 kB / 452.6 MB, free: 24.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006085/0.3903, allocations: 89.2 kB / 452.6 MB, free: 24.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0022/0.3925, allocations: 1.753 MB / 454.4 MB, free: 23.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003075/0.3928, allocations: 0.9375 MB / 455.3 MB, free: 22.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003832/0.3932, allocations: 90.97 kB / 455.4 MB, free: 22.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001429/0.3933, allocations: 53.72 kB / 455.5 MB, free: 22.51 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3934, allocations: 0.5938 kB / 455.5 MB, free: 22.51 MB / 350.1 MB Notification: Performance of Templates: time 0.01364/0.407, allocations: 7.934 MB / 463.4 MB, free: 21.99 MB / 350.1 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)