Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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/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_TGM 2.0.0/package.mo", uses=false) Using package PhotoVoltaics_TGM with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 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) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.03153/0.03153, allocations: 5.394 MB / 20.89 MB, free: 1.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006803/0.006803, allocations: 101.1 kB / 22.88 MB, free: 0.7227 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.001196/0.001196, allocations: 190.1 kB / 24.99 MB, free: 144 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 222.9 MB / 249.9 MB, free: 8.504 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009141/0.009141, allocations: 2.322 MB / 303.5 MB, free: 6.562 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 95.84 kB / 367.3 MB, free: 6.789 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1898/0.1917, allocations: 51.21 MB / 418.5 MB, free: 26.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704): time 0.005993/0.1978, allocations: 6.895 MB / 425.4 MB, free: 19.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004682/0.2025, allocations: 4.021 MB / 429.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006365/0.2031, allocations: 23.94 kB / 429.4 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002197/0.2053, allocations: 1.162 MB / 430.6 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001513/0.2069, allocations: 0.8778 MB / 431.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001439/0.2083, allocations: 0.6134 MB / 432.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009364/0.2093, allocations: 1.394 MB / 433.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009832/0.2103, allocations: 1.017 MB / 434.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004326/0.2107, allocations: 0.5642 MB / 435 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000604/0.2113, allocations: 0.6808 MB / 435.7 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001403/0.2115, allocations: 140 kB / 435.9 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000629/0.2121, allocations: 439.6 kB / 436.3 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001743/0.2123, allocations: 294.9 kB / 436.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003733/0.2127, allocations: 0.6336 MB / 437.2 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001234/0.2139, allocations: 1.741 MB / 439 MB, free: 5.852 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2139, allocations: 0 / 439 MB, free: 5.852 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2139, allocations: 0 / 439 MB, free: 5.852 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.2139, allocations: 4 kB / 439 MB, free: 5.848 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.00345/0.2174, allocations: 1.806 MB / 440.8 MB, free: 3.973 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.2174, allocations: 8.031 kB / 440.8 MB, free: 3.965 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001376/0.2176, allocations: 156.6 kB / 440.9 MB, free: 3.805 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002039/0.2196, allocations: 375.2 kB / 441.3 MB, free: 3.438 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001444/0.2211, allocations: 0.793 MB / 442.1 MB, free: 2.602 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.13e-05/0.2212, allocations: 82 kB / 442.2 MB, free: 2.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.2213, allocations: 107.8 kB / 442.3 MB, free: 2.414 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001596/0.2229, allocations: 1.134 MB / 443.4 MB, free: 1.223 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.651e-05/0.2229, allocations: 3.984 kB / 443.4 MB, free: 1.219 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.919e-05/0.223, allocations: 47.98 kB / 443.5 MB, free: 1.172 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.848e-05/0.223, allocations: 24 kB / 443.5 MB, free: 1.148 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001675/0.2247, allocations: 0.9473 MB / 444.4 MB, free: 212 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00584/0.2306, allocations: 4.345 MB / 448.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002621/0.2332, allocations: 1.673 MB / 450.4 MB, free: 9.746 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000665/0.2339, allocations: 316.6 kB / 450.7 MB, free: 9.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.922e-05/0.234, allocations: 101.5 kB / 450.8 MB, free: 9.312 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008223/0.2348, allocations: 458.6 kB / 451.3 MB, free: 8.832 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.444e-06/0.2348, allocations: 0 / 451.3 MB, free: 8.832 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.005856/0.2407, allocations: 1.533 MB / 452.8 MB, free: 7.266 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000136/0.2409, allocations: 285.5 kB / 453.1 MB, free: 6.926 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008721/0.2417, allocations: 0.6643 MB / 453.8 MB, free: 6.254 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.039e-05/0.2418, allocations: 41.64 kB / 453.8 MB, free: 6.207 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003689/0.2422, allocations: 0.5179 MB / 454.3 MB, free: 5.68 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001789/0.2424, allocations: 217.1 kB / 454.5 MB, free: 5.465 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003488/0.2427, allocations: 182.4 kB / 454.7 MB, free: 5.281 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002055/0.2429, allocations: 386.8 kB / 455.1 MB, free: 4.895 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008683/0.2438, allocations: 285.8 kB / 455.4 MB, free: 4.613 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008033/0.2446, allocations: 0.5325 MB / 455.9 MB, free: 3.973 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001462/0.2461, allocations: 0.9215 MB / 456.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.2461, allocations: 8 kB / 456.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002219/0.2483, allocations: 1.067 MB / 457.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.772e-05/0.2484, allocations: 59.41 kB / 458 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.2484, allocations: 8 kB / 458 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004857/0.2489, allocations: 93.06 kB / 458.1 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008854/0.2498, allocations: 211.7 kB / 458.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001493/0.2513, allocations: 1.597 MB / 459.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007848/0.2521, allocations: 107.2 kB / 460 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.306e-05/0.2522, allocations: 43.98 kB / 460 MB, free: 15.55 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 26 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,$PRE.irradianceTable.nextTimeEvent,$whenCondition4,writeCSV.sampleTrigger,$whenCondition3,mpTracker.sampleTrigger,$whenCondition2,$PRE.powerTable.nextTimeEvent,$whenCondition1,powerTable.nextTimeEventScaled,$PRE.powerTable.nextTimeEventScaled,powerTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,$PRE.irradianceTable.nextTimeEventScaled,irradianceTable.nextTimeEvent,mpTracker.vRef,$PRE.mpTracker.vRef,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 2 * 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.0004443/0.2527, allocations: 331.6 kB / 460.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001757/0.2528, allocations: 83 kB / 460.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001989/0.2548, allocations: 0.9245 MB / 461.3 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.2549, allocations: 12 kB / 461.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.2549, allocations: 0 / 461.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.2549, allocations: 3.984 kB / 461.4 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006089/0.261, allocations: 2.206 MB / 463.6 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.75e-06/0.261, allocations: 3.984 kB / 463.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003559/0.2614, allocations: 91.88 kB / 463.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007978/0.2622, allocations: 330.2 kB / 464 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.541e-05/0.2622, allocations: 19.98 kB / 464 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001294/0.2635, allocations: 0.8896 MB / 464.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.2636, allocations: 3.938 kB / 464.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005359/0.2689, allocations: 1.63 MB / 466.5 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003106/0.2692, allocations: 219.9 kB / 466.7 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001438/0.2694, allocations: 23.94 kB / 466.8 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005946/0.27, allocations: 51.95 kB / 466.8 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.741e-05/0.2701, allocations: 36.39 kB / 466.8 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.143e-05/0.2702, allocations: 36.03 kB / 466.9 MB, free: 8.441 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005634/0.2707, allocations: 467 kB / 467.3 MB, free: 7.992 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2707, allocations: 4 kB / 467.3 MB, free: 7.988 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009243/0.2717, allocations: 319 kB / 467.7 MB, free: 7.676 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (voltageSource.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 15 ($whenCondition1,powerTable.nextTimeEvent,powerTable.nextTimeEventScaled,$whenCondition4,$whenCondition2,$whenCondition3,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,writeCSV.sampleTrigger,writeCSV.firstTrigger,irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled) * Number of discrete states: 14 (irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition2,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition3,writeCSV.sampleTrigger,powerTable.nextTimeEventScaled,powerTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007342/0.279, allocations: 2.736 MB / 470.4 MB, free: 5.133 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002089/0.2811, allocations: 0.9862 MB / 471.4 MB, free: 4.105 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.2811, allocations: 0 / 471.4 MB, free: 4.105 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008507/0.282, allocations: 486.7 kB / 471.9 MB, free: 3.609 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008501/0.2829, allocations: 172.3 kB / 472 MB, free: 3.445 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01075/0.2936, allocations: 7.269 MB / 479.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005486/0.2942, allocations: 1.014 MB / 480.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004815/0.2947, allocations: 122.4 kB / 480.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004651/0.2952, allocations: 391.2 kB / 480.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2952, allocations: 0 / 480.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2839/0.5791, allocations: 20.24 MB / 0.4893 GB, free: 6.215 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/12.13, allocations: 3.125 kB / 0.4893 GB, free: 6.215 MB / 366.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe 2>&1)