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.00147/0.00147, 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.00166/0.00166, allocations: 194.3 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.344/1.344, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1623/0.1623, allocations: 5.388 MB / 295.8 MB, free: 2.887 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 67.91 kB / 360.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09213/0.09372, allocations: 50.61 MB / 411.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.007074/0.1008, allocations: 6.329 MB / 417.9 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004313/0.1052, allocations: 2.573 MB / 420.4 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007602/0.1059, allocations: 19.94 kB / 420.4 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002618/0.1086, allocations: 1.104 MB / 421.5 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001863/0.1105, allocations: 0.7769 MB / 422.3 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008515/0.1113, allocations: 355.2 kB / 422.7 MB, free: 220 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1671/0.2784, allocations: 1.137 MB / 423.8 MB, free: 39.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001421/0.2799, allocations: 0.9851 MB / 424.8 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005325/0.2805, allocations: 483.7 kB / 425.3 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005227/0.281, allocations: 0.5677 MB / 425.8 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000129/0.2811, allocations: 127.7 kB / 426 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004941/0.2816, allocations: 292.6 kB / 426.2 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001385/0.2818, allocations: 256.4 kB / 426.5 MB, free: 39.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003582/0.2821, allocations: 0.5403 MB / 427 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001153/0.2833, allocations: 1.466 MB / 428.5 MB, free: 38.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2833, allocations: 0 / 428.5 MB, free: 38.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2833, allocations: 0 / 428.5 MB, free: 38.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.392e-05/0.2833, allocations: 0 / 428.5 MB, free: 38.87 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.003217/0.2866, allocations: 1.538 MB / 430 MB, free: 38.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2866, allocations: 9.469 kB / 430 MB, free: 38.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001893/0.2885, allocations: 355.3 kB / 430.4 MB, free: 38.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.2896, allocations: 0.6867 MB / 431.1 MB, free: 37.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.295e-05/0.2897, allocations: 73.12 kB / 431.2 MB, free: 37.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001129/0.2898, allocations: 99.03 kB / 431.3 MB, free: 37.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.2912, allocations: 0.9881 MB / 432.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.487e-05/0.2913, allocations: 6.25 kB / 432.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.776e-05/0.2913, allocations: 38.41 kB / 432.3 MB, free: 37.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.2914, allocations: 25.53 kB / 432.3 MB, free: 37.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001396/0.2928, allocations: 0.8321 MB / 433.1 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004502/0.2973, allocations: 3.883 MB / 437 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001749/0.299, allocations: 1.482 MB / 438.5 MB, free: 33.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004488/0.2995, allocations: 256.4 kB / 438.8 MB, free: 32.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.859e-05/0.2996, allocations: 93.11 kB / 438.8 MB, free: 32.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005832/0.3002, allocations: 316 kB / 439.2 MB, free: 32.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 2.886e-06/0.3002, allocations: 0 / 439.2 MB, free: 32.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.002471/0.3027, allocations: 0.9578 MB / 440.1 MB, free: 32.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/0.3027, allocations: 141.7 kB / 440.3 MB, free: 32.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000482/0.3032, allocations: 0.4946 MB / 440.7 MB, free: 31.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.274e-05/0.3033, allocations: 40.28 kB / 440.8 MB, free: 31.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002083/0.3035, allocations: 460.8 kB / 441.2 MB, free: 31.47 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.156e-05/0.3036, allocations: 164.8 kB / 441.4 MB, free: 31.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001854/0.3038, allocations: 147.5 kB / 441.5 MB, free: 31.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.063e-05/0.3039, allocations: 368.7 kB / 441.9 MB, free: 30.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004479/0.3043, allocations: 228.8 kB / 442.1 MB, free: 30.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005065/0.3048, allocations: 437.2 kB / 442.5 MB, free: 30.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009312/0.3058, allocations: 0.698 MB / 443.2 MB, free: 30.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.3058, allocations: 3.219 kB / 443.3 MB, free: 30.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001589/0.3074, allocations: 0.8413 MB / 444.1 MB, free: 29.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.182e-05/0.3074, allocations: 39.3 kB / 444.1 MB, free: 29.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.3074, allocations: 10.22 kB / 444.1 MB, free: 29.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004547/0.3079, allocations: 85 kB / 444.2 MB, free: 29.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006524/0.3086, allocations: 172.5 kB / 444.4 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001195/0.3098, allocations: 1.582 MB / 446 MB, free: 28.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006193/0.3104, allocations: 89.31 kB / 446.1 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.706e-05/0.3105, allocations: 29.34 kB / 446.1 MB, free: 28.11 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.0003354/0.3108, allocations: 270.1 kB / 446.4 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.446e-05/0.3109, allocations: 61.47 kB / 446.4 MB, free: 27.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001271/0.3122, allocations: 0.6939 MB / 447.1 MB, free: 27.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.3122, allocations: 9.891 kB / 447.1 MB, free: 27.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.3122, allocations: 1.875 kB / 447.1 MB, free: 27.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.3122, allocations: 3.938 kB / 447.1 MB, free: 27.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00344/0.3156, allocations: 1.723 MB / 448.8 MB, free: 26.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.3157, allocations: 2.906 kB / 448.8 MB, free: 26.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002979/0.316, allocations: 74.22 kB / 448.9 MB, free: 26.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004955/0.3165, allocations: 251.8 kB / 449.2 MB, free: 26.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.12e-05/0.3165, allocations: 14.44 kB / 449.2 MB, free: 26.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007954/0.3173, allocations: 0.8303 MB / 450 MB, free: 25.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3173, allocations: 0.5625 kB / 450 MB, free: 25.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002853/0.3202, allocations: 1.182 MB / 451.2 MB, free: 25.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001726/0.3204, allocations: 174.2 kB / 451.4 MB, free: 25.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.839e-05/0.3205, allocations: 18.28 kB / 451.4 MB, free: 25.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004207/0.3209, allocations: 37.25 kB / 451.4 MB, free: 25.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.512e-05/0.321, allocations: 30.33 kB / 451.4 MB, free: 25.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3e-05/0.321, allocations: 19.83 kB / 451.5 MB, free: 25.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003632/0.3214, allocations: 352.3 kB / 451.8 MB, free: 25.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3214, allocations: 4 kB / 451.8 MB, free: 25.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006984/0.3221, allocations: 228.7 kB / 452 MB, free: 25.02 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.0002193/0.3223, allocations: 153.7 kB / 452.2 MB, free: 24.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001385/0.3237, allocations: 0.7719 MB / 453 MB, free: 24.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3237, allocations: 0 / 453 MB, free: 24.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005085/0.3243, allocations: 335.5 kB / 453.3 MB, free: 24.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005766/0.3248, allocations: 95.33 kB / 453.4 MB, free: 24.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.3268, allocations: 1.361 MB / 454.7 MB, free: 23.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.3272, allocations: 0.939 MB / 455.7 MB, free: 22.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003412/0.3275, allocations: 92.19 kB / 455.8 MB, free: 22.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.3277, allocations: 50.78 kB / 455.8 MB, free: 22.84 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3277, allocations: 0 / 455.8 MB, free: 22.84 MB / 350.1 MB Notification: Performance of Templates: time 0.01296/0.3406, allocations: 8.003 MB / 463.8 MB, free: 22.31 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)