Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_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.03259/0.03259, allocations: 5.389 MB / 20.66 MB, free: 1.672 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.0007402/0.0007403, allocations: 99.72 kB / 22.65 MB, free: 444 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.0007804/0.0007805, allocations: 186.5 kB / 24.75 MB, free: 1.824 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.178/1.178, allocations: 223.3 MB / 250 MB, free: 15.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.00789/0.00789, allocations: 2.311 MB / 304.6 MB, free: 3.359 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.0003543/0.0003543, allocations: 16 kB / 369 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07956/0.07992, allocations: 52.2 MB / 421.2 MB, free: 6.039 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808): time 0.1517/0.2316, allocations: 6.369 MB / 427.6 MB, free: 35.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004996/0.2366, allocations: 3.91 MB / 431.5 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005091/0.2372, allocations: 18.97 kB / 431.5 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009505/0.2381, allocations: 455.6 kB / 431.9 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001366/0.2395, allocations: 0.7839 MB / 432.7 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001366/0.2409, allocations: 0.5469 MB / 433.3 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008896/0.2418, allocations: 1.317 MB / 434.6 MB, free: 35.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001704/0.2435, allocations: 1.408 MB / 436 MB, free: 34.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000404/0.2439, allocations: 470.8 kB / 436.5 MB, free: 34.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006191/0.2445, allocations: 0.5783 MB / 437 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.75e-05/0.2447, allocations: 57.22 kB / 437.1 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005899/0.2453, allocations: 350.6 kB / 437.4 MB, free: 34.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001694/0.2454, allocations: 209.2 kB / 437.6 MB, free: 34.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003748/0.2458, allocations: 0.5614 MB / 438.2 MB, free: 34.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001012/0.2468, allocations: 1.641 MB / 439.8 MB, free: 34.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2468, allocations: 0 / 439.8 MB, free: 34.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2468, allocations: 4 kB / 439.8 MB, free: 34.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.2469, allocations: 0 / 439.8 MB, free: 34.05 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.003044/0.2499, allocations: 1.58 MB / 441.4 MB, free: 33.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.25, allocations: 10.5 kB / 441.4 MB, free: 33.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001728/0.2501, allocations: 158.6 kB / 441.6 MB, free: 33.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001848/0.252, allocations: 380.9 kB / 442 MB, free: 33.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001329/0.2533, allocations: 0.8109 MB / 442.8 MB, free: 32.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.865e-05/0.2534, allocations: 75.59 kB / 442.8 MB, free: 32.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001319/0.2535, allocations: 106.6 kB / 442.9 MB, free: 32.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/0.2551, allocations: 1.131 MB / 444.1 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.862e-05/0.2552, allocations: 3.188 kB / 444.1 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.878e-05/0.2553, allocations: 43.42 kB / 444.1 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.2553, allocations: 25.88 kB / 444.1 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001608/0.2569, allocations: 0.9598 MB / 445.1 MB, free: 32.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004409/0.2613, allocations: 4.362 MB / 449.5 MB, free: 29.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001937/0.2633, allocations: 1.675 MB / 451.1 MB, free: 28.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005247/0.2638, allocations: 317.2 kB / 451.5 MB, free: 28.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.522e-05/0.2639, allocations: 94.61 kB / 451.5 MB, free: 27.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000686/0.2646, allocations: 463.2 kB / 452 MB, free: 27.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.395e-06/0.2646, allocations: 3.938 kB / 452 MB, free: 27.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.004919/0.2695, allocations: 1.594 MB / 453.6 MB, free: 27.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.105e-05/0.2696, allocations: 277.7 kB / 453.9 MB, free: 26.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000622/0.2702, allocations: 0.6601 MB / 454.5 MB, free: 26.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.065e-05/0.2703, allocations: 44.08 kB / 454.6 MB, free: 26.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002224/0.2705, allocations: 0.5165 MB / 455.1 MB, free: 26.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.2706, allocations: 216.5 kB / 455.3 MB, free: 25.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.518e-05/0.2707, allocations: 89.84 kB / 455.4 MB, free: 25.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.524e-05/0.2708, allocations: 385.7 kB / 455.8 MB, free: 25.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005183/0.2713, allocations: 281.5 kB / 456 MB, free: 25.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005829/0.2719, allocations: 0.5492 MB / 456.6 MB, free: 24.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/0.273, allocations: 0.9251 MB / 457.5 MB, free: 24.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.592e-06/0.2731, allocations: 3.25 kB / 457.5 MB, free: 24.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.001721/0.2748, allocations: 1.073 MB / 458.6 MB, free: 23.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.563e-05/0.2748, allocations: 66.16 kB / 458.7 MB, free: 23.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/0.2748, allocations: 6.438 kB / 458.7 MB, free: 23.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004112/0.2753, allocations: 86.98 kB / 458.7 MB, free: 23.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007138/0.276, allocations: 221.4 kB / 459 MB, free: 23.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001012/0.277, allocations: 1.477 MB / 460.4 MB, free: 22.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006534/0.2777, allocations: 107.8 kB / 460.5 MB, free: 22.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.482e-05/0.2777, allocations: 47 kB / 460.6 MB, free: 22.21 MB / 350.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.0003605/0.2781, allocations: 339 kB / 460.9 MB, free: 21.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.663e-05/0.2782, allocations: 79.5 kB / 461 MB, free: 21.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001556/0.2798, allocations: 0.9333 MB / 461.9 MB, free: 21.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.2798, allocations: 9.906 kB / 461.9 MB, free: 21.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.2798, allocations: 3.375 kB / 461.9 MB, free: 21.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.393e-06/0.2798, allocations: 0 / 461.9 MB, free: 21.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004952/0.2848, allocations: 2.241 MB / 464.2 MB, free: 20.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.2848, allocations: 0 / 464.2 MB, free: 20.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002977/0.2851, allocations: 90.94 kB / 464.3 MB, free: 20.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006657/0.2858, allocations: 341.6 kB / 464.6 MB, free: 20.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.317e-05/0.2858, allocations: 24.47 kB / 464.6 MB, free: 20.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009721/0.2868, allocations: 0.9032 MB / 465.5 MB, free: 19.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2868, allocations: 3.031 kB / 465.5 MB, free: 19.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004346/0.2912, allocations: 1.67 MB / 467.2 MB, free: 18.99 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002458/0.2914, allocations: 233.2 kB / 467.4 MB, free: 18.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.2915, allocations: 24.75 kB / 467.5 MB, free: 18.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005043/0.292, allocations: 54.88 kB / 467.5 MB, free: 18.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.717e-05/0.2921, allocations: 43.59 kB / 467.6 MB, free: 18.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.99e-05/0.2922, allocations: 32.69 kB / 467.6 MB, free: 18.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004537/0.2926, allocations: 471.9 kB / 468 MB, free: 18.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2926, allocations: 0 / 468 MB, free: 18.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008095/0.2935, allocations: 313.6 kB / 468.4 MB, free: 18.47 MB / 350.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.005818/0.2993, allocations: 2.761 MB / 471.1 MB, free: 17.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001572/0.3009, allocations: 0.9707 MB / 472.1 MB, free: 16.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3009, allocations: 0 / 472.1 MB, free: 16.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007208/0.3016, allocations: 488.6 kB / 472.6 MB, free: 16.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009337/0.3026, allocations: 169.9 kB / 472.7 MB, free: 16.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009597/0.3122, allocations: 7.78 MB / 480.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.3126, allocations: 1.01 MB / 481.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000492/0.3131, allocations: 127.3 kB / 481.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003926/0.3135, allocations: 391.3 kB / 482 MB, free: 10.45 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3135, allocations: 0 / 482 MB, free: 10.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05074/0.3643, allocations: 19.2 MB / 0.4895 GB, free: 1.719 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002612/0.3646, allocations: 283.3 kB / 0.4897 GB, free: 1.332 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.178/2.543, allocations: 0 / 0.4897 GB, free: 1.332 MB / 350.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe 2>&1)