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.000835/0.000835, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004489/0.004489, allocations: 171.4 kB / 16.27 MB, free: 6.32 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.236/1.236, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1269/0.1269, allocations: 5.385 MB / 296.8 MB, free: 3.879 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002796/0.0002797, allocations: 8 kB / 362.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.081/0.08129, allocations: 51.6 MB / 414.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.005535/0.08686, allocations: 5.835 MB / 420.1 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003152/0.09003, allocations: 2.515 MB / 422.6 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002733/0.09032, allocations: 16 kB / 422.7 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007572/0.09111, allocations: 406.1 kB / 423.1 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001284/0.0924, allocations: 0.696 MB / 423.8 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004831/0.09289, allocations: 311.5 kB / 424.1 MB, free: 240 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1547/0.2476, allocations: 1.062 MB / 425.1 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00197/0.2496, allocations: 1.389 MB / 426.5 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003569/0.2499, allocations: 380.6 kB / 426.9 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004258/0.2504, allocations: 486.8 kB / 427.4 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.858e-05/0.2504, allocations: 52.75 kB / 427.4 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004133/0.2509, allocations: 203.7 kB / 427.6 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.442e-05/0.251, allocations: 176 kB / 427.8 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000261/0.2512, allocations: 489 kB / 428.3 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008459/0.2521, allocations: 1.372 MB / 429.6 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.2521, allocations: 3.375 kB / 429.6 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.2521, allocations: 3.25 kB / 429.6 MB, free: 37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.2521, allocations: 0 / 429.6 MB, free: 37 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.002909/0.255, allocations: 1.36 MB / 431 MB, free: 36.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.2551, allocations: 10.31 kB / 431 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001612/0.2553, allocations: 147 kB / 431.2 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001889/0.2572, allocations: 354.7 kB / 431.5 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.2583, allocations: 0.692 MB / 432.2 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.194e-05/0.2583, allocations: 70.78 kB / 432.3 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.2585, allocations: 95.81 kB / 432.4 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001417/0.2599, allocations: 1.01 MB / 433.4 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.441e-05/0.2599, allocations: 4 kB / 433.4 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.25e-05/0.26, allocations: 36.91 kB / 433.4 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.26, allocations: 22.03 kB / 433.4 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001384/0.2614, allocations: 0.8555 MB / 434.3 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004109/0.2655, allocations: 3.892 MB / 438.2 MB, free: 34.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001642/0.2672, allocations: 1.491 MB / 439.7 MB, free: 33.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004299/0.2676, allocations: 262.6 kB / 439.9 MB, free: 32.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.468e-05/0.2677, allocations: 93.95 kB / 440 MB, free: 32.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004665/0.2682, allocations: 327.8 kB / 440.3 MB, free: 32.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 1.623e-06/0.2682, allocations: 3.938 kB / 440.3 MB, free: 32.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.002305/0.2705, allocations: 0.992 MB / 441.3 MB, free: 32.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.158e-05/0.2705, allocations: 145.7 kB / 441.5 MB, free: 32.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004371/0.271, allocations: 0.5006 MB / 442 MB, free: 31.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/0.271, allocations: 32.95 kB / 442 MB, free: 31.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001697/0.2712, allocations: 467 kB / 442.5 MB, free: 31.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.021e-05/0.2713, allocations: 157.2 kB / 442.6 MB, free: 31.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.971e-05/0.2713, allocations: 66.69 kB / 442.7 MB, free: 31.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.63e-05/0.2714, allocations: 364.8 kB / 443 MB, free: 30.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004449/0.2719, allocations: 252 kB / 443.3 MB, free: 30.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004831/0.2724, allocations: 433.8 kB / 443.7 MB, free: 30.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009586/0.2733, allocations: 0.7184 MB / 444.4 MB, free: 30.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.2734, allocations: 4 kB / 444.4 MB, free: 30.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001461/0.2748, allocations: 0.8635 MB / 445.3 MB, free: 29.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.981e-05/0.2749, allocations: 44.05 kB / 445.3 MB, free: 29.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.2749, allocations: 5.969 kB / 445.3 MB, free: 29.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004244/0.2753, allocations: 88.91 kB / 445.4 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006231/0.2759, allocations: 177.1 kB / 445.6 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001022/0.277, allocations: 1.46 MB / 447.1 MB, free: 28.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005632/0.2775, allocations: 97.94 kB / 447.2 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.498e-05/0.2776, allocations: 34.97 kB / 447.2 MB, free: 28.18 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.0002862/0.2779, allocations: 283.9 kB / 447.5 MB, free: 27.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.786e-05/0.278, allocations: 55.28 kB / 447.5 MB, free: 27.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001229/0.2792, allocations: 0.7083 MB / 448.2 MB, free: 27.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.2792, allocations: 7.062 kB / 448.2 MB, free: 27.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.2792, allocations: 3.125 kB / 448.2 MB, free: 27.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.2792, allocations: 7.422 kB / 448.2 MB, free: 27.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003345/0.2826, allocations: 1.761 MB / 450 MB, free: 26.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.2826, allocations: 3.156 kB / 450 MB, free: 26.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002969/0.2829, allocations: 76.73 kB / 450.1 MB, free: 26.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004924/0.2834, allocations: 263.2 kB / 450.3 MB, free: 26.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.173e-05/0.2835, allocations: 17.34 kB / 450.4 MB, free: 26.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007664/0.2842, allocations: 0.8397 MB / 451.2 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.2842, allocations: 3.031 kB / 451.2 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002824/0.2871, allocations: 1.229 MB / 452.4 MB, free: 25.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001563/0.2872, allocations: 178.7 kB / 452.6 MB, free: 25.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.705e-05/0.2873, allocations: 10.72 kB / 452.6 MB, free: 25.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004239/0.2878, allocations: 52.64 kB / 452.7 MB, free: 25.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.177e-05/0.2878, allocations: 27.02 kB / 452.7 MB, free: 25.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.743e-05/0.2879, allocations: 13.84 kB / 452.7 MB, free: 25.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000304/0.2882, allocations: 348.3 kB / 453 MB, free: 25.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2882, allocations: 0 / 453 MB, free: 25.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005987/0.2888, allocations: 244.8 kB / 453.3 MB, free: 25.06 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.003059/0.2918, allocations: 1.807 MB / 455.1 MB, free: 23.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001146/0.293, allocations: 0.7641 MB / 455.9 MB, free: 23.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.293, allocations: 3.25 kB / 455.9 MB, free: 23.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004895/0.2935, allocations: 352.4 kB / 456.2 MB, free: 23.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005986/0.2941, allocations: 100.2 kB / 456.3 MB, free: 23.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006736/0.3009, allocations: 6.108 MB / 462.4 MB, free: 19.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002781/0.3012, allocations: 0.9438 MB / 463.4 MB, free: 18.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003471/0.3015, allocations: 85.53 kB / 463.4 MB, free: 18.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002881/0.3018, allocations: 299.2 kB / 463.7 MB, free: 18.68 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3018, allocations: 0 / 463.7 MB, free: 18.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02581/0.3276, allocations: 13.38 MB / 477.1 MB, free: 17.5 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001215/0.3278, allocations: 210.9 kB / 477.3 MB, free: 17.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.96/2.287, allocations: 3.984 kB / 477.3 MB, free: 17.25 MB / 350.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)