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: translateModel(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704") translateModel(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02326/0.02326, allocations: 5.399 MB / 21.65 MB, free: 1.07 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.0009827/0.0009827, allocations: 107.3 kB / 23.65 MB, free: 0.707 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.001135/0.001135, allocations: 200.9 kB / 25.77 MB, free: 4.527 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.26/1.26, allocations: 222.9 MB / 250.6 MB, free: 8.473 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009173/0.009173, allocations: 2.328 MB / 304.3 MB, free: 6.504 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001856/0.001856, allocations: 91.86 kB / 368.6 MB, free: 6.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2084/0.2103, allocations: 51.21 MB / 419.8 MB, free: 26.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704): time 0.007085/0.2174, allocations: 6.884 MB / 426.7 MB, free: 19.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006141/0.2236, allocations: 4.021 MB / 430.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0011/0.2247, allocations: 23.94 kB / 430.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002925/0.2277, allocations: 1.169 MB / 431.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002293/0.23, allocations: 0.8779 MB / 432.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002034/0.232, allocations: 0.6239 MB / 433.4 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001711/0.2337, allocations: 1.41 MB / 434.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001588/0.2353, allocations: 1.013 MB / 435.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000786/0.2361, allocations: 0.5682 MB / 436.4 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009662/0.2371, allocations: 0.6807 MB / 437.1 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002937/0.2374, allocations: 144 kB / 437.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00105/0.2385, allocations: 431.7 kB / 437.6 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003641/0.2388, allocations: 294.9 kB / 437.9 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006663/0.2395, allocations: 0.6335 MB / 438.6 MB, free: 7.438 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001857/0.2414, allocations: 1.76 MB / 440.3 MB, free: 5.672 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2414, allocations: 0 / 440.3 MB, free: 5.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2414, allocations: 0 / 440.3 MB, free: 5.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.188e-05/0.2414, allocations: 0 / 440.3 MB, free: 5.672 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.003421/0.2449, allocations: 1.805 MB / 442.1 MB, free: 3.801 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.2449, allocations: 16.02 kB / 442.1 MB, free: 3.785 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001858/0.2468, allocations: 375.1 kB / 442.5 MB, free: 3.418 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001474/0.2483, allocations: 0.8088 MB / 443.3 MB, free: 2.566 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.83e-05/0.2483, allocations: 77.98 kB / 443.4 MB, free: 2.488 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000123/0.2484, allocations: 107.9 kB / 443.5 MB, free: 2.383 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001536/0.25, allocations: 1.126 MB / 444.6 MB, free: 1.199 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.994e-05/0.25, allocations: 7.938 kB / 444.6 MB, free: 1.191 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.26e-05/0.2501, allocations: 48 kB / 444.7 MB, free: 1.145 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.2501, allocations: 24 kB / 444.7 MB, free: 1.121 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001534/0.2517, allocations: 0.9485 MB / 445.7 MB, free: 180 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005732/0.2574, allocations: 4.31 MB / 450 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002371/0.2598, allocations: 1.662 MB / 451.6 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006352/0.2605, allocations: 316.6 kB / 451.9 MB, free: 9.453 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001011/0.2606, allocations: 85.55 kB / 452 MB, free: 9.352 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007874/0.2614, allocations: 470.5 kB / 452.5 MB, free: 8.859 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.785e-06/0.2614, allocations: 0 / 452.5 MB, free: 8.859 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.005515/0.2669, allocations: 1.541 MB / 454 MB, free: 7.285 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.2671, allocations: 273.6 kB / 454.3 MB, free: 6.957 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009729/0.268, allocations: 0.6643 MB / 455 MB, free: 6.285 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.537e-05/0.2681, allocations: 37.7 kB / 455 MB, free: 6.242 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004414/0.2686, allocations: 0.5219 MB / 455.5 MB, free: 5.711 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/0.2688, allocations: 217 kB / 455.7 MB, free: 5.496 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002848/0.269, allocations: 186.4 kB / 455.9 MB, free: 5.309 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.2692, allocations: 382.8 kB / 456.3 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006281/0.2699, allocations: 289.8 kB / 456.6 MB, free: 4.641 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007862/0.2707, allocations: 0.5325 MB / 457.1 MB, free: 4 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001407/0.2721, allocations: 0.9177 MB / 458 MB, free: 2.953 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.126e-05/0.2721, allocations: 7.938 kB / 458 MB, free: 2.945 MB / 318.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002201/0.2743, allocations: 1.074 MB / 459.1 MB, free: 1.848 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.977e-05/0.2744, allocations: 63.34 kB / 459.2 MB, free: 1.773 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.622e-05/0.2744, allocations: 8 kB / 459.2 MB, free: 1.766 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004755/0.2749, allocations: 85.06 kB / 459.2 MB, free: 1.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008295/0.2757, allocations: 216 kB / 459.5 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001588/0.2773, allocations: 1.589 MB / 461 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000809/0.2781, allocations: 111.2 kB / 461.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.771e-05/0.2782, allocations: 43.98 kB / 461.2 MB, free: 15.58 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.0005194/0.2788, allocations: 339.6 kB / 461.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002021/0.279, allocations: 83 kB / 461.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00191/0.2809, allocations: 0.9205 MB / 462.5 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.2809, allocations: 4 kB / 462.5 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.2809, allocations: 8 kB / 462.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.2809, allocations: 0 / 462.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005959/0.2869, allocations: 2.199 MB / 464.7 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/0.2869, allocations: 4 kB / 464.7 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003428/0.2873, allocations: 79.84 kB / 464.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008066/0.2881, allocations: 338.3 kB / 465.2 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.433e-05/0.2882, allocations: 23.98 kB / 465.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00126/0.2894, allocations: 0.8897 MB / 466.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.2894, allocations: 0 / 466.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005039/0.2945, allocations: 1.639 MB / 467.7 MB, free: 8.855 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004098/0.2949, allocations: 215.9 kB / 467.9 MB, free: 8.625 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001901/0.2951, allocations: 24.05 kB / 467.9 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006149/0.2957, allocations: 51.97 kB / 468 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.2958, allocations: 40.38 kB / 468 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.316e-05/0.2959, allocations: 31.92 kB / 468.1 MB, free: 8.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006385/0.2966, allocations: 463 kB / 468.5 MB, free: 8.035 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2966, allocations: 4 kB / 468.5 MB, free: 8.031 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000996/0.2976, allocations: 315 kB / 468.8 MB, free: 7.723 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.001448/0.299, allocations: 0.6691 MB / 469.5 MB, free: 7.285 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00194/0.301, allocations: 0.968 MB / 470.5 MB, free: 6.273 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.301, allocations: 0 / 470.5 MB, free: 6.273 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008545/0.3019, allocations: 481.2 kB / 470.9 MB, free: 5.781 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008661/0.3027, allocations: 173.4 kB / 471.1 MB, free: 5.613 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003214/0.306, allocations: 1.71 MB / 472.8 MB, free: 3.863 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006442/0.3066, allocations: 1.006 MB / 473.8 MB, free: 2.832 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004352/0.3071, allocations: 122.4 kB / 473.9 MB, free: 2.707 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001941/0.3073, allocations: 75.39 kB / 474 MB, free: 2.637 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3073, allocations: 0 / 474 MB, free: 2.637 MB / 334.1 MB Notification: Performance of Templates: time 0.02116/0.3284, allocations: 12.18 MB / 486.2 MB, free: 6.547 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.makefile (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 & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704 -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe 2>&1)