Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02851/0.02851, allocations: 5.396 MB / 22.37 MB, free: 0.6992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 104.9 kB / 26.37 MB, free: 4.535 MB / 19.63 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 198 kB / 30.52 MB, free: 440 kB / 19.63 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 222.9 MB / 257.4 MB, free: 14.12 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01149/0.01149, allocations: 2.321 MB / 313.1 MB, free: 3.27 MB / 238.1 MB " [Timeout remaining time 180] 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: translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=1440,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=1440,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002732/0.002732, allocations: 91.84 kB / 431 MB, free: 2.305 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2397, allocations: 51.21 MB / 482.3 MB, free: 22.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808): time 0.006978/0.2468, allocations: 6.77 MB / 489 MB, free: 18.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004932/0.2517, allocations: 3.135 MB / 492.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009549/0.2527, allocations: 16.91 kB / 492.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002283/0.255, allocations: 1.108 MB / 493.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001801/0.2568, allocations: 0.8432 MB / 494.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00133/0.2582, allocations: 0.5302 MB / 494.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001219/0.2594, allocations: 1.387 MB / 496 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001112/0.2605, allocations: 1.031 MB / 497.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004931/0.261, allocations: 0.5571 MB / 497.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006275/0.2617, allocations: 0.7157 MB / 498.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001689/0.2618, allocations: 141.7 kB / 498.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007031/0.2626, allocations: 434.1 kB / 498.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000142/0.2627, allocations: 296 kB / 499.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004103/0.2631, allocations: 0.6322 MB / 499.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00141/0.2645, allocations: 1.763 MB / 0.4898 GB, free: 9.074 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2646, allocations: 0 / 0.4898 GB, free: 9.074 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2646, allocations: 0 / 0.4898 GB, free: 9.074 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.837e-05/0.2646, allocations: 0 / 0.4898 GB, free: 9.074 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: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.003495/0.2681, allocations: 1.801 MB / 0.4916 GB, free: 7.719 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.114e-05/0.2681, allocations: 8.219 kB / 0.4916 GB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001948/0.2701, allocations: 373.1 kB / 0.492 GB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.2715, allocations: 0.7684 MB / 0.4927 GB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.599e-05/0.2716, allocations: 78.06 kB / 0.4928 GB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/0.2717, allocations: 108 kB / 0.4929 GB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001619/0.2733, allocations: 1.179 MB / 0.494 GB, free: 5.285 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.901e-05/0.2734, allocations: 0 / 0.494 GB, free: 5.285 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.819e-05/0.2734, allocations: 47.94 kB / 0.4941 GB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.836e-05/0.2735, allocations: 28 kB / 0.4941 GB, free: 5.211 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001734/0.2752, allocations: 1.038 MB / 0.4951 GB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004594/0.2798, allocations: 4.366 MB / 0.4994 GB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003063/0.2829, allocations: 1.787 MB / 0.5011 GB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007944/0.2837, allocations: 363.4 kB / 0.5015 GB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001825/0.2839, allocations: 174.8 kB / 0.5016 GB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009934/0.2849, allocations: 0.5513 MB / 0.5022 GB, free: 12.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.094e-06/0.2849, allocations: 0 / 0.5022 GB, free: 12.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.005953/0.2909, allocations: 1.706 MB / 0.5039 GB, free: 10.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001853/0.2911, allocations: 285.7 kB / 0.5041 GB, free: 10.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007044/0.2918, allocations: 0.5536 MB / 0.5047 GB, free: 9.793 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.851e-05/0.2919, allocations: 49.69 kB / 0.5047 GB, free: 9.738 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003865/0.2922, allocations: 0.4922 MB / 0.5052 GB, free: 9.238 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002436/0.2925, allocations: 261.8 kB / 0.5054 GB, free: 8.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003307/0.2928, allocations: 210.8 kB / 0.5056 GB, free: 8.766 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002001/0.293, allocations: 382.8 kB / 0.506 GB, free: 8.383 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007732/0.2938, allocations: 330.4 kB / 0.5063 GB, free: 8.062 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009701/0.2948, allocations: 0.5682 MB / 0.5069 GB, free: 7.398 MB / 366.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01713/0.3119, allocations: 3.627 MB / 0.5104 GB, free: 3.605 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.417e-05/0.312, allocations: 4 kB / 0.5104 GB, free: 3.602 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00288/0.3149, allocations: 1.21 MB / 0.5116 GB, free: 2.363 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.241e-05/0.315, allocations: 89.11 kB / 0.5117 GB, free: 2.258 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/0.315, allocations: 8 kB / 0.5117 GB, free: 2.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004785/0.3155, allocations: 88.72 kB / 0.5118 GB, free: 2.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001099/0.3166, allocations: 259.8 kB / 0.512 GB, free: 1.906 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001635/0.3182, allocations: 1.582 MB / 0.5136 GB, free: 188 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009047/0.3192, allocations: 119.4 kB / 0.5137 GB, free: 68 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.647e-05/0.3192, allocations: 51.97 kB / 0.5137 GB, free: 16 kB / 366.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $PRE.irradiance.daysOfYear = PhotoVoltaics.Functions.dayOfTheYear(31, 12, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 27 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,irradiance.year,$PRE.irradiance.year,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,writeCSV.sampleTrigger,$whenCondition4,mpTracker.sampleTrigger,$whenCondition1,irradiance.localDays,irradiance.daysOfYear,$PRE.irradiance.daysOfYear,irradiance.dayOfYear,$PRE.irradiance.dayOfYear,irradiance.startDayOfYear,$PRE.irradiance.startDayOfYear,mpTracker.vRef,$PRE.mpTracker.vRef,$whenCondition3,$whenCondition2,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 (129): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 3 * 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.0005933/0.3198, allocations: 374.7 kB / 0.5141 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000156/0.32, allocations: 83.48 kB / 0.5142 GB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002688/0.3227, allocations: 1.257 MB / 0.5154 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.3227, allocations: 12 kB / 0.5154 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3227, allocations: 4 kB / 0.5154 GB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.3228, allocations: 7.984 kB / 0.5154 GB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006394/0.3292, allocations: 2.543 MB / 0.5179 GB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.3292, allocations: 0 / 0.5179 GB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005873/0.3298, allocations: 135.8 kB / 0.518 GB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008256/0.3306, allocations: 334.2 kB / 0.5184 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.829e-05/0.3307, allocations: 31.97 kB / 0.5184 GB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00138/0.3321, allocations: 0.8897 MB / 0.5193 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.3321, allocations: 0 / 0.5193 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005829/0.3379, allocations: 1.933 MB / 0.5211 GB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004806/0.3385, allocations: 240.3 kB / 0.5214 GB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001444/0.3386, allocations: 35.92 kB / 0.5214 GB, free: 7.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006398/0.3393, allocations: 51.97 kB / 0.5215 GB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00015/0.3394, allocations: 52.58 kB / 0.5215 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.236e-05/0.3395, allocations: 47.89 kB / 0.5216 GB, free: 7.766 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005309/0.34, allocations: 394.8 kB / 0.5219 GB, free: 7.379 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3401, allocations: 0 / 0.5219 GB, free: 7.379 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00106/0.3411, allocations: 343.2 kB / 0.5223 GB, free: 7.043 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (converter.integrator.y,integrator.y,voltageSource.pin_p.reference.gamma) * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 16 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 2 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008779/0.342, allocations: 350.2 kB / 0.5226 GB, free: 6.766 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002406/0.3444, allocations: 1.154 MB / 0.5237 GB, free: 5.555 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3444, allocations: 0 / 0.5237 GB, free: 5.555 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001168/0.3456, allocations: 0.6702 MB / 0.5244 GB, free: 4.848 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008056/0.3464, allocations: 148.7 kB / 0.5245 GB, free: 4.711 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003381/0.3498, allocations: 1.852 MB / 0.5263 GB, free: 2.816 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007161/0.3506, allocations: 1.011 MB / 0.5273 GB, free: 1.777 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003054/0.3509, allocations: 99.31 kB / 0.5274 GB, free: 1.68 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3509, allocations: 4 kB / 0.5274 GB, free: 1.676 MB / 382.1 MB Notification: Performance of Templates: time 0.02378/0.3747, allocations: 17.29 MB / 0.5443 GB, free: 416 kB / 398.1 MB " [Timeout remaining time 660] make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.makefile [Timeout 660] (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 7.93894796515815] Failed to read output from testmodel.py, exit status != 0: 0.3822253830730915 0.39401405100000003 0.126990071 Calling exit ...