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.00117/0.00117, allocations: 105 kB / 16.37 MB, free: 6.426 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.001124/0.001124, allocations: 197.3 kB / 17.31 MB, free: 5.801 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.299/1.299, allocations: 222.9 MB / 241 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02666/0.02666, allocations: 5.398 MB / 296.6 MB, free: 9.508 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 63.91 kB / 362.4 MB, free: 7.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1863/0.1875, allocations: 50.62 MB / 413 MB, free: 29.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.005389/0.193, allocations: 6.346 MB / 419.3 MB, free: 22.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00261/0.1956, allocations: 2.558 MB / 421.9 MB, free: 20.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002978/0.1959, allocations: 23.94 kB / 421.9 MB, free: 20.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001812/0.1977, allocations: 1.112 MB / 423 MB, free: 19.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001067/0.1988, allocations: 0.7645 MB / 423.8 MB, free: 18.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004596/0.1993, allocations: 363.1 kB / 424.2 MB, free: 18.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006754/0.2, allocations: 1.149 MB / 425.3 MB, free: 16.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009344/0.2009, allocations: 0.9849 MB / 426.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003151/0.2012, allocations: 474.3 kB / 426.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000446/0.2017, allocations: 0.5797 MB / 427.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000106/0.2018, allocations: 128 kB / 427.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003424/0.2021, allocations: 283.8 kB / 427.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.2023, allocations: 259.1 kB / 428 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002899/0.2026, allocations: 0.5443 MB / 428.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008682/0.2034, allocations: 1.484 MB / 430 MB, free: 12.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2035, allocations: 0 / 430 MB, free: 12.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2035, allocations: 0 / 430 MB, free: 12.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.838e-06/0.2035, allocations: 0 / 430 MB, free: 12.23 MB / 302.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.00295/0.2064, allocations: 1.538 MB / 431.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.93e-05/0.2065, allocations: 12.03 kB / 431.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001912/0.2084, allocations: 359.4 kB / 431.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001145/0.2095, allocations: 0.6787 MB / 432.6 MB, free: 9.551 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.041e-05/0.2096, allocations: 78.12 kB / 432.7 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.2097, allocations: 88 kB / 432.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.211, allocations: 0.9932 MB / 433.7 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.595e-05/0.2111, allocations: 7.938 kB / 433.8 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.009e-05/0.2112, allocations: 43.92 kB / 433.8 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.2112, allocations: 27.98 kB / 433.8 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/0.2125, allocations: 0.8316 MB / 434.7 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004118/0.2167, allocations: 3.844 MB / 438.5 MB, free: 3.414 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001577/0.2183, allocations: 1.478 MB / 440 MB, free: 1.711 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004132/0.2187, allocations: 246 kB / 440.2 MB, free: 1.465 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.009e-05/0.2188, allocations: 93.45 kB / 440.3 MB, free: 1.355 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004513/0.2192, allocations: 317.4 kB / 440.6 MB, free: 1.023 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 1.764e-06/0.2192, allocations: 4 kB / 440.6 MB, free: 1.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.002369/0.2216, allocations: 0.956 MB / 441.6 MB, free: 32 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.062e-05/0.2217, allocations: 148.5 kB / 441.7 MB, free: 15.86 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000559/0.2223, allocations: 0.5018 MB / 442.2 MB, free: 15.34 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.731e-05/0.2223, allocations: 33.7 kB / 442.3 MB, free: 15.3 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002659/0.2226, allocations: 462.2 kB / 442.7 MB, free: 14.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.2227, allocations: 153.8 kB / 442.9 MB, free: 14.69 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002121/0.2229, allocations: 146.5 kB / 443 MB, free: 14.54 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.2231, allocations: 366.7 kB / 443.4 MB, free: 14.17 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004856/0.2236, allocations: 237.9 kB / 443.6 MB, free: 13.94 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005739/0.2241, allocations: 436.7 kB / 444 MB, free: 13.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.2252, allocations: 0.6936 MB / 444.7 MB, free: 12.65 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.2252, allocations: 4 kB / 444.7 MB, free: 12.64 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001736/0.227, allocations: 0.8522 MB / 445.6 MB, free: 11.78 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.178e-05/0.227, allocations: 37.69 kB / 445.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.2271, allocations: 4 kB / 445.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004988/0.2276, allocations: 88.95 kB / 445.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006914/0.2283, allocations: 171.7 kB / 445.9 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001442/0.2297, allocations: 1.57 MB / 447.4 MB, free: 9.762 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006075/0.2303, allocations: 91.14 kB / 447.5 MB, free: 9.672 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.308e-05/0.2304, allocations: 31.98 kB / 447.6 MB, free: 9.641 MB / 318.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.0003586/0.2308, allocations: 271.3 kB / 447.8 MB, free: 9.359 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.212e-05/0.2309, allocations: 63.31 kB / 447.9 MB, free: 9.297 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001384/0.2323, allocations: 0.6891 MB / 448.6 MB, free: 8.586 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.2323, allocations: 8 kB / 448.6 MB, free: 8.578 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.2323, allocations: 3.938 kB / 448.6 MB, free: 8.574 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.2323, allocations: 4 kB / 448.6 MB, free: 8.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003736/0.236, allocations: 1.721 MB / 450.3 MB, free: 6.777 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.768e-06/0.2361, allocations: 4 kB / 450.3 MB, free: 6.773 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003076/0.2364, allocations: 67.91 kB / 450.4 MB, free: 6.707 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005534/0.2369, allocations: 258.4 kB / 450.6 MB, free: 6.445 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.242e-05/0.237, allocations: 19.92 kB / 450.6 MB, free: 6.426 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009332/0.2379, allocations: 0.8272 MB / 451.5 MB, free: 5.566 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2379, allocations: 0 / 451.5 MB, free: 5.566 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003055/0.241, allocations: 1.174 MB / 452.7 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002288/0.2412, allocations: 180.3 kB / 452.8 MB, free: 4.164 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.712e-05/0.2413, allocations: 11.94 kB / 452.8 MB, free: 4.152 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004296/0.2418, allocations: 44.03 kB / 452.9 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.883e-05/0.2418, allocations: 35.62 kB / 452.9 MB, free: 4.074 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.635e-05/0.2419, allocations: 23.92 kB / 452.9 MB, free: 4.051 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003842/0.2423, allocations: 342.9 kB / 453.3 MB, free: 3.719 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2423, allocations: 0 / 453.3 MB, free: 3.719 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006977/0.243, allocations: 231.1 kB / 453.5 MB, free: 3.492 MB / 318.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.0002178/0.2432, allocations: 149.6 kB / 453.6 MB, free: 3.34 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001348/0.2446, allocations: 0.7554 MB / 454.4 MB, free: 2.559 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2446, allocations: 0 / 454.4 MB, free: 2.559 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005623/0.2452, allocations: 340.5 kB / 454.7 MB, free: 2.215 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005634/0.2457, allocations: 101.9 kB / 454.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002135/0.2479, allocations: 1.331 MB / 456.2 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004349/0.2483, allocations: 0.9445 MB / 457.1 MB, free: 15.77 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002966/0.2486, allocations: 88.95 kB / 457.2 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001301/0.2488, allocations: 51.42 kB / 457.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2488, allocations: 0 / 457.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of Templates: time 0.01347/0.2622, allocations: 7.96 MB / 465.2 MB, free: 7.727 MB / 334.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 -s cvode -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe 2>&1)