Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.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_Trina_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808",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.02903/0.02903, allocations: 5.394 MB / 20.89 MB, free: 1.441 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.005964/0.005964, allocations: 93.53 kB / 22.88 MB, free: 0.793 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.001121/0.001121, allocations: 192.3 kB / 24.99 MB, free: 280 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.285/1.285, allocations: 222.9 MB / 249.9 MB, free: 8.547 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.00953/0.00953, allocations: 2.318 MB / 303.5 MB, free: 6.574 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 99.84 kB / 367.3 MB, free: 6.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1766/0.1785, allocations: 51.21 MB / 418.5 MB, free: 26.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808): time 0.006223/0.1848, allocations: 6.841 MB / 425.3 MB, free: 19.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004721/0.1895, allocations: 3.943 MB / 429.3 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007586/0.1903, allocations: 16 kB / 429.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002316/0.1926, allocations: 1.161 MB / 430.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001665/0.1943, allocations: 0.8545 MB / 431.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001388/0.1957, allocations: 0.5508 MB / 431.8 MB, free: 13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001203/0.1969, allocations: 1.402 MB / 433.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001163/0.1981, allocations: 1.013 MB / 434.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005148/0.1986, allocations: 0.5643 MB / 434.8 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005632/0.1992, allocations: 0.677 MB / 435.5 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001425/0.1994, allocations: 140 kB / 435.6 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006362/0.2, allocations: 443.7 kB / 436.1 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001703/0.2002, allocations: 314.8 kB / 436.4 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003704/0.2006, allocations: 0.6414 MB / 437 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001203/0.2018, allocations: 1.776 MB / 438.8 MB, free: 6 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2018, allocations: 0 / 438.8 MB, free: 6 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2018, allocations: 0 / 438.8 MB, free: 6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.2018, allocations: 0 / 438.8 MB, free: 6 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: 269 * Number of variables: 269 Notification: Performance of Generate backend data structure: time 0.003364/0.2052, allocations: 1.804 MB / 440.6 MB, free: 4.129 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3e-05/0.2052, allocations: 8.031 kB / 440.6 MB, free: 4.121 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001451/0.2054, allocations: 168.8 kB / 440.8 MB, free: 3.945 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002035/0.2074, allocations: 383.1 kB / 441.1 MB, free: 3.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001445/0.2089, allocations: 0.8242 MB / 442 MB, free: 2.699 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.9e-05/0.2089, allocations: 78.08 kB / 442 MB, free: 2.621 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.2091, allocations: 108 kB / 442.2 MB, free: 2.516 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/0.2107, allocations: 1.173 MB / 443.3 MB, free: 1.281 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.592e-05/0.2107, allocations: 3.938 kB / 443.3 MB, free: 1.277 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.163e-05/0.2108, allocations: 44 kB / 443.4 MB, free: 1.234 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.649e-05/0.2108, allocations: 27.98 kB / 443.4 MB, free: 1.207 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001796/0.2126, allocations: 1.069 MB / 444.5 MB, free: 144 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005754/0.2184, allocations: 4.376 MB / 448.8 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002631/0.221, allocations: 1.748 MB / 450.6 MB, free: 9.598 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006582/0.2217, allocations: 323.8 kB / 450.9 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.309e-05/0.2218, allocations: 101.6 kB / 451 MB, free: 9.156 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008032/0.2226, allocations: 461.7 kB / 451.5 MB, free: 8.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=69): time 2.164e-06/0.2226, allocations: 0 / 451.5 MB, free: 8.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.005856/0.2285, allocations: 1.596 MB / 453.1 MB, free: 7.043 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.2286, allocations: 226.1 kB / 453.3 MB, free: 6.773 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007334/0.2294, allocations: 0.6563 MB / 453.9 MB, free: 6.109 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.081e-05/0.2294, allocations: 37.7 kB / 454 MB, free: 6.066 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003233/0.2298, allocations: 0.5296 MB / 454.5 MB, free: 5.527 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001708/0.2299, allocations: 224.8 kB / 454.7 MB, free: 5.305 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002746/0.2302, allocations: 186.5 kB / 454.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.2304, allocations: 386.8 kB / 455.3 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006793/0.2311, allocations: 297.8 kB / 455.6 MB, free: 4.438 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008238/0.2319, allocations: 0.5347 MB / 456.1 MB, free: 3.801 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001493/0.2334, allocations: 0.936 MB / 457 MB, free: 2.742 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.174e-06/0.2334, allocations: 4 kB / 457 MB, free: 2.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002233/0.2357, allocations: 1.11 MB / 458.2 MB, free: 1.605 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.556e-05/0.2357, allocations: 63.39 kB / 458.2 MB, free: 1.531 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.2358, allocations: 8 kB / 458.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004838/0.2362, allocations: 96.95 kB / 458.3 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008755/0.2371, allocations: 219.7 kB / 458.5 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/0.2386, allocations: 1.585 MB / 460.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006955/0.2393, allocations: 99.11 kB / 460.2 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.453e-05/0.2394, allocations: 47.97 kB / 460.3 MB, free: 15.34 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 21 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,$PRE.combiTimeTable.nextTimeEvent,$whenCondition3,writeCSV.sampleTrigger,$whenCondition2,mpTracker.sampleTrigger,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.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 (118): * Single equations (assignments): 115 * 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.0004007/0.2398, allocations: 351.2 kB / 460.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.2399, allocations: 79.06 kB / 460.7 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002143/0.2421, allocations: 1.01 MB / 461.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.2421, allocations: 8 kB / 461.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.2421, allocations: 0 / 461.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.2421, allocations: 0 / 461.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006111/0.2482, allocations: 2.317 MB / 464 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.2483, allocations: 0 / 464 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003994/0.2487, allocations: 99.83 kB / 464.1 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000815/0.2495, allocations: 330.3 kB / 464.4 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.796e-05/0.2496, allocations: 27.97 kB / 464.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001317/0.2509, allocations: 0.9012 MB / 465.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.2509, allocations: 0 / 465.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002657/0.2536, allocations: 1.409 MB / 466.8 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002737/0.2539, allocations: 227.9 kB / 467 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/0.254, allocations: 31.92 kB / 467 MB, free: 8.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005677/0.2546, allocations: 43.97 kB / 467.1 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.085e-05/0.2547, allocations: 40.5 kB / 467.1 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.076e-05/0.2548, allocations: 27.98 kB / 467.1 MB, free: 8.227 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005365/0.2553, allocations: 459 kB / 467.6 MB, free: 7.781 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2553, allocations: 0 / 467.6 MB, free: 7.781 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008605/0.2562, allocations: 319 kB / 467.9 MB, free: 7.469 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (voltageSource.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 12 ($whenCondition3,$whenCondition1,$whenCondition2,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 12 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition2,writeCSV.sampleTrigger) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.004269/0.2605, allocations: 2.505 MB / 470.4 MB, free: 5.168 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002089/0.2626, allocations: 1.027 MB / 471.4 MB, free: 4.098 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2626, allocations: 0 / 471.4 MB, free: 4.098 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008684/0.2634, allocations: 498.4 kB / 471.9 MB, free: 3.586 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007978/0.2643, allocations: 161.4 kB / 472.1 MB, free: 3.434 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01073/0.275, allocations: 7.322 MB / 479.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005302/0.2756, allocations: 1.018 MB / 480.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004777/0.276, allocations: 130.4 kB / 480.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004867/0.2765, allocations: 403.3 kB / 480.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2765, allocations: 0 / 480.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.866/3.142, allocations: 20.13 MB / 0.4893 GB, free: 6.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.01/21.15, allocations: 3.938 kB / 0.4893 GB, free: 6.246 MB / 366.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe 2>&1)